<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:26:06 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-51668] Report total CPU time spent by operations in serverStatus</title>
                <link>https://jira.mongodb.org/browse/SERVER-51668</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Report the globally-aggregated CPU time spent by user operations to serverStatus:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  resourceConsumption: {      cpuNanos: &amp;lt;int&amp;gt;    }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;  }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;The &quot;resourceConsumption&quot; section is not included by default, and will only be available if the &lt;tt&gt;aggregateOperationResourceConsumptionMetrics&lt;/tt&gt; setParameter is true.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1515783">SERVER-51668</key>
            <summary>Report total CPU time spent by operations in serverStatus</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13201">Fixed</resolution>
                                        <assignee username="louis.williams@mongodb.com">Louis Williams</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Oct 2020 17:50:44 +0000</created>
                <updated>Sun, 29 Oct 2023 22:01:51 +0000</updated>
                            <resolved>Mon, 9 Nov 2020 14:59:39 +0000</resolved>
                                                    <fixVersion>4.9.0-alpha0</fixVersion>
                                    <component>Diagnostics</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3481523" author="xgen-internal-githook" created="Mon, 9 Nov 2020 14:48:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Louis Williams&apos;, &apos;email&apos;: &apos;louis.williams@mongodb.com&apos;, &apos;username&apos;: &apos;louiswilliams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51668&quot; title=&quot;Report total CPU time spent by operations in serverStatus&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51668&quot;&gt;&lt;del&gt;SERVER-51668&lt;/del&gt;&lt;/a&gt; Report total CPU time spent by operations in serverStatus&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a09a1afbe18353ac5c865a643c97029e5cba4925&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a09a1afbe18353ac5c865a643c97029e5cba4925&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3477954" author="bruce.lucas@10gen.com" created="Thu, 5 Nov 2020 18:01:03 +0000"  >&lt;p&gt;OK, thanks.&lt;/p&gt;</comment>
                            <comment id="3477938" author="louis.williams" created="Thu, 5 Nov 2020 17:55:10 +0000"  >&lt;p&gt;The motivation for doing this at all was to collect the CPU time and &lt;em&gt;potentially&lt;/em&gt; backport so that we can compare against previous versions.&lt;/p&gt;

&lt;p&gt;After talking with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt;, I&apos;m not sure if there is even a use case for globally reporting all of these metrics in serverStatus.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bruce.lucas&quot; class=&quot;user-hover&quot; rel=&quot;bruce.lucas&quot;&gt;bruce.lucas&lt;/a&gt;, I&apos;m going to revise this ticket to only report CPU time when the setParameter is enabled. I will also disable reporting this metric when FTDC invokes serverStatus.&#160;&lt;/p&gt;</comment>
                            <comment id="3477722" author="bruce.lucas@10gen.com" created="Thu, 5 Nov 2020 16:17:05 +0000"  >&lt;p&gt;So my sense is that these are of limited diagnostic value, so would be best not to include in FTDC. From that perspective the options would be&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Don&apos;t include in serverStatus at all&lt;/li&gt;
	&lt;li&gt;Include in serverStatus but with that section disabled by default (using the existing mechanism for including/excluding serverStatus sections, independent of the aggregateOperationResourceConsumptionMetrics parameter)&lt;/li&gt;
	&lt;li&gt;Include in serverStatus with that section enabled by default, but disabled when FTDC invokes serverStatus (there&apos;s a simple mechanism in FTDC for that).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I don&apos;t have an opinion on which of those options is preferrable.&lt;/p&gt;</comment>
                            <comment id="3476455" author="louis.williams" created="Wed, 4 Nov 2020 20:47:10 +0000"  >&lt;blockquote&gt;&lt;p&gt;How would a globally aggregated cpuMillis differ from the CPU metrics we already collect - is it just that the latter includes things like eviction server threads and checkpoints not included in cpuMillis?  I presume cpuMillis does include eviction done by application threads, which I think can often be the bulk of eviction. Any other differences?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bruce.lucas&quot; class=&quot;user-hover&quot; rel=&quot;bruce.lucas&quot;&gt;bruce.lucas&lt;/a&gt;, the globally aggregated CPU time would only account for user operations and only a specific set of commands. I&apos;m not sure how useful this will be for debugging.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Since serverStatus already has a mechanism for enabling or disabling specific sections when you issue the serverStatus command, do we really want a separate setParameter for this?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The setParameter already exists to support global metrics aggregation. So we will only report this information in serverStatus if we were are collecting this information in the first place.&lt;/p&gt;

</comment>
                            <comment id="3449165" author="bruce.lucas@10gen.com" created="Fri, 16 Oct 2020 16:35:03 +0000"  >&lt;p&gt;How would a globally aggregated cpuMillis differ from the CPU metrics we already collect - is it just that the latter includes things like eviction server threads and checkpoints not included in cpuMillis?&#160; I presume cpuMillis does include eviction done by application threads, which I think can often be the bulk of eviction. Any other differences?&lt;/p&gt;

&lt;p&gt;Since serverStatus already has a mechanism for enabling or disabling specific sections when you issue the serverStatus command, do we really want a separate setParameter for this?&lt;/p&gt;

&lt;p&gt;FTDC includes everything that is in serverStatus by default, and has provision to enable or disable specific sections, so it is easy to add an entire section like this (or would be if this just used the normal serverStatus mechanism for including or excluding sections). Adding only specific metrics from a section would I require reworking, probably not worth it.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3449039" author="louis.williams" created="Fri, 16 Oct 2020 15:56:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bruce.lucas&quot; class=&quot;user-hover&quot; rel=&quot;bruce.lucas&quot;&gt;bruce.lucas&lt;/a&gt;, aside from cpuMillis, I don&apos;t think these would be that useful in FTDC. The metrics are derived from other, related metrics we already collect, but I don&apos;t think they would give us much more information that would aid in debugging anything.&lt;/p&gt;

&lt;p&gt;cpuMillis will aggregate all of the CPU time taken by all user operations, which could be useful for debugging some failures. How hard is this to add to FTDC?&lt;/p&gt;</comment>
                            <comment id="3448526" author="bruce.lucas@10gen.com" created="Fri, 16 Oct 2020 14:31:26 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=louis.williams&quot; class=&quot;user-hover&quot; rel=&quot;louis.williams&quot;&gt;louis.williams&lt;/a&gt;. Do you have an opinion on whether it would be useful to include these in ftdc? My general sense is that since they are global they replicate metrics already collected elsewhere, mostly by WT, but I&apos;m not sure of that. Possible exceptions might be idxEntriesRead and keysSorted. I&apos;ll also query other members of my team.&lt;/p&gt;</comment>
                            <comment id="3447217" author="bruce.lucas@10gen.com" created="Thu, 15 Oct 2020 19:33:32 +0000"  >&lt;p&gt;I can&apos;t figure out from that description what the proposal for serverStatus is. Can we enumerate (at some point) the specific fields we&apos;re proposing to add to serverStatus? Also whether these are included by default or enabled by a parameter, and whether we will include them in ftdc.&lt;/p&gt;</comment>
                            <comment id="3447200" author="milkie" created="Thu, 15 Oct 2020 19:25:08 +0000"  >&lt;p&gt;All of the metrics in the project will be added, but aggregated globally rather than by-database.&lt;/p&gt;</comment>
                            <comment id="3447037" author="bruce.lucas@10gen.com" created="Thu, 15 Oct 2020 18:15:48 +0000"  >&lt;p&gt;Can we post on this ticket a mini-design i.e. what metrics we&apos;re planning on adding?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.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>Thu, 15 Oct 2020 18:15:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 13 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>The serverStatus command now returns a &amp;quot;resourceConsumption&amp;quot; section. This section is not included by default; it may be included by passing  {resourceConsumption: 1} to serverStatus. This section only populates itself if the aggregateOperationResourceConsumption setParameter is true.&lt;br/&gt;
&lt;br/&gt;
This new section only contains a single field, cpuNanos. This reports the cumulative CPU time spent by all user operations and by a specific set of commands. Please refer to the design for the project for which commands actually accumulate metrics: &lt;a href=&quot;https://docs.google.com/document/d/1a8AnTlswltXxwc3rDYfd7uUeaRitjQWY7wPdn_MoxIA/edit?ts=5f57dcbb#&quot;&gt;https://docs.google.com/document/d/1a8AnTlswltXxwc3rDYfd7uUeaRitjQWY7wPdn_MoxIA/edit?ts=5f57dcbb#&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
We believe that the diagnostic usefulness of this new section to be minimal and confusing, so I am not requesting a DOCS ticket at this time.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1876</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 13 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>50.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hycx4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxz787:</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="4297">Execution Team 2020-11-16</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></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|hycjdr:</customfieldvalue>

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