Home >Database >Mysql Tutorial > 公司的实战Replica Sets+Sharding方案

公司的实战Replica Sets+Sharding方案

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 16:54:14765browse

公司的实战ReplicaSets+Sharding方案公司mongo集群分片实战准备九台服务器,分片1:172.16.0.12..

分片

db.runCommand({enablesharding:"test"})

db.runCommand({shardcollection:"test.users",key:{id:"hashed"}})

 

 

 

强调服务时间必须要同步,,否则有问题

本文出自 “飛鴻沓膤” 博客,转载请与作者联系!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn