1

I have two separate mongo db instances say A and B running in a remote location and i want to maintain a collective synchronized copy/backup of these instances in a separate mongo instance say C. So i just want to know is it possible to configure two separate replica sets for A and B instances having C as common secondary instance for both the sets..?

1 Answer 1

3

No you cannot have shared secondary as the sync is based on oplog replay plus a single monogd cannot be a member of 2 replica set.

The only way to have a single machine be a member of multiple replica sets is to run multiple mongod servers on that machine.

1
  • 1
    Also note that it's not recommended to run multiple mongod servers on a single machine; their memory requirements will clash. Jan 4, 2018 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.