feat: halve all cpu_shares values and set default to 512

Agent-Logs-Url: https://github.com/nextcloud/all-in-one/sessions/686d0d03-82d8-47a8-93ed-63cbf2a6a709

Co-authored-by: szaimen <42591237+szaimen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-12 13:06:01 +00:00
committed by GitHub
parent b697863f5f
commit c128f29bc2
6 changed files with 18 additions and 18 deletions

View File

@@ -82,7 +82,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-database",
@@ -140,7 +140,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-nextcloud",
@@ -283,7 +283,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-notify-push",
@@ -325,7 +325,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-redis",
@@ -368,7 +368,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-collabora",
@@ -615,7 +615,7 @@
"/tmp",
"/nextcloud_aio_volumes"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-watchtower",
@@ -639,7 +639,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-domaincheck",
@@ -885,7 +885,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-harp",
@@ -927,7 +927,7 @@
"cap_drop": [
"NET_RAW"
],
"cpu_shares": 2048
"cpu_shares": 1024
},
{
"container_name": "nextcloud-aio-whiteboard",

View File

@@ -303,7 +303,7 @@ readonly class ContainerDefinitionFetcher {
$shmSize = $entry['shm_size'];
}
$cpuShares = 1024;
$cpuShares = 512;
if (isset($entry['cpu_shares'])) {
$cpuShares = $entry['cpu_shares'];
}