0

is it possible to have One mongodb instance belong to one or more replica sets ?

I am using Replica Set - mongodb replication scheme.

1 Answer 1

2

No.

With Master-Slave you could hack this to make it work, but not with Replica Sets. However, you can run two instances on a single machine. Simply run them on different ports.

Please note that this is generally not advised. If you are sharing replicas, this typically means that you do not have enough hardware.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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