10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Start clusters with auth more efficiently #252

Open ShaneHarvey opened 6 years ago

ShaneHarvey commented 6 years ago

Recommended by @xdg in #251. For replica sets with auth enabled MO can start one server without auth or keyfile, configure the root user, then restart with auth and keyfile. All other replica set members can then be started with auth and keyfile. Finally MO can initiate the replica set off the server with a root user configured.

This process is more efficient (less restarts) and results in less log file spam than MO current process. It starts the entire replica set without auth, initiates, adds the root user, then restarts all members with auth.