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

Document the replSetStepUp admin command

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual, Server
    • Labels:
      None

      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.)

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

              Created:
              Updated:
              Resolved:
              4 years, 48 weeks, 1 day ago