Skip to content

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
Contributor

@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
Contributor

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
Contributor

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.

services:
analytics-datastore-clickhouse:
image: clickhouse/clickhouse-server
image: clickhouse/clickhouse-server:latest
Copy link
Contributor

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