Two nodes MongoDB replica set without arbiter

前端 未结 4 1036
谎友^
谎友^ 2021-01-11 13:23

Is it possible to create a MongoDB replica set consisting of only 1 primary and 1 secondary member? I would like to have delayed replica set that will copy data from primary

4条回答
  •  温柔的废话
    2021-01-11 14:02

    Yes, it is possible but not recommended. The caveat of this approach is no automatic failovers.

    If you primary goes down then you will have to manually make the other server as primary.

    If you are keeping you secondary only as a mirror of your primary and you are fine with manual failover then it should work for you.

    More info here:

    http://openmymind.net/Does-My-Replica-Set-Need-An-Arbiter/

提交回复
热议问题