1. What isReplica set A replica set is a cluster of MongoDB replicas. The same-time principle is that the write operation occurs in the main library, which synchronizes the Oplog log from the main library. There is no specific main library in the cluster, the main library is elected, and if the main library is down, a main library will be elected. MongoDB can also be configured as Master-slave mode, however, it is not recommended to use master-slav
MongoDB Tutorial: MongoDB cluster and replica set
Concepts
For MongoDB Data Disaster Tolerance, the recommended mode is the replica set mode. It has an external Primary server Primary and N replica servers Secondary (N> = 1, when N = 1, an arbitration server (Arbiter) is required. When N> 1, Arbiter is not required. They were previously synchronized through inter
Some conceptsFor MONGO in data disaster recovery, the recommended pattern is to use replica set mode, which has an external primary server primary, and N replica server secondary (n>=1, when n=1, need to have an arbiter server arbiter when n> 1 o'clock does not require arbiter), they were previously synchronized through the internal mechanism, and when primary hung, it will be through the internal heartbeat
First, MongoDB Replica sets (replica set) is simply the master-slave cluster with automatic fault recovery function, the most obvious difference between master-slave cluster and replica set is that the replica set has no fixed "master node": The whole cluster will elect a "master node" When it is not working properly,
When building the replica set for MongoDB (version 3.2.9), use Rs.status () to view the state of the replica set and find a member exception: Replica set IDs do not match, details are:
"lastHeartbeatMessage" : "replica set IDs do not match, ours: xxx; remote node‘s: yyy",
"stateStr" : "(not reachable/healthy)"
= Bsbgpsrs #设置副本集的名字为myrs, replset name of the same replica cluster3. Start the replica set on each machine separatelySu-mongo#修改环境变量Path= $PATH: $HOME/bin:/usr/local/mongodb/binExport PATH#启动Yum install-y net-snmp* gcc-c++Nohup mongod-f/usr/local/mongodb/etc/mongod.conf >/dev/null 2>1 4. Initialize the replica setLogin to the MongoDB backend Management shell of
Affected models
2010 MAC 15.4 Inch, 17 inch. MC371 MC372 MC373 MC024.
2011 MacBook Pro 15.4 Inch, 17 inch. MC721, MC723 MD318 MD322 md103,md104, MC725 MD311
Probably from the second half of 12 began to receive customers to send repair MacBook Pro 15-inch display Kafa machine. At first there is no special attention to the use of individual customers of the environment, and the use of different frequencies
12-inch Apple MacBook Settings What happens when the system is stuck? Apple has released a number of documents about the 12-inch new MacBook when setting up the system to die. According to Apple, when the user set the 12-inch Retina MacBook, will encounter the situation of unlimited Hot wheels. In some cases, the system will be stuck for 30 minutes.
12-inch Appl
Do not know why Csdn markdown Editor from the file import articles, the article is less part, to my research, read the full text please visit my personal blog: from zero to infinityThis May started with the MacBook Pro and iphone 6, which has now been used for one months, feeling able to write my use feeling. I could not understand the behavior of those fruit powders before using Apple products, but after one months of using Apple products, I have tur
Apple, in order to improve the portability of the product, in the new MacBook Pro on the sharp cut the interface, but also canceled a face backlight apple logo. Recently, some netizens found that the new MacBook Pro also canceled the Mac computer classic startup sound--duang~
This classic startup sound indicates that the computer hardware self-test passed, prompting the user not to discover hardware
MacBook Pro How to add fingerprints and bank cards
The new MacBook Pro prompts the user to add a fingerprint (only one), and after the setting is complete, the user can add additional fingerprints (up to 3) in the System preferences. Now let's talk about the specific setup process.
1. Click System Preferences-Touch ID.
2. Click "+" to add fingerprint, you can add up to 3. Click
1. New Butterfly Keyboard
The new MacBook is incredibly lightweight, but its keyboard may take a little time to adapt. Although Apple claims that they created a new "butterfly" mechanism to bring comfortable feel, the buttons are still a little stiff, and the keypad is so short that it's almost impossible to feel the pressure.
2. New Touch Control Board
The new trackpad is really accurate, but the Force click action is very intuitive
The MacBook air has been unable to install WINDOWS7, we can only choose Microsoft's Windows 8.1 system. And then the question came, what about the 2015 MacBook Air that ran into a black screen during the installation of Windows 8.1? The workaround is as follows:
If you have the same problem and are bothered, you can refer to the following solutions:
1. Using Apple's Boot Camp software, which allows you to
What if your MacBook Pro hard drive is broken? If your device is a non-Retina MacBook Pro, then you can try to replace the hard disk, the following small series to bring you the old MacBook Pro dismantle the hard drive and system installation of graphics tutorial, hope to help you!
1, first, open the computer back cover:
2, remove the previous hard drive:
Tags: Eric svn driver CBO hub NPU need etc appletThe latest version of the MacBook support for Ubuntu (or vice versa?) Not very good, but except for suspend and resume features not found method use, others are OK, available.1, Mac in OSX first install Refind boot, if the SPI is turned on, you also need to switch off the SPI in Safe Mode terminal. The Safe Mode terminal is command+r at boot time. Turn off SPI to Google.2, the production of normal Ubunt
Tags: size technical parameter ble path which meaning configuration information redoIn each MongoDB (version 3.2.9) instance, there is a local database that stores information and local data for Replication processes. The local database is characterized by the fact that data and collections located in the local database are not copied to other MongoDB instance by the Replication process. If some collection and data on the instance are not scheduled to be copied to other MongoDB Instance, these c
I. node types
Standard: a regular node that stores a complete copy of data and participates in voting. It may become an active node.
Passive: stores complete data copies and participates in voting. It cannot be an active node.
Arbiter: An arbitration node that only participates in voting and does not receive copied data. It cannot become an active node.
Ii. parameter description-- Dbpath: Data File Path-- Logpath: Log File Path-- Port port number. The default value is 27017. This port number is
One: Concept
The popular copy set is to use multiple machines for the same data asynchronous synchronization, so that multiple machines have multiple copies of the same data, and when the main library when it is off without user intervention, automatically switch to other backup server Master library. The replica server can also be used as a read-only server to achieve read-write separation and increase load.
Second: Experimental en
Tags: Mongodb big Data cloud computingThe following operations are mainly divided into two sections:
Modify Node State
Mainly include: Demote the primary node to the secondary nodeFreeze secondary nodesForcing secondary nodes into maintenance mode2. Modify the configuration of the replica set Adding nodesDelete a nodeTo set the secondary node as a deferred backup nodeTo set the secondary node as a hidden nodeReplace the current
1. Master-slave deployment of replica set mongodb. The common mode is replica set (replicaset. Replicaset is a group of multiple mongod instances, including one primary and multiple slave databases. The advantage of this primary multi-slave mode is that mongodb self-O M will automatically detect the heartbeat and select a new
1. Master-slave deployment of replica
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.