How to deploy a horizontally scalable cluster?
- Dominant language
- Dockerfile
- Stars
- 273
- Forks
- 102
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 2
Description
After reading the introduction, we found that citus perfectly met our requirements, but the deployment documentation was unfriendly.
How to deploy a horizontally scalable cluster?
Eg in Node 1 of 192.168.1.1
```yml
service:
master1:
image:citusdata/citus:12.1
ports:
- 5432:5432
volumes:
- ./data1:/data
environment:
- CITUS_CLUSTER: 192.168.1.2,182.168.1.3
```
Eg in Node 1 of 192.168.1.2
```yml
service:
master2:
image:citusdata/citus:12.1
ports:
- 5432:5432
volumes:
- ./data2:/data
environment:
- CITUS_CLUSTER: 192.168.1.1,182.168.1.3
```
Eg in Node 1 of 192.168.1.3
```yml
service:
master3:
image:citusdata/citus:12.1
ports:
- 5432:5432
volumes:
- ./data3:/data
environment:
- CITUS_CLUSTER: 192.168.1.1,182.168.1.2
```
And users can connect to any node.
- 192.168.1.1:5432
- 192.168.1.2:5432
- 192.168.1.3:5432
Referenced from the MinIO cluster https://github.com/minio/minio/blob/master/docs/orchestration/docker-compose/docker-compose.yaml
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.