Skip to content

Commit

Permalink
adding experimental replicated function to clickhouse #40
Browse files Browse the repository at this point in the history
  • Loading branch information
raoptimus committed Dec 3, 2024
1 parent 6eb09e1 commit b43ee9b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 16 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,20 @@ services:
depends_on:
- clickhouse-keeper

clickhouse-r-keeper:
clickhouse-keeper-r:
image: clickhouse/clickhouse-keeper:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster/config/keeper1/keeper_config.xml:/etc/clickhouse-keeper/keeper_config.xml"
- "./docker/volume/clickhouse-cluster-replicated/config/keeper1/keeper_config.xml:/etc/clickhouse-keeper/keeper_config.xml"

clickhouse-r-1:
image: clickhouse/clickhouse-server:23.11-alpine
restart: on-failure
volumes:
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse1:/etc/clickhouse-server/config.d/"
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse1/users.xml:/etc/clickhouse-server/users.d/users.xml"
depends_on:
- clickhouse-r-keeper
- clickhouse-keeper-r

clickhouse-r-2:
image: clickhouse/clickhouse-server:23.11-alpine
Expand All @@ -89,4 +89,4 @@ services:
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse2:/etc/clickhouse-server/config.d/"
- "./docker/volume/clickhouse-cluster-replicated/config/clickhouse2/users.xml:/etc/clickhouse-server/users.d/users.xml"
depends_on:
- clickhouse-r-keeper
- clickhouse-keeper-r
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<clickhouse>
<zookeeper>
<node>
<host>clickhouse-keeper</host>
<host>clickhouse-keeper-r</host>
<port>9181</port>
</node>
</zookeeper>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<clickhouse>
<zookeeper>
<node>
<host>clickhouse-keeper</host>
<host>clickhouse-keeper-r</host>
<port>9181</port>
</node>
</zookeeper>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<clickhouse replace="true">
<logger>
<level>information</level>
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
<size>1000M</size>
<level>error</level>
<console>1</console>
<size>10M</size>
<count>3</count>
</logger>
<listen_host>0.0.0.0</listen_host>
Expand All @@ -20,7 +19,7 @@
<raft_configuration>
<server>
<id>1</id>
<hostname>clickhouse-keeper</hostname>
<hostname>clickhouse-keeper-r</hostname>
<port>9234</port>
</server>
</raft_configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<clickhouse replace="true">
<logger>
<level>information</level>
<log>/var/log/clickhouse-keeper/clickhouse-keeper.log</log>
<errorlog>/var/log/clickhouse-keeper/clickhouse-keeper.err.log</errorlog>
<size>1000M</size>
<level>error</level>
<console>1</console>
<size>10M</size>
<count>3</count>
</logger>
<listen_host>0.0.0.0</listen_host>
Expand Down

0 comments on commit b43ee9b

Please sign in to comment.