<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:53 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-2680] Better balancer interface</title>
                <link>https://jira.mongodb.org/browse/SERVER-2680</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;User interaction with the balancer could be improved.&lt;/p&gt;

&lt;p&gt;Currently, to disable the balancer, users have to $set &lt;/p&gt;
{stopped: true}
&lt;p&gt; in the balancer document. This is error-prone (it&apos;d be easy to misspell &quot;stopped&apos;, etc.) and there&apos;s no feedback.&lt;/p&gt;

&lt;p&gt;I propose a couple of commands for changing the balancer&apos;s state and getting the balancer&apos;s status.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;db.runCommand(&lt;/p&gt;
{balancerstatus: 1}
&lt;p&gt;)&lt;br/&gt;
Returns:&lt;/p&gt;

&lt;p&gt;{ state: 1,&lt;br/&gt;
  msg: &quot;Balancing round&quot;&lt;br/&gt;
  ops: [&lt;br/&gt;
    describe what&apos;s scheduled for this round / what&apos;s currently happening&lt;br/&gt;
  ]&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;db.runCommand(&lt;/p&gt;
{disablebalancer: 1}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;This prints a message indicating current balancer state and blocks if balancer is in the middle of something.&lt;/p&gt;

&lt;p&gt;db.runCommand(&lt;/p&gt;
{enablebalancer: 1}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Re-enables balancing.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14996">SERVER-2680</key>
            <summary>Better balancer interface</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="kbanker">Kyle Banker</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Mar 2011 17:35:23 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:29 +0000</updated>
                            <resolved>Fri, 29 Apr 2011 21:38:04 +0000</resolved>
                                                    <fixVersion>1.9.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="30381" author="auto" created="Fri, 29 Apr 2011 21:38:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: shell helpers for turning on/off balancer &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2680&quot; title=&quot;Better balancer interface&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2680&quot;&gt;&lt;del&gt;SERVER-2680&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c574959c57f3f66dcdd41a244f08b687ca03480b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c574959c57f3f66dcdd41a244f08b687ca03480b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25261" author="kbanker" created="Fri, 4 Mar 2011 18:44:44 +0000"  >&lt;p&gt;I think that makes sense.&lt;/p&gt;

&lt;p&gt;maybe use &quot;cluster&quot; as the prefix instead:&lt;/p&gt;

&lt;p&gt;cluster.stopBalancer();&lt;/p&gt;

&lt;p&gt;Main thing to make balancer operations more determinate and predictable from the user&apos;s perspective.&lt;/p&gt;</comment>
                            <comment id="25252" author="eliot" created="Fri, 4 Mar 2011 17:46:34 +0000"  >&lt;p&gt;What do you think of a similar thing to the rs helper&lt;/p&gt;

&lt;p&gt;so&lt;/p&gt;

&lt;p&gt;sharding.stopBalancer()&lt;br/&gt;
sharding.startBalancer()&lt;/p&gt;

&lt;p&gt;sharding.addShard( &quot;...&quot; )&lt;br/&gt;
sharding.enableSharding( &quot;test&quot; )&lt;/p&gt;

&lt;p&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 4 Mar 2011 17:46:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 42 weeks, 5 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>
                            12 years, 42 weeks, 5 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>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp4mn:</customfieldvalue>

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

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

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