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

Add support for multiple addresses same as in golang client #172

Open
kobi-co opened this issue Jul 5, 2023 · 3 comments
Open

Add support for multiple addresses same as in golang client #172

kobi-co opened this issue Jul 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@kobi-co
Copy link

kobi-co commented Jul 5, 2023

Hi,
It would be great if you'll be able to support multiple addresses same as in the golang client library for better support on working with clickhouse clusters.

Thank you!

@slvrtrn slvrtrn added the enhancement New feature or request label Jul 5, 2023
@slvrtrn
Copy link
Contributor

slvrtrn commented Jul 11, 2023

@kobi-co, it should be similar to https://github.com/ClickHouse/clickhouse-go#http-support-experimental, right?

http://host1:8123,host2:8123/database?dial_timeout=200ms&max_execution_time=60

@kobi-co
Copy link
Author

kobi-co commented Jul 11, 2023

I actually meant the option to pass multiple addresses in the Open method, but if we can get the same result by passing one address with multiple hosts that's good as well.

Thanks!

@zibellon
Copy link

Plus 1

Hello

I have clickhouse cluster - 4 servers (4 shards, no replicas). Now, this client can connect only to one instance (For example - shard 2). IF shard 2 DOWN - nothing work ...

  1. pass multiple: { host, port, username, password, dbName }[]. AS ARRAY
  2. switching connection and other INSIDE lib

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

No branches or pull requests

3 participants