I have three mongoD instances running in a replica set in windows. MD1 -> Primary, MD2-> Secondry, MD3-> Secondry settings.electionTimeoutMillis = 10 seconds.
If I bring my primary MongoD instance MD1 down; MD2 and MD3 remains secondary even after 10 seconds. As per mongoDB document, "the primary node was unavailable for longer than the configured timeout and triggers the automatic failover process. One of the remaining secondaries calls for an election to select a new primary and automatically resume normal operations" but in my case MD2 and MD3 remains secondary even after 10 seconds. https://docs.mongodb.com/manual/core/replica-set-elections/#replica-set-elections