1. Environment:Open four MongoDB instances on a single server to implement the cluster setup of MongoDB's replica set replica set mode2. Configuration file:Master Master Instance configuration file:[Email protected] ~]#
Environment: MongoDB version: 2.4.6,replica SetDemand: Primary pressure is too high, expect secondary share reading pressureObjectiveFrom an application perspective, it is much like using replica Set and using a single MONGO. The default driver
This is a document written last year, the recent sudden discovery has not been issued, so now fill in, hoping to help some friends. Because there was no record at the time, it might seem monotonous here.First, the basic environment:mongdb3.0.5
Mongodb3.0.5 replica set setup and spring and Java connection replica set configuration details
First, the basic environment:
mongdb3.0.5 DatabaseSpring-data-mongodb-1.7.2.jarMongo-java-driver-3.0.2.jarlinux-redhat6.3Tomcat7
Second, build MongoDB
Recently MongoDB is frequently shot in the hack news. Many people are more claiming to hate Mongodb,david Mytton on his blog revealing many of the existing problems in MongoDB. But the hated one has the same many preferences, as a comeback: Russell
Create a virtual machine, if you are using copy to install the system, remember to modify the machine name, otherwise all machine names are the same, will cause installation failureAt the same time, shut down the firewall, all the machine timing to
MongoDB replica setup (one master and two spare)Master: 192.168.0.237Prepared 1:192.168.0.122Prepared 2:192.168.0.123Three machines are also operatedTar zxf mongodb-linux-i686-1.8.1.tgzMV
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.