You probably have timeout
not set to 0
on your redis-server
. If your application is supposed to be idle for a long period of time, you should have set your timeout
to 0
. You can check your config file or use the following via redis-cli
:
CONFIG GET timeout
If this is already on your production servers and you aren't allowed to put it down for a while, you can do the following to set the redis timeout
dynamically using redis-cli
:
CONFIG SET timeout 0
Then don't forget to set the following line on your redis config file:
timeout 0