<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:51 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-11086] Election handoff to new primary, during stepdown</title>
                <link>https://jira.mongodb.org/browse/SERVER-11086</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When a step-down command is issued a fast election mode could be implemented to allow seamless transition to a new primary without having to wait for the time to do the election. The goal is to reduce the time without a primary.&lt;/p&gt;</description>
                <environment></environment>
        <key id="93307">SERVER-11086</key>
            <summary>Election handoff to new primary, during stepdown</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="alyson.cabral@mongodb.com">Alyson Cabral</assignee>
                                    <reporter username="charlie.page@10gen.com">Charlie Page</reporter>
                        <labels>
                            <label>elections</label>
                    </labels>
                <created>Tue, 8 Oct 2013 20:23:36 +0000</created>
                <updated>Thu, 1 Nov 2018 22:47:37 +0000</updated>
                            <resolved>Thu, 1 Nov 2018 16:09:48 +0000</resolved>
                                                    <fixVersion>3.6.7</fixVersion>
                    <fixVersion>4.0.2</fixVersion>
                                    <component>Replication</component>
                                        <votes>20</votes>
                                    <watches>41</watches>
                                                                                                                <comments>
                            <comment id="2049082" author="alyson.cabral" created="Thu, 1 Nov 2018 16:05:35 +0000"  >&lt;p&gt;Often the longest part of an election is the time spent determining the primary is down. To avoid spurious elections we allow users to specify the time window to wait, confirming a node is down and not responsive, before calling an election. Otherwise, a simple network blip could trigger an election even when there is a perfectly healthy primary. &lt;/p&gt;

&lt;p&gt;When explicitly calling stepdown on the primary, we have built in an optimization that bypasses the time waiting to confirm a node was down and immediately tells the appropriate secondary to call an election. This project, Election Handoff, will minimize write downtime when performing planned maintenance of a cluster. During scheduled maintenance windows, like upgrading a cluster or performing a rolling index build, it is often necessary to step down the primary. We&apos;ve seen a 10x improvement to stepdown times using the default election configuration. &lt;/p&gt;

&lt;p&gt;The Election Handoff behavior was added in 3.6.7, 4.0.2 and even further optimized in 3.6.9, 4.0.3. &lt;/p&gt;</comment>
                            <comment id="1789663" author="oleg@evergage.com" created="Tue, 30 Jan 2018 20:10:38 +0000"  >&lt;p&gt;Dmitry, we ended up writing JavaScript code for &quot;planned stepdowns,&quot; that runs in the Mongo Shell, which: 1) lowers the election timeout from 10 seconds to 2 seconds, 2) performs the step-down, 3) reaches to new primary and raises election timeout back to 10 seconds.&lt;/p&gt;

&lt;p&gt;I still would love for Mongo to support a fast maintenance step-down that&apos;s in milliseconds and not seconds.&lt;/p&gt;</comment>
                            <comment id="1767378" author="dmitry@smallgiantgames.com" created="Mon, 8 Jan 2018 08:35:39 +0000"  >&lt;p&gt;Seeing this issue stagnating for more than 4 years now makes me wonder - how many people using MongoDB for mission-critical purposes are actually doing maintenance? We do, and each maintenance becomes a real problem, as it means very noticeable disruption in service for our users. With default timeout of 10 seconds and our load, the real times without primary are ~13 seconds from application POV.&lt;/p&gt;

&lt;p&gt;What makes this especially wounding is that, according to the logs, there are 10 seconds during which all members of replica set are in SECONDARY state and know all others are in SECONDARY state. In effect the whole replica set knows there will be no primary until elections and yet no-one dares to start the election until timeout.&lt;/p&gt;

&lt;p&gt;I understand that having special re-election logic in step-down is tricky. But this issue can fixed with smaller (or none at all) re-election timeout for the situation when all instances are SECONDARY. Maybe this solution is easier and less risky?&lt;/p&gt;</comment>
                            <comment id="1129331" author="hoyt ren" created="Fri, 8 Jan 2016 01:51:31 +0000"  >&lt;p&gt;Yes, when you do a maintenance, you will want to minimize the interruption, we calculate the duration in MS but not S, so this feature is needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="627956">DOCS-12181</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="245486">SERVER-22050</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="263682">SERVER-22502</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="487474">SERVER-32906</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="82461">SERVER-10225</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="203830">SERVER-18453</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 25 Sep 2015 15:21:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 14 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SPEC-523'>SPEC-523</a></s>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 14 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alyson.cabral@mongodb.com</customfieldvalue>
            <customfieldvalue>charlie.page@10gen.com</customfieldvalue>
            <customfieldvalue>dmitry@smallgiantgames.com</customfieldvalue>
            <customfieldvalue>Hoyt Ren</customfieldvalue>
            <customfieldvalue>oleg@evergage.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmcvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hremo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3987</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="908">Repl 12 (04/01/16)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hric3r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>