feat: Change oom killer adjust to prevent killing, change swappiness to 10

This commit is contained in:
Tha14 2022-12-23 21:29:05 +02:00
parent 2d1876e69e
commit 53c384b471
No known key found for this signature in database
GPG Key ID: C2B875C3A9D53CFC
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version: '3.3'
version: '2.4'
services:
uam_1:
@ -10,6 +10,8 @@ services:
ulimits:
rtprio: 95
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data/uam_1:/root/.uam"
@ -30,6 +32,8 @@ services:
ulimits:
rtprio: 95
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data/uam_2:/root/.uam"
@ -50,6 +54,8 @@ services:
ulimits:
rtprio: 95
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data/uam_3:/root/.uam"

View File

@ -1,4 +1,4 @@
version: '3.3'
version: '2.4'
services:
uam:
@ -10,6 +10,8 @@ services:
ulimits:
rtprio: 95
memlock: -1
oom_score_adj: -700
mem_swappiness: 10
volumes:
- "./entrypoint.sh:/opt/entrypoint.sh"
- "/opt/uam_data:/root/.uam"