我正在将Redis与Daemon进程以及常规缓存一起使用
-
Daemon进程与主管(Laravel Redis队列(
-
作为键值对的定期缓存
timeout=300
当前位于我的redis.conf文件中
有人建议在几个Git链接中将其更改为timeout=0
(https://github.com/predis/predis/issues/33)
我担心的是,如果我将超时设置为0,redis服务器将不会丢弃任何连接
经过一段时间,我看到max number of clients reached
出现错误的可能性
寻求更改超时的建议-->0在redis.conf
目前,我经常(每2-3分钟(收到以下错误日志[超时=300]
{"message":"Error while reading line from the server. [tcp://10.10.101.237:6379]","context":
{"exception":{"class":"Predis\Connection\ConnectionException","message":"Error while reading
line from the server.
[tcp://10.10.101.237:6379]","code":0,"file":"/var/www/api/vendor/predis/predis/src/Connection/Ab
stractConnection.php:155"}},"level":400,"level_name":"ERROR","channel":"production","datetime":
{"date":"2020-09-23 07:14:01.207506","timezone_type":3,"timezone":"Asia/Kolkata"},"extra":[]}
我已更改为timeout = 0
一切都很顺利!!!
PS:发布这个,发布更改后2个月的观察