Redis Podman Container Restarting Itself
Installed Redis via easy apache containers. It is up and running on an account. Runs great for a while then stops. Seems to relaunch when I shell back into the account. Redis log shows no errors. Just that it's getting SIGTERM and shutsdown/restarts. The container shows up in the lfd.log for excessive resource usage, but Kill is set to 0. So I'm assuming lfd is not killing the process. /var/log/messages also shows starting and stoping of the container, but no other errors related. Any ideas where to look?
I did see a note in the logs about setting the vm.overcommit_memory = 1 in sysctl.
-
Hey there! Do you see anything in /var/log/chkservd.log that would indicate cPanel is restarting the service? If so, you may need to add a new monitor for that tool as outlined here:
https://docs.cpanel.net/knowledge-base/cpanel-product/tailwatch/#add-a-new-monitor
which would look like this:
#cat /etc/chkserv.d/redis
service[redis]=6379,ping,\+PONG,/scripts/restartsrv_redis,redis,redis0 -
There is nothing in /var/log/chkservd.log for redis or podman in the host OS.
There is no chkservd.log file at all in the container.
If I add a monitor, would I need to add it for redis, or the container since redis is running inside the container?
0 -
You would only need to add a monitor if you wanted chkservd to watch the service.
It might be best to submit a ticket so we can check this one out since I would expect there to be logs somewhere if the service is failing.
0
Please sign in to leave a comment.
Comments
3 comments