D
D
Dmitry Demenkov2013-06-18 06:47:18
linux
Dmitry Demenkov, 2013-06-18 06:47:18

MongoDB replication for fault tolerance

Hello!
I need to replicate Mongo databases for fault tolerance.
With MySQL I made master-master. And what about mongo? I read a lot of articles on the Internet, but did not understand how to solve my problem.
It is necessary that the data in the database be synchronized, and in the event of a failure of one server, it is necessary to write to the mongo database and read data from it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
script88, 2013-06-18
@script88

welinux.ru/post/6607/

S
Stdit, 2013-06-18
@Stdit

ReplicaSet is well documented , easy and fast to do. When the master fails, one of the slaves is automatically assigned to it. There are many drivers with automatic support for ReplicaSet, for example, in the php driver, you just need to specify a list of database hosts.

G
Gleb Voronov, 2016-05-11
@TradeNark

It is well described here
Just using the Replica Set

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question