Skip to content

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

@lindesvard

Description

@lindesvard

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions