Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: bump threshold for latency jump reporting #98580

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

tbg
Copy link
Member

@tbg tbg commented Mar 14, 2023

For months I've seen this misfire in nearly every single log line I've
looked at, and I've had to grep it out in many L2 incidents.
Maybe it works better when we suppress it for latencies <=50ms.

Touches #96262.
Fixes #98066.

Epic: none
Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Mar 14, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

For months I've seen this misfire in nearly every single log line I've
looked at, and I've had to grep it out in many L2 incidents.
Maybe it works better when we suppress it for latencies <=50ms.

Touches cockroachdb#96262.
Fixes cockroachdb#98066.

Epic: none
Release note: None
@tbg tbg force-pushed the latency-jump-off branch from 1915814 to 3fed3d4 Compare March 14, 2023 15:26
@tbg tbg requested a review from erikgrinaker March 14, 2023 21:42
@tbg tbg marked this pull request as ready for review March 14, 2023 21:42
@tbg tbg requested a review from a team as a code owner March 14, 2023 21:42
Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering this measures heartbeat latencies, and they're very vulnerable to head-of-line blocking on the DefaultClass (thus not an accurate representation of the actual network latency), a high threshold of 50 ms seems appropriate.

Should we consider only measuring this on SystemClass while we're at it, to get better signal?

@tbg
Copy link
Member Author

tbg commented Mar 15, 2023

Should we consider only measuring this on SystemClass while we're at it, to get better signal?

Not a bad idea but it also isn't a trivial change, so I'll pass.

bors r=erikgrinaker

@craig
Copy link
Contributor

craig bot commented Mar 15, 2023

Build failed:

@tbg
Copy link
Member Author

tbg commented Mar 15, 2023

TestLossOfQuorumRecover cc @aliher1911

bors r=erikgrinaker

@craig
Copy link
Contributor

craig bot commented Mar 15, 2023

Build succeeded:

@craig craig bot merged commit 3016744 into cockroachdb:master Mar 15, 2023
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.

cli,server: disable latency jump detection with start-single-node and/or when using Docker on macOS
3 participants