Prevent mariadb from OOM killing

Added OOMScoreAdjust to systemd environment config to avoid mariadb galera to be killed in a oom situration

Closes-Bug: #1927951
Change-Id: I1041865b1f488b05240722ff52773d51c151ad62
This commit is contained in:
Per Abildgaard Toft 2021-05-10 14:10:18 +02:00 committed by Dmitriy Rabotyagov
parent 60de69f0ec
commit cd370e87e6
1 changed files with 3 additions and 0 deletions

View File

@ -3,3 +3,6 @@
[Service]
# https://jira.mariadb.org/browse/MDEV-14256
Environment="WSREP_SST_OPT_PORT=4444"
# Configure Linux OOM killer to prioritize other targets than mariadb
OOMScoreAdjust=-1000