<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:47:28 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-81803] Understanding cache eviction failures</title>
                <link>https://jira.mongodb.org/browse/SERVER-81803</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Our production sharded cluster is facing issues for a while now where wiredtiger cache of primary nodes of each shard are using application threads to evict pages from cache, resulting in read and write failures. This happens when the update bytes breaches 10% of the cache size. We already tried increasing the eviction thread count to 20 and cache size to 70% but didn&#8217;t notice any improvements in cache evictions.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Recently one of our nodes auto recovered from this issue and since then the update bytes percentage of that node is under the limit (constantly within 2.5% - 3%). The following are the observations that we made after the auto recovery,&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Decrease in checkpoint blocked page evictions.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Decrease in cache eviction gave up due to detecting an out of order tombstone ahead of the selected on disk update.&lt;/li&gt;
	&lt;li&gt;Change in eviction walk strategy - before the recovery the strategy was only dirty pages. Currently it&#8217;s only clean pages.&lt;/li&gt;
	&lt;li&gt;Decrease in eviction failures due to failure during reconciliation.&lt;/li&gt;
	&lt;li&gt;Increase in pages read from disk to cache&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;We also restarted the mongo process on few of the nodes after which we see the update bytes are within the limit. It would be great to have your suggestions or views regarding this issue which would help us to understand the issue better and fix it.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;</description>
                <environment></environment>
        <key id="2446205">SERVER-81803</key>
            <summary>Understanding cache eviction failures</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="yuvaraj.klei@gmail.com">Yuvaraj Anbarasan</reporter>
                        <labels>
                            <label>external-user</label>
                    </labels>
                <created>Tue, 19 Sep 2023 17:41:52 +0000</created>
                <updated>Tue, 3 Oct 2023 15:30:38 +0000</updated>
                            <resolved>Tue, 3 Oct 2023 15:28:47 +0000</resolved>
                                                                                        <votes>2</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="5748921" author="eric.sedor" created="Tue, 3 Oct 2023 15:28:30 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=yuvaraj.klei%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;yuvaraj.klei@gmail.com&quot;&gt;yuvaraj.klei@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;In general for this issue we&apos;d like to encourage you to start by asking our community for help by posting on the &lt;a href=&quot;https://www.mongodb.com/community/forums&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Developer Community Forums&lt;/a&gt;. Briefly I can suggest that I think the configuration options discussed in &lt;a href=&quot;https://jira.mongodb.org/browse/WT-6175&quot; title=&quot;tcmalloc fragmentation is worse in 4.4 with durable history&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-6175&quot;&gt;&lt;del&gt;WT-6175&lt;/del&gt;&lt;/a&gt; are relevant here and more likely to influence behavior than changing eviction worker thread count.&lt;/p&gt;

&lt;p&gt;If the discussion there leads you to suspect a bug in the MongoDB server, then we&apos;d want to investigate it as a possible bug here in the SERVER project. We&apos;ll be happy to leverage the WT team for such an issue. I&apos;ll close this ticket for now but we can reopen it if there is a bug. Note that the contents of the diagnostic.data directory of your dbPath will be critical to do so.&lt;/p&gt;

&lt;p&gt;Sincerely,&lt;br/&gt;
Eric&lt;/p&gt;</comment>
                            <comment id="5720599" author="JIRAUSER1275160" created="Thu, 21 Sep 2023 10:49:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=vamsi.krishna%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;vamsi.krishna@mongodb.com&quot;&gt;vamsi.krishna@mongodb.com&lt;/a&gt; , I think it wouldn&apos;t possible to share the FDTC file. We&apos;re still checking with out infra team regarding this. I have attached some of the metrics in the thread. If any other metrics are required we can share it.&lt;/p&gt;</comment>
                            <comment id="5716910" author="vamsi.krishna" created="Wed, 20 Sep 2023 06:21:59 +0000"  >&lt;p&gt;Could you attach the FTDC data to this ticket?&lt;/p&gt;</comment>
                            <comment id="5716907" author="JIRAUSER1275160" created="Wed, 20 Sep 2023 06:14:27 +0000"  >&lt;p&gt;We also notice increase in-memory page splits.&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;477012_thumb&quot; href=&quot;https://jira.mongodb.org/secure/attachment/477012/477012_in_memory_page_splits.png&quot; title=&quot;in_memory_page_splits.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;477012&quot; file-preview-title=&quot;in_memory_page_splits.png&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/thumbnail/477012/_thumb_477012.png&quot; style=&quot;border: 0px solid black&quot; role=&quot;presentation&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="477008" name="cache_eviction_gave_up_due_to_detecting_an_out_of_order_tombstone_ahead_of_the_selected_on_disk_update.png" size="244656" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                            <attachment id="477009" name="checkpoint_blocked_page_evictions.png" size="273414" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                            <attachment id="477010" name="eviciton_strategy_dirty_pages.png" size="160367" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                            <attachment id="477011" name="eviction-strategy_clean_pages.png" size="155904" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                            <attachment id="477012" name="in_memory_page_splits.png" size="189393" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                            <attachment id="477013" name="update_bytes_percentage.png" size="152767" author="yuvaraj.klei@gmail.com" created="Tue, 19 Sep 2023 17:42:46 +0000"/>
                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 20 Sep 2023 06:21:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        18 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>eric.sedor@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            18 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>vamsi.krishna@mongodb.com</customfieldvalue>
            <customfieldvalue>yuvaraj.klei@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2r87j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i296j8:</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_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|i2qucv:</customfieldvalue>

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