<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:21:33 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-50038] [mongostat] difference between pingMs and heartbeat parameters(lastHeartbeat &amp; lastHeartbeatRecv)</title>
                <link>https://jira.mongodb.org/browse/SERVER-50038</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;hi &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;according to &lt;a href=&quot;https://docs.mongodb.com/manual/core/replica-set-elections/index.html#heartbeats&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this post &lt;/a&gt;, heartbeat is the same as ping.&lt;/p&gt;

&lt;p&gt;so what is difference between pingMs and heartbeat parameters(lastHeartbeat &amp;amp; lastHeartbeatRecv) ?&lt;/p&gt;

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

&lt;p&gt;this is my understanding of lastHeartbeat &amp;amp; lastHeartbeatRecv :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://jira.mongodb.org/images/icons/attach/noimage.png&quot; imagetext=&quot;image-2020-07-30-22-33-19-642.png&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</description>
                <environment>VMWare + CentOS 8 + Mongodb Replica Set</environment>
        <key id="1424995">SERVER-50038</key>
            <summary>[mongostat] difference between pingMs and heartbeat parameters(lastHeartbeat &amp; lastHeartbeatRecv)</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="jonathan.streets@mongodb.com">Jonathan Streets</assignee>
                                    <reporter username="abolfazl.ziaratban@gmail.com">Abolfazl Ziaratban</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Jul 2020 18:04:18 +0000</created>
                <updated>Wed, 1 Jun 2022 17:44:24 +0000</updated>
                            <resolved>Mon, 3 Aug 2020 17:10:11 +0000</resolved>
                                    <version>4.2.6</version>
                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3325896" author="JIRAUSER1269222" created="Fri, 7 Aug 2020 02:40:18 +0000"  >&lt;p&gt;hi again &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;according to docs :&lt;/b&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Compare this value to the values of the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/replSetGetStatus/#replSetGetStatus.date&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;date&lt;/tt&gt;&lt;/a&gt; and &lt;tt&gt;lastHeartBeatRecv&lt;/tt&gt; fields to track latency between these replica set members.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;tt&gt;what is relation between the &lt;b&gt;replSetGetStatus&lt;/b&gt;.&lt;b&gt;date&lt;/b&gt; and &lt;b&gt;lastHeartbeat&lt;/b&gt;(or &lt;b&gt;lastHeartbeatRecv&lt;/b&gt;) and how i can calculate the latency between these replica set members?&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;What are these parameters(&lt;tt&gt;lastHeartbeat&lt;/tt&gt;,&lt;tt&gt;lastHeartbeatRecv&lt;/tt&gt;) used for?&lt;/p&gt;

&lt;p&gt;what are use cases?&lt;/p&gt;

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

&lt;p&gt;thanks.&lt;/p&gt;</comment>
                            <comment id="3318053" author="jonathan.streets" created="Mon, 3 Aug 2020 17:09:12 +0000"  >&lt;p&gt;hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abolfazl.ziaratban%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;abolfazl.ziaratban@gmail.com&quot;&gt;abolfazl.ziaratban@gmail.com&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;I think you are ok with the explanation, so I&#8217;m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Jon&lt;/p&gt;</comment>
                            <comment id="3315870" author="JIRAUSER1269222" created="Fri, 31 Jul 2020 15:45:10 +0000"  >&lt;h4&gt;&lt;a name=&quot;JonathanStreets%C2%A0https%3A%2F%2Fjira.mongodb.org%2Fsecure%2FViewProfile.jspa%3Fname%3Djonathan.streetsthanks.&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jonathan.streets&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Jonathan Streets &#160;&lt;/a&gt;thanks.&lt;/h4&gt;

&lt;p&gt;your explanation is very clear.&lt;/p&gt;

&lt;p&gt;i edited my diagram and now is :&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/272202/272202_image-2020-07-31-20-13-43-972.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

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

&lt;p&gt;and this heartbeat request is not related to run of db.adminCommand({...}) in across replica set&lt;/p&gt;</comment>
                            <comment id="3315645" author="jonathan.streets" created="Fri, 31 Jul 2020 14:56:37 +0000"  >&lt;p&gt;hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abolfazl.ziaratban%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;abolfazl.ziaratban@gmail.com&quot;&gt;abolfazl.ziaratban@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;from the docs &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/replSetGetStatus/#replSetGetStatus.members[n].lastHeartbeat&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, i found good explanations for the 3 metrics&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;replSetGetStatus.members&lt;span class=&quot;error&quot;&gt;&amp;#91;n&amp;#93;&lt;/span&gt;.lastHeartbeat,&lt;/li&gt;
	&lt;li&gt;replSetGetStatus.members&lt;span class=&quot;error&quot;&gt;&amp;#91;n&amp;#93;&lt;/span&gt;.lastHeartbeatRecv,&lt;/li&gt;
	&lt;li&gt;replSetGetStatus.members&lt;span class=&quot;error&quot;&gt;&amp;#91;n&amp;#93;&lt;/span&gt;.pingMs&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Briefly:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;pingMs is the round trip time (RTT) in milliseconds.&lt;/li&gt;
	&lt;li&gt;lastHeartbeat is the ISODate when the server received a response from a heartbeat request it had sent.&lt;/li&gt;
	&lt;li&gt;lastHeartbeatRecv is the ISODate when the server received a heartbeat request.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Does this help ?&lt;br/&gt;
 Regards&lt;br/&gt;
 Jon&lt;/p&gt;</comment>
                            <comment id="3315422" author="JIRAUSER1269222" created="Fri, 31 Jul 2020 13:03:05 +0000"  >&lt;h4&gt;&lt;a name=&quot;TimFogarty%C2%A0https%3A%2F%2Fjira.mongodb.org%2Fsecure%2FViewProfile.jspa%3Fname%3Dtim.fogartythanks.&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tim.fogarty&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Tim Fogarty&#160; &lt;/a&gt;thanks.&lt;/h4&gt;

&lt;p&gt;i could not found any button for edit.&lt;/p&gt;</comment>
                            <comment id="3315310" author="tim.fogarty" created="Fri, 31 Jul 2020 11:20:31 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=abolfazl.ziaratban%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;abolfazl.ziaratban@gmail.com&quot;&gt;abolfazl.ziaratban@gmail.com&lt;/a&gt;, I have moved this to the SERVER project since question has to do with the&#160;replSetGetStatus server command.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="284587">DOCS-7810</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="272091" name="diagram.png" size="16257" author="abolfazl.ziaratban@gmail.com" created="Thu, 30 Jul 2020 18:05:24 +0000"/>
                            <attachment id="272202" name="image-2020-07-31-20-13-43-972.png" size="15995" author="abolfazl.ziaratban@gmail.com" created="Fri, 31 Jul 2020 15:43:44 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 31 Jul 2020 11:20:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 26 weeks, 6 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_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, 26 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>abolfazl.ziaratban@gmail.com</customfieldvalue>
            <customfieldvalue>jonathan.streets@mongodb.com</customfieldvalue>
            <customfieldvalue>tim.fogarty@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxxgsn:</customfieldvalue>

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

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