I am experimenting with MongoDB replica sets to test the high availability scenarios. I have set up a 3 server replica set. When I stop the primary server, one of the remaining 2 servers becomes primary. After that, when I stop the new primary the last remaining server shows it's status as secondary.
Shouldn't the last server automatically become the primary? Or do I need to configure some setting for this to happen?