Windows: TP4 fix cpu weight

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-11-12 10:58:20 -08:00
parent 9d4e2f3992
commit 90eac6b48b
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ const (
defaultVirtualSwitch = "Virtual Switch"
platformSupported = true
windowsMinCPUShares = 1
windowsMaxCPUShares = 9
windowsMaxCPUShares = 10000
)
func parseSecurityOpt(container *Container, config *runconfig.HostConfig) error {

View File

@ -74,7 +74,7 @@ type containerInit struct {
IgnoreFlushesDuringBoot bool // Optimisation hint for container startup in Windows
LayerFolderPath string // Where the layer folders are located
Layers []layer // List of storage layers
ProcessorWeight int64 // CPU Shares 1..9 on Windows; or 0 is platform default.
ProcessorWeight int64 `json:",omitempty"` // CPU Shares 0..10000 on Windows; where 0 will be ommited and HCS will default.
HostName string // Hostname
MappedDirectories []mappedDir // List of mapped directories (volumes/mounts)
SandboxPath string // Location of unmounted sandbox (used for Hyper-V containers, not Windows Server containers)