Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12763

Document the replSetStepUp admin command

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server
    • None

    Description

      Description

      In a rs, I was trying to force the secondary I was connected to, to become primary. The process listed at https://docs.mongodb.com/manual/tutorial/force-member-to-be-primary/#force-a-member-to-be-primary-using-database-commands seem unnecessarily laborious when one can simply run one command:

       

      rs:SECONDARY> db.adminCommand({replSetStepUp: 86400, force: 1})
      { "ok" : 1, ... }
      rs:PRIMARY> 
      

       

       

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 36 weeks, 6 days ago