ajduke
ajduke

Reputation: 5057

One MongoDB instance in a two or more replica set

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

I am using Replica Set - mongodb replication scheme.

Upvotes: 0

Views: 156

Answers (1)

Gates VP
Gates VP

Reputation: 45307

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.

Upvotes: 2

Related Questions