paint-brush
Mastering MongoDB - Faster elections during rolling maintenanceby@shyam.arjarapu
3,313 reads
3,313 reads

Mastering MongoDB - Faster elections during rolling maintenance

by Shyam Arjarapu7mJune 15th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The maintenance/upgrade in a MongoDB replica set is typically performed in a rolling fashion. Rolling maintenance requires you to perform the maintenance on one Secondary at a time with the Primary member to go through the maintenance last. When you stepDown the Primary, all the eligible Secondaries will hold an election for a new Primary. Until a new primary is elected the database is not available for writes. This article discusses the rolling maintenance, implications of not having a Primary, the steps required to elect a new. Primary is the only member in the replica set that receives write operations.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Mastering MongoDB - Faster elections during rolling maintenance
Shyam Arjarapu HackerNoon profile picture
Shyam Arjarapu

Shyam Arjarapu

@shyam.arjarapu

L O A D I N G
. . . comments & more!

About Author

Shyam Arjarapu HackerNoon profile picture
Shyam Arjarapu@shyam.arjarapu

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite