Sharding ã¨ã¯ã ãã¼ã¿ãè¤æ°ã®ãµã¼ãã¼ã«åå²ãã¦ä¿æãããã¨ã§ãã ããã«ãããã¼ã¿ãå°ããå¡æ¯ã«å¦çãããã¨ã§å¦çæ§è½ã®åä¸ãè¦è¾¼ãã¾ãã æå°æ§æã¯ãï¼ã³ã³ãã¼ãã³ãï¼å°ã«ãªãã¾ãã 1. 2ã¤ä»¥ä¸ã®shardãµã¼ãã¼ ï¼ å®éã«ãã¼ã¿ãå ¥ãã¾ã 2. 1ã¤ä»¥ä¸ã®configãµã¼ãã¼ ï¼ sharding ã®ã¡ã¿æ å ±ãæ ¼ç´ããã¾ã 3. mongos ã«ã¼ãã£ã³ã°ããã»ã¹ ï¼ sharding ãå¸ãã¾ã ã¨ãããã¨ã§ãã¾ã㯠shard ãµã¼ãã¼ ã 2 å°èµ·åãã¾ãã $ bin/mongod --shardsvr --port 27017 --dbpath /var/mongodb/data/s0/ $ bin/mongod --shardsvr --port 27018 --dbpath /var/mongodb/data/s1/ 次㫠configãµã¼ãã¼ ã 1
{{#tags}}- {{label}}
{{/tags}}