-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
连接超时 #50
Comments
看起来有将近 1000 个连接了. 可以检查一下系统的最大连接数是不是默认的 1024 吗? 试试调大连接数然后重启程序 |
ulimt -n 参数值为65535 |
已经将系统的连接数调大至1024000,lsof |wc -l 在2万左右。还是存在Too many open files. Stop accepting from Acceptor(16@0x7f2aa6f830f8)日志,直连cerberus服务依旧卡顿。 |
这条日志的上下文在 redis-cerberus/core/acceptor.cpp Line 40 in bafa430
从代码来看应该是 |
不懂具体怎么加,可以指点下吗?感谢! |
可以试试
然后在将那条日志改成
|
程序直连报超时错误:PHP Fatal error: Uncaught RedisException: Connection timed out
cerberus错误日志如下:
2020-05-07 16:50:10,758 I 139821100205824 Start accepting - Acceptor(16@0x7f2aa6f830f8)
2020-05-07 16:50:10,758 W 139821100205824 Too many open files. Stop accepting from Acceptor(16@0x7f2aa6f830f8)
2020-05-07 16:50:10,758 W 139821100205824 version:0.8.0-2018-05-02
threads:8
cluster_ok:1
read_slave:0
clients_count:149,115,114,125,108,124,107,107
accepting:0,1,0,0,0,0,1,0
long_connections_count:0,0,0,0,0,0,0,0
used_cpu_sys:5016.74
used_cpu_user:5436.59
mem_buffer_alloc:5727980,5757925,6057566,5053367,5545437,6056406,6060881,5886104
completed_commands:31235142
total_process_elapse:16135
total_remote_cost:13903.9
last_command_elapse:0.000243825,0.0186795,0.0141551,0.000359905,0.0203328,0.00054563,0.000973783,0.000646515
last_remote_cost:0.000197395,0.0186091,0.0139204,0.000297576,0.0202605,0.000488308,0.000921514,0.000564282
此时accepting指标大多为0,直连cerbers端口有卡顿,请问是什么原因呢?
The text was updated successfully, but these errors were encountered: