https://github.com/dnalchemist/mongo-sharded-cluster
This project involves creating a new sharded cluster that consists a two instances of mongos, the config server replica set, and two shard replica sets.
https://github.com/dnalchemist/mongo-sharded-cluster
docker docker-compose mongodb
Last synced: about 2 months ago
JSON representation
This project involves creating a new sharded cluster that consists a two instances of mongos, the config server replica set, and two shard replica sets.
- Host: GitHub
- URL: https://github.com/dnalchemist/mongo-sharded-cluster
- Owner: DNAlchemist
- License: mit
- Created: 2018-10-16T07:36:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T11:27:46.000Z (over 7 years ago)
- Last Synced: 2025-04-09T15:55:05.338Z (about 1 year ago)
- Topics: docker, docker-compose, mongodb
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This project involves creating a new sharded cluster that consists a two instances of mongos, the config server replica set, and two shard replica sets.
export DATA_DIR=$PWD
docker-compose up -d
# Check all containers is up to work. Otherwise, rerun `docker-compose up -d`.
# Despite the dependence between the containers, the first container may simply
# not be able to fully start the service
# Initialize the cluster
./init
# To access to the cluster through the balancer
docker exec -it mongos1 mongo
# To access on of the shards directly
docker exec -it mongors1n1 mongo