We are investigating why a WordPress website was offline with the error "Error establishing a Redis connection" and looking at the redis.log file we can see the following entries just before it started:
3:M 11 Mar 2025 11:19:47.975 * Background saving terminated with success
3:M 11 Mar 2025 11:24:48.085 * 100 changes in 300 seconds. Saving...
3:M 11 Mar 2025 11:24:48.097 * Background saving started by pid 6048
6048:C 11 Mar 2025 11:24:52.987 * DB saved on disk
6048:C 11 Mar 2025 11:24:52.996 * Fork CoW for RDB: current 2 MB, peak 16 MB, average 5 MB
3:M 11 Mar 2025 11:24:53.027 * Background saving terminated with success
3:M 11 Mar 2025 11:29:54.076 * 100 changes in 300 seconds. Saving...
3:M 11 Mar 2025 11:29:54.085 * Background saving started by pid 6050
6050:C 11 Mar 2025 11:29:58.963 * DB saved on disk
6050:C 11 Mar 2025 11:29:58.972 * Fork CoW for RDB: current 7 MB, peak 7 MB, average 5 MB
3:M 11 Mar 2025 11:29:58.995 * Background saving terminated with success
3:signal-handler (1741692623) Received SIGTERM scheduling shutdown...
3:M 11 Mar 2025 11:30:23.526 # User requested shutdown...
3:M 11 Mar 2025 11:30:23.526 * Saving the final RDB snapshot before exiting.
It was easy to fix as we simply restarted the PHP container but this is not the first time we have seen redis just stop and wondered if anybody else had seen this?
We haven't changed the config or played around with redis from the stock install so all it has is "bind 127.0.0.1"
Is it even possible for a website user to request redis shut itself down?