I have a problem in redis, Each 18-30 hour it failed and I should restart it manually to run it again. Our server have 1 wordpress website. Redis version: 5.0.3 OS: CentOS Linux release 8.3.2011
regards
I have a problem in redis, Each 18-30 hour it failed and I should restart it manually to run it again. Our server have 1 wordpress website. Redis version: 5.0.3 OS: CentOS Linux release 8.3.2011
regards
I would recommend you to first check /var/log/messages
to get the full picture, maybe redis' log as well.
You can see the process was ended with SIGKILL
, which usually implies that it was killed by the OOM killer. This happens when your kernel does not have enough memory to operate and needs to kill processes to continue. OOM killer's log messages can be found here
You have several options to mitigate this.
Restart=always
to /usr/lib/systemd/system/redis.service
and reload the configuration with systemctl daemon-reload
. This will make sure your redis won't stay down but won't help with your memory issuesOOMScoreAdjust
value in redis.service
to make sure redis doesn't get killed. The downside is that kernel might choose something more important to kill (like sshd
)