feat: raise cpu_shares from 1024 to 2048 for mastercontainer

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/c36c6e2f-54a4-4459-8398-90fd936857cb

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-12 11:23:15 +00:00
committed by GitHub
parent 22f7552df5
commit 42b0d661c8
4 changed files with 8 additions and 8 deletions

View File

@@ -202,7 +202,7 @@ sudo docker run \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--cpu-shares 1024 \
--cpu-shares 2048 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
ghcr.io/nextcloud-releases/all-in-one:latest
@@ -219,7 +219,7 @@ sudo docker run \
- `--publish 80:80` — publishes container port 80 on host port 80 (used for ACME http-challenge when obtaining certificates, used for for the AIO-interface running inside the mastercontainer). Not required if you run AIO behind a reverse proxy.
- `--publish 8080:8080` — publishes the AIO interface (self-signed certificate) on host port 8080. You may map a different host port if 8080 is in use (e.g. `--publish 8081:8080`).
- `--publish 8443:8443` — publishes the AIO interface with a valid certificate on host port 8443 (requires ports 80 and 8443 to be reachable and a domain pointing to your server). Not required if you run AIO behind a reverse proxy.
- `--cpu-shares 1024`sets the CPU shares for the mastercontainer to ensure it remains responsive under heavy load. The default value is 1024; increase this value (e.g. `2048`) to give the mastercontainer higher CPU priority relative to other containers.
- `--cpu-shares 2048`gives the mastercontainer twice the default CPU share weighting (default is 1024), ensuring it stays responsive under heavy load from sibling containers.
- `--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config` — stores mastercontainer configuration in the named Docker volume. Do not change this volume name; built-in backups depend on it.
- `--volume /var/run/docker.sock:/var/run/docker.sock:ro` — mounts the Docker socket (read-only) so the mastercontainer can manage other containers. On Windows/macOS or when using rootless Docker, this path may need adjustment; see the platform-specific docs. If you change the socket path, also set `WATCHTOWER_DOCKER_SOCKET_PATH` accordingly. If you prefer not to expose the socket, see the manual-install documentation: [Manual install without docker socket access](https://github.com/nextcloud/all-in-one/tree/main/manual-install)
- `ghcr.io/nextcloud-releases/all-in-one:latest` — the mastercontainer image.
@@ -705,7 +705,7 @@ docker run ^
--publish 80:80 ^
--publish 8080:8080 ^
--publish 8443:8443 ^
--cpu-shares 1024 ^
--cpu-shares 2048 ^
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config ^
--volume //var/run/docker.sock:/var/run/docker.sock:ro ^
ghcr.io/nextcloud-releases/all-in-one:latest