Fix resource limits for CPU set
This commit is contained in:
parent
27b18fbedf
commit
fceaf3e94b
@ -44,6 +44,9 @@ class ResourceLimits extends Component
|
||||
if (!$this->resource->limits_cpus) {
|
||||
$this->resource->limits_cpus = "0";
|
||||
}
|
||||
if ($this->resource->limits_cpuset === "") {
|
||||
$this->resource->limits_cpuset = null;
|
||||
}
|
||||
if (!$this->resource->limits_cpu_shares) {
|
||||
$this->resource->limits_cpu_shares = 1024;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user