Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76356

Is it possible to lower the amount of time a node running for election wait for responses?

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Replication
    • Repl 2023-05-01, Repl 2023-05-15

    Description

      In a mongosync BF in a v5.0 kill sharded suite I'm investigating, the progress endpoint times out after 30 seconds. This happens because the primary is killed, and a secondary fails to start up (taking a full 30 seconds waiting for the result of an election). The old primary had been killed, so it doesn't get the vote from that one, but from the other secondary it gets no response after 30 seconds (but it waits!). You can see this behavior here.

      Since both the testing fixture waiting on the progress endpoint times out after 30 seconds, and the secondary up for election waits for a response for 30 seconds, this causes the problem. Is there a way for me to configure a parameter so that the election will fail after less than 30 seconds have elapsed?

      Attachments

        Activity

          People

            vishnu.kaushik@mongodb.com Vishnu Kaushik
            rohan.sharan@mongodb.com Rohan Sharan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: