Skip to content

Conversation

@Jgfrausing
Copy link

Metrics are based on the rtt measurement. The server PING is only sent if the connection has been without messages (including client PINGs) for the ping_interval (server set).
The DEFAULT_RTT_MEASUREMENT_INTERVAL is an hour meaning that metrics on a frequently used connection are only update with that interval.

Troubleshooting when metrics are coarse can be difficult.

The suggested change allows servers to be configured to amend that.

Signed-off-by: Jonatan [email protected]

@Jgfrausing Jgfrausing requested a review from a team as a code owner November 14, 2025 09:29
@Jgfrausing
Copy link
Author

Issue also discussed in How are NATS routez/connz rtt measured

@Jgfrausing
Copy link
Author

For obvious reasons does RTT not update more often than ping_interval. I don't know how to highlight that best. Input is more than welcome.

@Jgfrausing
Copy link
Author

@neilalexander do I need to create an issue or something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant