Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: clickhouse cluster #264

wants to merge 1 commit into from

Conversation

marrouchi
Copy link
Contributor

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.

Copy link
Member

@rcrichton rcrichton left a 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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@rcrichton rcrichton closed this Jul 30, 2024
@rcrichton rcrichton reopened this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants