mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
set CPU quota
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
1e682a40ac
commit
d0e95ccac3
@ -529,7 +529,8 @@ func getDeployResources(s types.ServiceConfig) container.Resources {
|
||||
CPURealtimePeriod: s.CPURTPeriod,
|
||||
CPURealtimeRuntime: s.CPURTRuntime,
|
||||
CPUShares: s.CPUShares,
|
||||
CPUPercent: int64(s.CPUS * 100),
|
||||
NanoCPUs: int64(s.CPUS * 1e9),
|
||||
CPUPercent: int64(s.CPUPercent * 100),
|
||||
CpusetCpus: s.CPUSet,
|
||||
DeviceCgroupRules: s.DeviceCgroupRules,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user