Data Base/NOSQL
[NOSQL] : Sharding 구축
오주현
2021. 11. 9. 12:09
반응형
시스템 환경
mongod --shardsvr --dbpath c:\mongodb\shard1 --port 40001 --bind_ip localhost
mongod --shardsvr --dbpath c:\mongodb\shard2 --port 40002 --bind_ip localhost
mongod --shardsvr --dbpath c:\mongodb\shard3 --port 40003 --bind_ip localhost
Shard Server를 활성화 합니다.
mongod --configsvr --replSet rptconfig --dbpath c:\mongodb\config1 --port 50001 --bind_ip localhost
mongod --configsvr --replSet rptconfig --dbpath c:\mongodb\config2 --port 50002 --bind_ip localhost
mongod --configsvr --replSet rptconfig --dbpath c:\mongodb\config3 --port 50003 --bind_ip localhost
Config Server를 활성화 합니다.
반응형