Clickhouse multi master replication
EnglishSoftwareTutorials
File for reproductible environment :
Nothing is stored on the VM instances : see volumes configuration out of the docker-compose file.
Sharding and replica is straightforward and defined in these files :
- ch_configs/config.d/remote_server.xml
- ch-configs/macros_chX.xml (replace X with server’s instance number)
Starting clickhouse servers :
Keep reading$ docker-compose up -d ch1 ch2 ch3 ch4
$ docker ps -a