Skip to content
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

PHP 程序间歇性连接codis集群报Error: codis pconnect exception : #1739

Open
sunwenbo opened this issue Apr 13, 2022 · 1 comment
Open

Comments

@sunwenbo
Copy link

sunwenbo commented Apr 13, 2022

生产环境中,我们有多套codis集群,程序是php语言写的。开发反馈连接codis集群会时不时的time out 。而且其他的集群也会有这个问题,据我了解,使用java ,或者golang的开发语言并没有出现个这种问题。

已知由短链接的方式已经改为了长链接,我看过了codis proxy的主机监控,及codis proxy的监控都没有任何异常。而且发生time out的那个时间点,qps也和平时一样高,并没有大的并发。有相关经验的人分享一下经验 thanks

报错日志如下:

Error: codis pconnect exception :

traceId: localside_unknown_1649794135763

Detail info: code = 0, message = read error on connection to 10.138.20.55:19000

Error: codis pconnect exception :

traceId: localside_unknown_1649788128386

Detail info: code = 0, message = Connection timed out

@topicgit
Copy link

生产环境中,我们有多套codis集群,程序是php语言写的。开发反馈连接codis集群会时不时的time out 。而且其他的集群也会有这个问题,据我了解,使用java ,或者golang的开发语言并没有出现个这种问题。

已知由短链接的方式已经改为了长链接,我看过了codis proxy的主机监控,及codis proxy的监控都没有任何异常。而且发生time out的那个时间点,qps也和平时一样高,并没有大的并发。有相关经验的人分享一下经验 thanks

报错日志如下:

Error: codis pconnect exception :

traceId: localside_unknown_1649794135763

Detail info: code = 0, message = read error on connection to 10.138.20.55:19000

Error: codis pconnect exception :

traceId: localside_unknown_1649788128386

Detail info: code = 0, message = Connection timed out

PHP的版本是多少?php用的redis扩展版本是多少?
请问你们的php中是如何实现的长链接呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants