Clickhouse sharding and replication are now completed in multi-node state. I know that after sharding, I need to create a shared database and send queries to that database. But in order to query this database I know I need cluster_name. When I looked up the settings on the Snuba side, it seems that there is an environment variable that can only respond to the clickhouse of a single node.
How do I use a clustered clickhouse? Looking for more repo, I checked the following multi node cluster in the snuba test code.
Can I get an environment variable for cluster_name that I can use when querying the clickhouse from snuba? Or is there another way?
When working with a single node setting without an existing cluster_name, a table is created only in one clickhouse, which was set as an endpoint, and sharding or replication was not performed on the other clickhouse nodes.