# Reference: server.cgroups

URL: https://scalws.com/docs/reference/server-cgroups/
Source: `docs/reference/schema` in the ScalWS repository

<h3 id="server.cgroups.mode"><code>server.cgroups.mode</code></h3>

| | |
|---|---|
| Syntax | `mode: off \| auto \| required` |
| Default | `auto` |
| Context | `server.cgroups` |
| Reload | needs a restart |

`auto`: enforce limits when the service has a delegated cgroup, otherwise warn; `required`: refuse to start without one; `off`: never use cgroups.


<h3 id="server.cgroups.path"><code>server.cgroups.path</code></h3>

| | |
|---|---|
| Syntax | `path: <string>` |
| Default | `none` |
| Context | `server.cgroups` |
| Reload | needs a restart |

Dedicated base group (absolute path under /sys/fs/cgroup). Default: scalws's own delegated cgroup, into whose `server` child scalws moves itself.
