The following procedure shows how administrators can build an index in a replica set in a rolling fashion where we build the index on each node while it is removed temporarily from the replica set temporarily and restarted as a standalone node.
https://docs.mongodb.com/manual/tutorial/build-indexes-on-replica-sets/
As a supplement to the documentation, it may be useful to add a JS test that demonstrates this procedure.
- related to
-
SERVER-71769 Add a new log message when a secondary node is skipping a two-phase index build
- Closed