<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:48 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>[JAVA-235] Specify minimum response time for slave selection</title>
                <link>https://jira.mongodb.org/browse/JAVA-235</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The API should have a way to configure a minimum response time a slave must have before it can be used for queries (using slaveOK).&lt;/p&gt;

&lt;p&gt;I have 5 mongod instances, 2 capable of being primary. 3 as read only slaves (priority 0). One of the 3 read only slaves is performing poorly (a switch is dying, latency is spiking &amp;gt; 900ms). Because the current algorithm has an element of randomness in it, some of the requests are being served by this poorly performing server. This is due to ReplicaSetStatus.getASecondary() calling &quot;if ( diff &amp;gt; 15 || ( ( badBeforeBest - mybad ) / ( _all.size() - 1 ) ) &amp;gt; _random.nextDouble() )&quot;. &lt;/p&gt;

&lt;p&gt;The driver should support a minimum cut off. getASecondary() should enforce a latency ceiling in choosing random slaves. I&apos;ve submitted a patch that does this, using a default of 200ms as a cut off, configurable in MongoOptions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13958">JAVA-235</key>
            <summary>Specify minimum response time for slave selection</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="-1">Unassigned</assignee>
                                    <reporter username="mikec">Mike Copley</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Dec 2010 15:03:15 +0000</created>
                <updated>Sun, 12 Aug 2012 02:42:29 +0000</updated>
                            <resolved>Fri, 27 Apr 2012 23:14:57 +0000</resolved>
                                    <version>2.3</version>
                                                    <component>Cluster Management</component>
                    <component>Performance</component>
                                        <votes>1</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="114500" author="jeff.yemin" created="Fri, 27 Apr 2012 23:14:57 +0000"  >&lt;p&gt;This bug should have been closed a while back, asi it&apos;s now already configurable via com.mongodb.slaveAcceptableLatencyMS system property&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10667" name="pingCeiling.patch" size="4718" author="mikec" created="Tue, 14 Dec 2010 15:03:15 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhcif:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14827</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>