|
@@ -16,6 +16,8 @@ type Cgroup struct {
|
|
Memory int64 `json:"memory,omitempty"` // Memory limit (in bytes)
|
|
Memory int64 `json:"memory,omitempty"` // Memory limit (in bytes)
|
|
MemorySwap int64 `json:"memory_swap,omitempty"` // Total memory usage (memory + swap); set `-1' to disable swap
|
|
MemorySwap int64 `json:"memory_swap,omitempty"` // Total memory usage (memory + swap); set `-1' to disable swap
|
|
CpuShares int64 `json:"cpu_shares,omitempty"` // CPU shares (relative weight vs. other containers)
|
|
CpuShares int64 `json:"cpu_shares,omitempty"` // CPU shares (relative weight vs. other containers)
|
|
|
|
+ CpuQuota int64 `json:"cpu_quota,omitempty"` // CPU hardcap limit (in usecs). Allowed cpu time in a given period.
|
|
|
|
+ CpuPeriod int64 `json:"cpu_period,omitempty"` // CPU period to be used for hardcapping (in usecs). 0 to use system default.
|
|
CpusetCpus string `json:"cpuset_cpus,omitempty"` // CPU to use
|
|
CpusetCpus string `json:"cpuset_cpus,omitempty"` // CPU to use
|
|
|
|
|
|
UnitProperties [][2]string `json:"unit_properties,omitempty"` // systemd unit properties
|
|
UnitProperties [][2]string `json:"unit_properties,omitempty"` // systemd unit properties
|