<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:58:17 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-63642] Add serverStatus metrics to measure multi-planning performance</title>
                <link>https://jira.mongodb.org/browse/SERVER-63642</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62150&quot; title=&quot;SBE Multiplanning can be slow when suboptimal plan runs first&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62150&quot;&gt;SERVER-62150&lt;/a&gt; describes a scenario where SBE multi-planning can be slow relative to the classic engine&apos;s multi-planning implementation. We implemented&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62981&quot; title=&quot;Make SBE multi-planner&amp;#39;s trial period termination condition independent of collection size&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62981&quot;&gt;&lt;del&gt;SERVER-62981&lt;/del&gt;&lt;/a&gt; in order to mitigate this issue, and also have proposed&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63641&quot; title=&quot;Improve SBE multi-planning by choosing which plan to work next based on a priority metric&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63641&quot;&gt;&lt;del&gt;SERVER-63641&lt;/del&gt;&lt;/a&gt; as an additional improvement. In order to make sure that customers are experiencing good SBE multi-planner performance, we should add metrics to serverStatus. Before implementing this ticket, we need to agree on exactly what metrics to capture and how they will be exposed in serverStatus. The current proposal is to collect histograms of both the number of storage reads performed during SBE multi-planning and the overall wall clock time spent multi-planning.&lt;/p&gt;

&lt;p&gt;We may wish to collect similar information for the classic multi-planner as well as the SBE multi-planner. There are known scenarios in which the classic multi-planner can take a long time to complete. In particular, see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-31078&quot; title=&quot;Query planning is very slow during multiplanning when result set is empty&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-31078&quot;&gt;SERVER-31078&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The intended audience of these metrics is query engineering and query product management. We want to be able to analyze the performance of multi-planning across the Atlas fleet in order to inform our decision making about future improvements to the server. It&apos;s probable that these metrics would also be useful in support scenarios (e.g. seeing if a customer is getting a lot of queries which take a long time to multi-plan), but this is not the primary use case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1983353">SERVER-63642</key>
            <summary>Add serverStatus metrics to measure multi-planning performance</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="13201">Fixed</resolution>
                                        <assignee username="jess.balint@mongodb.com">Jess Balint</assignee>
                                    <reporter username="david.storch@mongodb.com">David Storch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Feb 2022 23:08:52 +0000</created>
                <updated>Thu, 4 Jan 2024 18:00:05 +0000</updated>
                            <resolved>Tue, 12 Apr 2022 20:11:59 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                    <fixVersion>5.0.9</fixVersion>
                    <fixVersion>4.4.15</fixVersion>
                                    <component>Query Execution</component>
                    <component>Query Planning</component>
                                        <votes>0</votes>
                                    <watches>20</watches>
                                                                                                                <comments>
                            <comment id="4508478" author="xgen-internal-githook" created="Wed, 27 Apr 2022 00:02:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jess Balint&apos;, &apos;email&apos;: &apos;jbalint@gmail.com&apos;, &apos;username&apos;: &apos;jbalint&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63642&quot; title=&quot;Add serverStatus metrics to measure multi-planning performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63642&quot;&gt;&lt;del&gt;SERVER-63642&lt;/del&gt;&lt;/a&gt; Add serverStatus histogram metrics to measure multi-planning performance&lt;/p&gt;

&lt;p&gt;(cherry picked from commit ae996e0249f4f20b4def3a9f81dfc61c81eb4c83)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7214e3aa614dbab8e4dcc94934879c55a50fde4c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7214e3aa614dbab8e4dcc94934879c55a50fde4c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4502395" author="xgen-internal-githook" created="Mon, 25 Apr 2022 03:15:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jess Balint&apos;, &apos;email&apos;: &apos;jbalint@gmail.com&apos;, &apos;username&apos;: &apos;jbalint&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63642&quot; title=&quot;Add serverStatus metrics to measure multi-planning performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63642&quot;&gt;&lt;del&gt;SERVER-63642&lt;/del&gt;&lt;/a&gt; Add serverStatus histogram metrics to measure multi-planning performance&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 43434627e89822b7e19e3a9d3aeb341be331aae6)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ae996e0249f4f20b4def3a9f81dfc61c81eb4c83&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ae996e0249f4f20b4def3a9f81dfc61c81eb4c83&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4469435" author="xgen-internal-githook" created="Sat, 9 Apr 2022 00:23:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jess Balint&apos;, &apos;email&apos;: &apos;jbalint@gmail.com&apos;, &apos;username&apos;: &apos;jbalint&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63642&quot; title=&quot;Add serverStatus metrics to measure multi-planning performance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63642&quot;&gt;&lt;del&gt;SERVER-63642&lt;/del&gt;&lt;/a&gt; Add serverStatus histogram metrics to measure multi-planning performance&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/43434627e89822b7e19e3a9d3aeb341be331aae6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/43434627e89822b7e19e3a9d3aeb341be331aae6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4356715" author="bruce.lucas@10gen.com" created="Tue, 15 Feb 2022 17:45:17 +0000"  >&lt;p&gt;We should also consider whether these should go in FTDC, which will be the case if they are included in serverStatus by default. Even though it&apos;s not the primary use case, for support it would be helpful if they did. But in many cases histograms have a lot of content, so maybe we could think about a subset that would be especially useful for inclusion in FTDC.&lt;/p&gt;

&lt;p&gt;Regarding histograms, I don&apos;t know if it&apos;s the case here, but we&apos;ve often found histograms to have limited diagnostic value relative to the FTDC space required, and averages are just as useful without overloading FTDC - for example, we don&apos;t include query latency histograms in FTDC, but rather include cumulative total query time and cumulative query count, from which t2 can compute average latency over any time period. I wonder if such an approach could be useful here.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2017345">SERVER-65271</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="2023635">DOCS-15235</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2033655">SERVER-65984</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1983346">SERVER-63641</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1953500">SERVER-62150</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="427131">SERVER-31078</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1971534">SERVER-63015</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1970971">SERVER-62981</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1983346">SERVER-63641</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 15 Feb 2022 17:45:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 41 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-65271'>SERVER-65271</a></s>]]></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>Addition of new multiplanner histograms and agg metrics in serverStatus and agg-only in FTDC</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_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>kateryna.kamenieva@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 41 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jess.balint@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0k6b3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i038uv:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5281">QE 2022-04-04</customfieldvalue>
    <customfieldvalue id="5285">QE 2022-02-21</customfieldvalue>
    <customfieldvalue id="5287">QE 2022-03-07</customfieldvalue>
    <customfieldvalue id="5289">QE 2022-03-21</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="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="20960"><![CDATA[DBX: DevTools (Compass, Shell, VS Code Ext)]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></customfieldvalue>
    <customfieldvalue key="20958"><![CDATA[Atlas Data Federation and Data Lake]]></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|i0jsgf:</customfieldvalue>

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