Resource Defaults
Default resource limits for users when no custom limits are configured.
cGroup Default Limits
When a user is created without specific limits, the following defaults apply:
| Resource | Default Value | Description |
|---|---|---|
| CPU Shares | 1024 | Relative CPU weight (same as cgroup default) |
| Memory Limit | Unlimited | No memory limit by default |
| IO Weight | 64 | Relative IO weight |
| IOPS Limit | Unlimited | No IOPS limit by default |
Configurable Defaults
These defaults can be modified in globals.php:
// Default cgroup limits (can be overridden per user)
$GLOBALS['cgroup_defaults'] = array(
'cpu_shares' => 1024,
'memory_limit' => 0, // 0 = unlimited
'io_weight' => 64,
'iops_limit' => 0, // 0 = unlimited
'memory_soft_limit' => 0 // 0 = unlimited
);
Per-User Override
Admins can override defaults when creating or editing users via the Admin Panel or CLI commands.