chproxy icon indicating copy to clipboard operation
chproxy copied to clipboard

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

Open lindesvard opened this issue 1 year ago • 0 comments

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!

lindesvard avatar Dec 18 '24 09:12 lindesvard