<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:16:38 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-8132] slowness in mongos when dealing with replset due to getServerAddress() calls</title>
                <link>https://jira.mongodb.org/browse/SERVER-8132</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When doing high performance benchmark with a 2 shard cluster, throughput was 2.5x higher when using master/slave rather than replset.&lt;br/&gt;
This is obviously a huge performance degradation.&lt;br/&gt;
From profiling it seems due to the many calls to DBClientReplicaSet.getServerAddress() which take a lock.&lt;br/&gt;
By applying the tiny provided patch that caches the value, the issue goes away.&lt;/p&gt;</description>
                <environment></environment>
        <key id="61530">SERVER-8132</key>
            <summary>slowness in mongos when dealing with replset due to getServerAddress() calls</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="dan@mongodb.com">Daniel Pasette</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Jan 2013 05:52:53 +0000</created>
                <updated>Mon, 11 Jul 2016 17:56:46 +0000</updated>
                            <resolved>Tue, 15 Jan 2013 06:07:26 +0000</resolved>
                                    <version>2.2.2</version>
                                    <fixVersion>2.2.3</fixVersion>
                    <fixVersion>2.4.0-rc0</fixVersion>
                                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="247063" author="auto" created="Wed, 23 Jan 2013 00:01:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-22T23:31:46Z&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8132&quot; title=&quot;slowness in mongos when dealing with replset due to getServerAddress() calls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8132&quot;&gt;&lt;del&gt;SERVER-8132&lt;/del&gt;&lt;/a&gt;: removed unordered_* and re-ordered imports in hostandport.h&lt;br/&gt;
to enable backport to 2.2.&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0adb9623539b7cf8bc9bb32bb61b9b83db9c0fda&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0adb9623539b7cf8bc9bb32bb61b9b83db9c0fda&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247059" author="auto" created="Wed, 23 Jan 2013 00:01:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-15T06:06:58Z&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8132&quot; title=&quot;slowness in mongos when dealing with replset due to getServerAddress() calls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8132&quot;&gt;&lt;del&gt;SERVER-8132&lt;/del&gt;&lt;/a&gt;: fix caching of writeback init&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/31150cee4cf5aae5fa54ab8d34a8f8452b11b0f1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/31150cee4cf5aae5fa54ab8d34a8f8452b11b0f1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247058" author="auto" created="Wed, 23 Jan 2013 00:01:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-15T02:05:02Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8132&quot; title=&quot;slowness in mongos when dealing with replset due to getServerAddress() calls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8132&quot;&gt;&lt;del&gt;SERVER-8132&lt;/del&gt;&lt;/a&gt;: speed up getServerAddress&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/109f6fbde0f802413fa80b699a2e2d39cf9b32fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/109f6fbde0f802413fa80b699a2e2d39cf9b32fc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="245834" author="antoine" created="Mon, 21 Jan 2013 20:04:16 +0000"  >&lt;p&gt;Tested the fix with nightly build from 1/20, and it&apos;s all good.&lt;/p&gt;</comment>
                            <comment id="240098" author="auto" created="Tue, 15 Jan 2013 06:07:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-15T06:06:58Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8132&quot; title=&quot;slowness in mongos when dealing with replset due to getServerAddress() calls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8132&quot;&gt;&lt;del&gt;SERVER-8132&lt;/del&gt;&lt;/a&gt;: fix caching of writeback init&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/69e3bd18b5f82a727cf3dcd5e472cbe07d40162c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/69e3bd18b5f82a727cf3dcd5e472cbe07d40162c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="239986" author="auto" created="Tue, 15 Jan 2013 02:05:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-15T02:05:02Z&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8132&quot; title=&quot;slowness in mongos when dealing with replset due to getServerAddress() calls&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8132&quot;&gt;&lt;del&gt;SERVER-8132&lt;/del&gt;&lt;/a&gt;: speed up getServerAddress&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f5cc553ffa9a8c61b96f6ac0cdb5c7ec08dfd8ce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f5cc553ffa9a8c61b96f6ac0cdb5c7ec08dfd8ce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="236508" author="antoine" created="Thu, 10 Jan 2013 21:14:57 +0000"  >&lt;p&gt;patch to add caching&lt;/p&gt;</comment>
                            <comment id="236506" author="antoine" created="Thu, 10 Jan 2013 21:13:58 +0000"  >&lt;p&gt;patched mongos profile with replset&lt;/p&gt;</comment>
                            <comment id="236505" author="antoine" created="Thu, 10 Jan 2013 21:13:20 +0000"  >&lt;p&gt;mongos profile with --master&lt;/p&gt;</comment>
                            <comment id="236504" author="antoine" created="Thu, 10 Jan 2013 21:12:50 +0000"  >&lt;p&gt;mongos profile with replset&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="23059" name="cacheAddr.diff" size="1134" author="antoine" created="Thu, 10 Jan 2013 21:14:57 +0000"/>
                            <attachment id="23056" name="gprof-slowreplset.pdf" size="22636" author="antoine" created="Thu, 10 Jan 2013 21:12:50 +0000"/>
                            <attachment id="23057" name="res2.pdf" size="21550" author="antoine" created="Thu, 10 Jan 2013 21:13:20 +0000"/>
                            <attachment id="23058" name="res3.pdf" size="23880" author="antoine" created="Thu, 10 Jan 2013 21:13:58 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 10 Jan 2013 21:12:50 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 4 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 4 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnc93:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>38970</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;This can be seen easily when running a high performance test (1000s of rps) with multiple threads (10+) and comparing the performance between replset and master/slave.&lt;/p&gt;</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|hsu6rj:</customfieldvalue>

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