Question
How do I create a table that can query other clusters or instances?Answer
Below is a simple example to test functionality. In this example, ClickHouse Cloud is use but the example will work when using self-hosted clusters also. The targets will need to change to the urls/hosts/dns of a target node or load balancer. In cluster A:*this cluster will be used to gather the data from the other two clusters, however, can also be used as a source.
Definition for remote cluster A table: