Let’s suppose i have a Replica Set (primary and a bunch of secondaries)… I want to automate registering a new mongodb node as part of the replica set. In other words, as a new node comes online, I would like to be able to self register to the Replica Set.
Is it possible to add a new member to a mongodb Replica Set without executing the rs.add() shell command from the primary node’s side?
What does the mongo community recommend as a best solution to this issue? The problem I’m trying to solve is data replication across multiple nodes, but the nodes come and go dynamically. I’m trying to use mongodb replication as an alternative to data replication at the application layer (e.g. not necessarily using replication as a fault tolerance mechanism but more as a data sourcing mechanism).