From 88fa3b76994ee524d3e234ce89d8fbb8e5eada11 Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Mon, 5 Dec 2022 16:24:01 +0530 Subject: [PATCH] feat(distributed): create single docker-compose.yaml and CH configuration (#1803) * feat: setup for distributed clickhouse Signed-off-by: Prashant Shahi Co-authored-by: Ankit Nayan --- Makefile | 4 +- .../clickhouse-setup/clickhouse-config.xml | 169 +----------- .../clickhouse-setup/docker-compose.yaml | 142 ++++++++-- .../clickhouse-setup/clickhouse-config.xml | 169 +----------- .../docker-compose-distributed.yaml | 250 ++++++++++++++++++ .../clickhouse-setup/docker-compose.yaml | 153 +++++++++-- .../tests/test-deploy/clickhouse-config.xml | 169 +----------- .../tests/test-deploy/docker-compose.yaml | 206 ++++++++++++--- 8 files changed, 669 insertions(+), 593 deletions(-) create mode 100644 deploy/docker/clickhouse-setup/docker-compose-distributed.yaml diff --git a/Makefile b/Makefile index c46effa9a9..d745ec9807 100644 --- a/Makefile +++ b/Makefile @@ -127,8 +127,8 @@ down-x86: clear-standalone-data: @docker run --rm -v "$(PWD)/$(STANDALONE_DIRECTORY)/data:/pwd" busybox \ - sh -c "cd /pwd && rm -rf alertmanager/* clickhouse/* signoz/*" + sh -c "cd /pwd && rm -rf alertmanager/* clickhous*/* signoz/* zookeeper-*/*" clear-swarm-data: @docker run --rm -v "$(PWD)/$(SWARM_DIRECTORY)/data:/pwd" busybox \ - sh -c "cd /pwd && rm -rf alertmanager/* clickhouse/* signoz/*" + sh -c "cd /pwd && rm -rf alertmanager/* clickhous*/* signoz/* zookeeper-*/*" diff --git a/deploy/docker-swarm/clickhouse-setup/clickhouse-config.xml b/deploy/docker-swarm/clickhouse-setup/clickhouse-config.xml index 4a6a82b8af..dd2b1bdf5b 100644 --- a/deploy/docker-swarm/clickhouse-setup/clickhouse-config.xml +++ b/deploy/docker-swarm/clickhouse-setup/clickhouse-config.xml @@ -236,8 +236,8 @@ - /etc/clickhouse-server/server.crt - /etc/clickhouse-server/server.key + + - - - - - - - - - - - - - - localhost - 9000 - - - - - - - - false - - 127.0.0.1 - 9000 - - - 127.0.0.2 - 9000 - - - 127.0.0.3 - 9000 - - - - - - - - localhost - 9000 - - - - - localhost - 9000 - - - - - - - 127.0.0.1 - 9000 - - - - - 127.0.0.2 - 9000 - - - - - - true - - 127.0.0.1 - 9000 - - - - true - - 127.0.0.2 - 9000 - - - - - - - localhost - 9440 - 1 - - - - - - - localhost - 9000 - - - - - localhost - 1 - - - - - @@ -786,29 +644,6 @@ Values for substitutions are specified in /clickhouse/name_of_substitution elements in that file. --> - - - - - /etc/clickhouse-server/server.crt - /etc/clickhouse-server/server.key + + - - - - - - - - - - - - - - localhost - 9000 - - - - - - - - false - - 127.0.0.1 - 9000 - - - 127.0.0.2 - 9000 - - - 127.0.0.3 - 9000 - - - - - - - - localhost - 9000 - - - - - localhost - 9000 - - - - - - - 127.0.0.1 - 9000 - - - - - 127.0.0.2 - 9000 - - - - - - true - - 127.0.0.1 - 9000 - - - - true - - 127.0.0.2 - 9000 - - - - - - - localhost - 9440 - 1 - - - - - - - localhost - 9000 - - - - - localhost - 1 - - - - - @@ -786,29 +644,6 @@ Values for substitutions are specified in /clickhouse/name_of_substitution elements in that file. --> - - - - - /etc/clickhouse-server/server.crt - /etc/clickhouse-server/server.key + + - - - - - - - - - - - - - - localhost - 9000 - - - - - - - - false - - 127.0.0.1 - 9000 - - - 127.0.0.2 - 9000 - - - 127.0.0.3 - 9000 - - - - - - - - localhost - 9000 - - - - - localhost - 9000 - - - - - - - 127.0.0.1 - 9000 - - - - - 127.0.0.2 - 9000 - - - - - - true - - 127.0.0.1 - 9000 - - - - true - - 127.0.0.2 - 9000 - - - - - - - localhost - 9440 - 1 - - - - - - - localhost - 9000 - - - - - localhost - 1 - - - - - @@ -786,29 +644,6 @@ Values for substitutions are specified in /clickhouse/name_of_substitution elements in that file. --> - - - -