-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: clickhouse cluster #264
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few comments.
networks: | ||
public: | ||
default: | ||
- ${PWD}/configs/clickhouse-keeper-01/etc/clickhouse-keeper/keeper_config.xml:/etc/clickhouse-keeper/keeper_config.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't use regular file mount with docker swarm as these files need to be available across all nodes. That is why we use docker config which will make the config available across all nodes.
mode: host | ||
- target: 9000 | ||
published: 9001 | ||
published: 9000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, been meaning to do this too. This might have implications in other packages. Maybe a quick search will be able to tell if this is the case or not.
@@ -2,7 +2,7 @@ version: '3.9' | |||
|
|||
services: | |||
analytics-datastore-clickhouse: | |||
image: clickhouse/clickhouse-server | |||
image: clickhouse/clickhouse-server:latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets pin this to the latest release.
Implementation was inspired from official clickhouse recipes for docker compose.
https://github.com/ClickHouse/examples/tree/main/docker-compose-recipes
This implementation has 3 replicas and 1 shard, it would make sense to have 2 shards if we have 4 nodes. So it would depend on the actual implementation.