Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:14:09+00:00 2026-06-10T21:14:09+00:00

my mongodb rs configure resemble: node1:shard1 primary,shard2 primary node2:shard1 secondary,shard2 secondary node3:shard1 arbiter,shard2 artbite

  • 0

my mongodb rs configure resemble:

node1:shard1 primary,shard2 primary 
node2:shard1 secondary,shard2 secondary 
node3:shard1 arbiter,shard2 artbite

every time there are many writes and read,but yesterday I found the mode1 become secondary,contrast,node2 become primary,I’m very weird,so post this issue,hoping more opnions.
Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:14:11+00:00Added an answer on June 10, 2026 at 9:14 pm

    A primary stepping down to become a secondary is not unusual in a Replica Set, and will happen for one of three reasons.

    1. It is told to by the replSetStepDown command
    2. The primary cannot contact a majority of nodes
    3. It sees that a secondary is more eligible to be primary and has a higher priority.

    A secondary can also call for an election if it cannot contact a primary, or if the primary is too slow to respond. The election will force the primary to step down.

    You can read more about this process in the documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to configure Pyramid so that when MongoDB fails over to
In mongodb, is there a way to ask for the length of a subfield
MongoDB has its own ObjectId type that it uses as the default primary key.
MongoDB's shell extends SpiderMonkey. Is there a way to hook into some of SpiderMonkey's
I am currently having a hell of time trying to store sessions in MongoDb.
I am undergoing testing with 64-bit MongoDB. If I configure large size backups then
Using the ruby mongodb driver, is there a way I can create a connection
Since there's almost no online tutorials for Tire in Rails with mongoDB I just
MongoDB has two popular ORMs for Rails: MongoID and MongoMapper. Are there CouchDB ORM:s
MongoDB is to me a great database. However there are cases where I really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.