目录Outline 1. prerequisites 2. steps to follow3. configuring the cluster4. a little test to see 1. Prerequisites Suppose: (1) you have deploy a functioning network to install mongodb cluster. (2) you have gained the latest releases of MongoDB from 10g…
网上关于三种集群方式的搭建方式很多,都是分开来介绍的.Replica Set (复制集成)主要是做主从库的,但是没法实现负载均衡的效果,真正实现这个的,是Sharding(分片集群),通过数据分布在每个分片上而实现.所以,如果只用分片,如果一个只有一个主库,那么挂了就真的挂了.所以在我尝试的集群部署采用的Replica Set+Sharding的方式.OS是Redhat_x64系统,客户端用的是Java客户端.Mongodb版本是mongodb-linux-x86_64-2.4.9.tgz. 要…