mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: TP4 fix cpu weight
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
9d4e2f3992
commit
90eac6b48b
2 changed files with 2 additions and 2 deletions
daemon
|
@ -18,7 +18,7 @@ const (
|
|||
defaultVirtualSwitch = "Virtual Switch"
|
||||
platformSupported = true
|
||||
windowsMinCPUShares = 1
|
||||
windowsMaxCPUShares = 9
|
||||
windowsMaxCPUShares = 10000
|
||||
)
|
||||
|
||||
func parseSecurityOpt(container *Container, config *runconfig.HostConfig) error {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue