<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:31:38 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-13408] &quot;priority: 0&quot; nodes still participate in node election</title>
                <link>https://jira.mongodb.org/browse/SERVER-13408</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a 2 node replica set. 1 node is supposed to always be primary and the other is for backup purposes.&lt;/p&gt;

&lt;p&gt;My rs.conf() looks like that:&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : &quot;shard0001&quot;,&lt;br/&gt;
        &quot;version&quot; : 6,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;host&quot; : &quot;one:27017&quot;,
                        &quot;priority&quot; : 2
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 3,
                        &quot;host&quot; : &quot;backup:20002&quot;,
                        &quot;priority&quot; : 0,
                        &quot;slaveDelay&quot; : 10800,
                        &quot;hidden&quot; : true
                }
&lt;p&gt;        ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;The problem is that when backup goes down, &quot;one&quot; starts thinking that it&apos;s secondary, because it&apos;s afraid that backup will start believing that . Such fencing mechanism should not be valid when other node is hidden and priority 0. Or your docs are wrong by saying that priority 0 node cannot ever become a primary (&lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/configure-secondary-only-replica-set-member/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/tutorial/configure-secondary-only-replica-set-member/&lt;/a&gt;).&lt;/p&gt;</description>
                <environment></environment>
        <key id="128406">SERVER-13408</key>
            <summary>&quot;priority: 0&quot; nodes still participate in node election</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="-1">Unassigned</assignee>
                                    <reporter username="ernetas">Ernestas Luko&#154;evi?ius</reporter>
                        <labels>
                            <label>replicaset</label>
                            <label>replication</label>
                            <label>voting</label>
                    </labels>
                <created>Sun, 30 Mar 2014 19:47:44 +0000</created>
                <updated>Sat, 9 Jul 2016 21:09:10 +0000</updated>
                            <resolved>Mon, 31 Mar 2014 11:06:38 +0000</resolved>
                                    <version>2.4.9</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="529524" author="spencer" created="Mon, 31 Mar 2014 16:52:04 +0000"  >&lt;p&gt;rs.conf() just shows the contents of local.system.replset.  You should not modify local.system.replset directly, however, you should use the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/replSetReconfig/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;replSetReconfig&lt;/a&gt; command.&lt;/p&gt;</comment>
                            <comment id="529133" author="ernetas" created="Mon, 31 Mar 2014 11:25:09 +0000"  >&lt;p&gt;Nevermind, found local.system.replset.members&lt;span class=&quot;error&quot;&gt;&amp;#91;n&amp;#93;&lt;/span&gt;.votes. Although, I&apos;d prefer it having in rs.conf, there&apos;s not much wrong with that too.&lt;/p&gt;</comment>
                            <comment id="529127" author="ernetas" created="Mon, 31 Mar 2014 11:17:26 +0000"  >&lt;p&gt;A nice feature to have would be a new flag for nodes (like &quot;primary&quot; or &quot;hidden&quot;, but called &quot;votingrights&quot; or something like that), which would allow eliminate some nodes from voting. This is especially nice when 50% or more of your replica set is not in production, but, say, backup data center. Say, your network goes down between the 2 DCs. What would happen? Would the primary DC fence itself and some node in secondary DC start acting as primary? Not having such a flag is a lack of flexibility, even if I can setup arbiters. Plus, it might eliminate the need of arbiters.&lt;/p&gt;</comment>
                            <comment id="529119" author="ernetas" created="Mon, 31 Mar 2014 11:12:08 +0000"  >&lt;p&gt;Well... I didn&apos;t expect a different answer at first... That&apos;s why I marked it as improvement, not as a bug.&lt;/p&gt;

&lt;p&gt;Having an additional arbiter is unnecessary overhead in this case, as I have only 1 node that can ever become a primary and there&apos;s no point in evaluating connectivity or doing any fencing.&lt;/p&gt;</comment>
                            <comment id="529112" author="dan@10gen.com" created="Mon, 31 Mar 2014 11:06:31 +0000"  >&lt;p&gt;All members participate in elections.  You need a third member of your replica set or an arbiter to keep your one as primary when your backup node goes down.&lt;/p&gt;

&lt;p&gt;See: &lt;a href=&quot;http://docs.mongodb.org/manual/core/replica-set-members/#arbiter&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/core/replica-set-members/#arbiter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and:&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/tutorial/add-replica-set-arbiter/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/tutorial/add-replica-set-arbiter/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 31 Mar 2014 11:06:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 46 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 46 weeks, 2 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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>ernetas</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlxtb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>109947</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_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|hsh0xz:</customfieldvalue>

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