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

访问pika出现间歇性EOF #1092

Closed
nishilv2 opened this issue Oct 18, 2021 · 1 comment
Closed

访问pika出现间歇性EOF #1092

nishilv2 opened this issue Oct 18, 2021 · 1 comment
Labels
configuration how to set configuration in best practice

Comments

@nishilv2
Copy link

访问pika出现间歇性EOF, 查了下大概是因为timeout参数导致的,这个配置推荐如何设置,如何避免出现EOF,连接断开的问题

@kernelai
Copy link
Collaborator

pika有自动关闭空闲链接的机制,当一个连接超过timeout时长后会被关闭,防止过多的无效连接资源,这个与redis的机制是一致的。于是这个问题需要按照你们具体的场景设置。

  1. 一方面通过增大timeout时长。在物理机资源充足的情况是是没问题的。
  2. 如果资源紧张,应用程序可以在客户端设计连接池,并且通过空闲时发送ping不断保活。

@kernelai kernelai added question configuration how to set configuration in best practice and removed question labels Oct 18, 2021
@AlexStocks AlexStocks added bug and removed bug labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration how to set configuration in best practice
Projects
None yet
Development

No branches or pull requests

3 participants