When two nodes go down in a three-node replica set, the third node becomes a secondary regardless of whether it started as a primary?

Can someone point me at the detailed explanation for this in the manual?

I can’t quickly locate the documentation re this, and I’m not 100% sure whether this was discussed in detail, but it you wade through the entire topic on Replication you should be able to find something.

1 Like

God bless me. :joy:

Let us know what you find in a few days time :smiley:

Happy reading :tea:

Hi @Ziwen_Song_32480,

In the PSS architecture (i.e. one primary and two secondary nodes), if two nodes go down then the current primary node will automatically step down and becomes a secondary.

In this particular case, the primary node would not be able to communicate with the majority of the nodes as they are either unhealthy/unreachable and this will cause the current primary to step-down unconditionally.

That being said, I would still recommend you to go through the documentation page that @007_jb has shared for detailed understanding :wink: .

Let us know if you have any other question.

~ Shubham

I’m counting on you @Ziwen_Song_32480 :pray: :beers: