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

[QUESTION] What should be the correct value for keep_alive_timeout on the server vs client #495

Open
lindesvard opened this issue Dec 18, 2024 · 0 comments

Comments

@lindesvard
Copy link

Which feature your question relates to?
connections

Question details
Since I have start using chproxy I have a socket close problem in my application and I think it might be related to keepalive settings since I didn't have this issue before chproxy.

Currently I have <keep_alive_timeout>10</keep_alive_timeout> on my clickhouse servers and below in my clickhouse-js client

  ...
  keep_alive: {
    enabled: true,
    idle_socket_ttl: 8000,
  },
  ...

When I look at chproxy's settings it looks like chproxy has 30 seconds keepalive.

So my question is rather simple. What is the recommended keepalive on the clickhouse-server and in the clickhouse-client?

btw, thanks for a great project!

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

No branches or pull requests

1 participant