go-clickhouse icon indicating copy to clipboard operation
go-clickhouse copied to clipboard

How to connect multiple address?

Open bitbeliever opened this issue 3 years ago • 2 comments

bitbeliever avatar Jun 09 '22 02:06 bitbeliever

I want to know, too.

li-zeyuan avatar Jun 21 '22 08:06 li-zeyuan

Currently, the driver supports only one host in the connection string. To connect to different clickhouse instances and spread the load you can put a clickhouse load balancer https://github.com/ContentSquare/chproxy between your application and the clickhouse servers.

DoubleDi avatar Jun 21 '22 12:06 DoubleDi