<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:24:08 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-50968] Uneven distribution of data in sharded cluster</title>
                <link>https://jira.mongodb.org/browse/SERVER-50968</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB Version: 4.2.1&lt;/p&gt;

&lt;p&gt;We have a sharded collection where the shard key is&lt;/p&gt;

{&apos;_id&apos;: &apos;hashed&apos;}

&lt;p&gt;and since it has random bytes it should ideally not lead to hot-spotting.&lt;/p&gt;

&lt;p&gt;The default chunk size has not been changed (default 64MB for the version).&lt;/p&gt;

&lt;p&gt;We are seeing that the chunks are not evenly distributed among the shards and the majority of data is residing in one shard.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Shard shard7 at shard7/mongo-7:27107,mongo-8:27107,mongo-9:27107&lt;br/&gt;
 data : 12.78GiB docs : 3085345 chunks : 408&lt;br/&gt;
 estimated data per chunk : 32.08MiB&lt;br/&gt;
 estimated docs per chunk : 7562&lt;/p&gt;

&lt;p&gt;Shard shard1 at shard1/mongo-1:27101,mongo-2:27101,mongo-3:27101&lt;br/&gt;
 data : 12.87GiB docs : 3100445 chunks : 408&lt;br/&gt;
 estimated data per chunk : 32.3MiB&lt;br/&gt;
 estimated docs per chunk : 7599&lt;/p&gt;

&lt;p&gt;Shard shard6 at shard6/mongo-6:27106,mongo-7:27106,mongo-8:27106&lt;br/&gt;
 data : 12.78GiB docs : 3085358 chunks : 408&lt;br/&gt;
 estimated data per chunk : 32.09MiB&lt;br/&gt;
 estimated docs per chunk : 7562&lt;/p&gt;

&lt;p&gt;Shard shard5 at shard5/mongo-5:27105,mongo-6:27105,mongo-7:27105&lt;br/&gt;
 data : 12.75GiB docs : 3077756 chunks : 407&lt;br/&gt;
 estimated data per chunk : 32.09MiB&lt;br/&gt;
 estimated docs per chunk : 7562&lt;/p&gt;

&lt;p&gt;Shard shard9 at shard9/mongo-1:27109,mongo-2:27109,mongo-9:27109&lt;br/&gt;
 data : 12.75GiB docs : 3077789 chunks : 408&lt;br/&gt;
 estimated data per chunk : 32MiB&lt;br/&gt;
 estimated docs per chunk : 7543&lt;/p&gt;

&lt;p&gt;Shard shard8 at shard8/mongo-1:27108,mongo-8:27108,mongo-9:27108&lt;br/&gt;
 data : 12.79GiB docs : 3085283 chunks : 407&lt;br/&gt;
 estimated data per chunk : 32.18MiB&lt;br/&gt;
 estimated docs per chunk : 7580&lt;/p&gt;

&lt;p&gt;Shard shard2 at shard2/mongo-2:27102,mongo-3:27102,mongo-4:27102&lt;br/&gt;
 data : 104.98GiB docs : 25320636 chunks : 408&lt;br/&gt;
 estimated data per chunk : 263.48MiB&lt;br/&gt;
 estimated docs per chunk : 62060&lt;/p&gt;

&lt;p&gt;Shard shard3 at shard3/mongo-3:27103,mongo-4:27103,mongo-5:27103&lt;br/&gt;
 data : 12.76GiB docs : 3085332 chunks : 408&lt;br/&gt;
 estimated data per chunk : 32.04MiB&lt;br/&gt;
 estimated docs per chunk : 7562&lt;/p&gt;

&lt;p&gt;Shard shard4 at shard4/mongo-4:27104,mongo-5:27104,mongo-6:27104&lt;br/&gt;
 data : 12.75GiB docs : 3077839 chunks : 407&lt;br/&gt;
 estimated data per chunk : 32.09MiB&lt;br/&gt;
 estimated docs per chunk : 7562&lt;/p&gt;

&lt;p&gt;Totals&lt;br/&gt;
 data : 207.25GiB docs : 49995783 chunks : 3669&lt;br/&gt;
 Shard shard7 contains 6.16% data, 6.17% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard1 contains 6.21% data, 6.2% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard6 contains 6.16% data, 6.17% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard5 contains 6.15% data, 6.15% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard9 contains 6.15% data, 6.15% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard8 contains 6.17% data, 6.17% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard2 contains 50.65% data, 50.64% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard3 contains 6.16% data, 6.17% docs in cluster, avg obj size on shard : 4KiB&lt;br/&gt;
 Shard shard4 contains 6.15% data, 6.15% docs in cluster, avg obj size on shard : 4KiB&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The result from sh.status(true) can be found &lt;a href=&quot;https://drive.google.com/file/d/1wc9yZAfAajqoF0I8yiLg0bvfpROwYmkP/view?usp=sharing&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. None of the chunks are marked as Jumbo.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1476271">SERVER-50968</key>
            <summary>Uneven distribution of data in sharded cluster</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="backlog-server-triage">Backlog - Triage Team</assignee>
                                    <reporter username="sankush04@gmail.com">Ankush Sinha</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Sep 2020 09:39:57 +0000</created>
                <updated>Tue, 6 Dec 2022 02:09:03 +0000</updated>
                            <resolved>Thu, 24 Sep 2020 09:57:00 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3409066" author="dmitry.agranat" created="Thu, 24 Sep 2020 09:56:49 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sankush04%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;sankush04@gmail.com&quot;&gt;sankush04@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;If you need further assistance with shard data distribution, I encourage you to ask our community by posting on the &lt;a href=&quot;https://community.mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forums&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Dima&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25137"><![CDATA[Server Triage]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Sep 2020 07:32:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 19 weeks, 6 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 19 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>sankush04@gmail.com</customfieldvalue>
            <customfieldvalue>backlog-server-triage</customfieldvalue>
            <customfieldvalue>dmitry.agranat@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy66t3:</customfieldvalue>

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

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

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