<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:18:46 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-28670] Add sharding metadata refresh metrics section to serverStatus</title>
                <link>https://jira.mongodb.org/browse/SERVER-28670</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Sharding metadata refreshes have occasionally been demonstrated to cause throughput stalls. Currently, there is no visibility into when these are happening other than looking at the server log and trying to match them with FTDC data.&lt;/p&gt;

&lt;p&gt;In order to improve diagnosability we should introduce metadata refresh metrics to serverStatus so they can also be recorded in FTDC. All the proposed metrics should be under a section called &lt;tt&gt;shardingStatistics&lt;/tt&gt; and will behave like this:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;shardingStatistics&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;countStaleConfigErrors - Counts how many times threads hit stale config exception (which is what triggers metadata refreshes&lt;/li&gt;
		&lt;li&gt;countDonorMoveChunkStarted - Cumulative, always-increasing counter of how many chunks did this node start donating (whether they succeeded or not)&lt;/li&gt;
		&lt;li&gt;totalDonorMoveChunkTimeMillis - Cumulative, always-increasing counter of how much time the entire move chunk operation took (excluding range deletion)&lt;/li&gt;
		&lt;li&gt;totalDonorChunkCloneTimeMillis - Cumulative, always-increasing counter of how much time the clone phase took on the donor node, before it was appropriate to enter the critical section&lt;/li&gt;
		&lt;li&gt;totalCriticalSectionCommitTimeMillis - Cumulative, always-increasing counter of how much time the critical section&apos;s commit phase took (this is the period of time when all operations on the collection are blocked, not just the reads (from 3.6 onward))&lt;/li&gt;
		&lt;li&gt;totalCriticalSectionTimeMillis - Cumulative, always-increasing counter of how much time the entire critical section took. It includes the time the recipient took to fetch the latest modifications from the donor and persist them plus the critical section commit time. The value of &lt;tt&gt;totalCriticalSectionTimeMillis - totalCriticalSectionCommitTimeMillis&lt;/tt&gt; gives the duration of the catch-up phase of the critical section (where the last mods are transferred from the donor to the recipient).&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;b&gt;shardingStatistics.catalogCache&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;numDatabaseEntries - Tracks how many database entries in total are in currently the catalog cache&lt;/li&gt;
		&lt;li&gt;numCollectionEntries - Tracks how many collection entries (in total across all databases) are currently in the catalog cache&lt;/li&gt;
		&lt;li&gt;countStaleConfigErrors - Counts how many times threads hit stale config exception (which is what triggers metadata refreshes)&lt;/li&gt;
		&lt;li&gt;totalRefreshWaitTimeMicros - Cumulative, always-increasing counter of how much time threads waiting for refresh combined&lt;/li&gt;
		&lt;li&gt;numActiveIncrementalRefreshes - Tracks how many incremental refreshes are waiting to complete currently&lt;/li&gt;
		&lt;li&gt;countIncrementalRefreshesStarted - Cumulative, always-increasing counter of how many incremental refreshes have been kicked off&lt;/li&gt;
		&lt;li&gt;numActiveFullRefreshes - Tracks how many full refreshes are waiting to complete currently&lt;/li&gt;
		&lt;li&gt;countFullRefreshesStarted - Cumulative, always-increasing counter of how many full refreshes have been kicked off&lt;/li&gt;
		&lt;li&gt;countFailedRefreshes - Cumulative, always-increasing counter of how many full or incremental refreshes failed for whatever reason&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="371934">SERVER-28670</key>
            <summary>Add sharding metadata refresh metrics section to serverStatus</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="kaloian.manassiev@mongodb.com">Kaloian Manassiev</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                            <label>SWDI</label>
                    </labels>
                <created>Fri, 7 Apr 2017 14:35:52 +0000</created>
                <updated>Wed, 6 Jun 2018 16:38:23 +0000</updated>
                            <resolved>Wed, 24 Jan 2018 18:49:18 +0000</resolved>
                                    <version>3.5.5</version>
                                    <fixVersion>3.4.15</fixVersion>
                    <fixVersion>3.6.4</fixVersion>
                    <fixVersion>3.7.2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>1</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="1848623" author="xgen-internal-githook" created="Thu, 29 Mar 2018 00:26:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28670&quot; title=&quot;Add sharding metadata refresh metrics section to serverStatus&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28670&quot;&gt;&lt;del&gt;SERVER-28670&lt;/del&gt;&lt;/a&gt; Add sharding CatalogCache and donor metrics to serverStatus&lt;/p&gt;

&lt;p&gt;Includes metrics for refresh, clone and migration critical section&lt;br/&gt;
duration.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit c4142a8e0b486f3642b700c9efb208f909e3ff1d)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8393b19ba5d0e9d79588aae42225b5af22acaccf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8393b19ba5d0e9d79588aae42225b5af22acaccf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1837260" author="xgen-internal-githook" created="Fri, 16 Mar 2018 21:13:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28670&quot; title=&quot;Add sharding metadata refresh metrics section to serverStatus&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28670&quot;&gt;&lt;del&gt;SERVER-28670&lt;/del&gt;&lt;/a&gt; Add sharding CatalogCache and donor metrics to serverStatus&lt;/p&gt;

&lt;p&gt;Includes metrics for refresh, clone and migration critical section&lt;br/&gt;
duration.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit bc433b50e0205dfd0a8bfb6906393d841fd8193a)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c4142a8e0b486f3642b700c9efb208f909e3ff1d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c4142a8e0b486f3642b700c9efb208f909e3ff1d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1783799" author="xgen-internal-githook" created="Wed, 24 Jan 2018 18:46:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28670&quot; title=&quot;Add sharding metadata refresh metrics section to serverStatus&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28670&quot;&gt;&lt;del&gt;SERVER-28670&lt;/del&gt;&lt;/a&gt; Add sharding CatalogCache and donor metrics to serverStatus&lt;/p&gt;

&lt;p&gt;Includes metrics for refresh, clone and migration critical section&lt;br/&gt;
duration.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bc433b50e0205dfd0a8bfb6906393d841fd8193a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bc433b50e0205dfd0a8bfb6906393d841fd8193a&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="492319">DOCS-11282</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="99066">SERVER-11784</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="396888">SERVER-29788</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15141"><![CDATA[v3.6]]></customfieldvalue>
    <customfieldvalue key="14340"><![CDATA[v3.4]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000ZsP1uIAF, 500A000000Z3eQ5IAJ, 500A000000ZOEmpIAH, 500A000000UaQVYIA3, 500A000000YTslUIAT, 500A000000YTkmNIAT, 500A000000XNLhlIAH, 500A000000YQAWhIAP, 500A000000Y2vBCIAZ, 500A000000Wkh1oIAB, 500A000000VppYEIAZ, 500A000000Vo9cfIAB, 500A000000VEXVhIAP]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 22 Nov 2017 20:23:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 46 weeks 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-629</customfieldvalue>
                        </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, 46 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht5g53:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr902f:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2089">Sharding 2018-01-29</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|hs4bq7:</customfieldvalue>

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