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

base: drop SlowRequestThreshold to 15s #67814

Merged

Conversation

nvanbenschoten
Copy link
Member

This commit drops SlowRequestThreshold from 60s to 15s. This constant
dictates the delay before we consider the following four operations to
be slow enough to log and/or increment "slow request" metrics:

  • raft proposals
  • raft proposal quota acquisition
  • lease acquisition
  • latch acquisition

This commit drops `SlowRequestThreshold` from 60s to 15s. This constant
dictates the delay before we consider the following four operations to
be slow enough to log and/or increment "slow request" metrics:
- raft proposals
- raft proposal quota acquisition
- lease acquisition
- latch acquisition
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@aayushshah15 aayushshah15 left a comment

Choose a reason for hiding this comment

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

I'm wondering if we want to just make this a cluster setting, with the new default being 15s.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @tbg)

@nvanbenschoten
Copy link
Member Author

I'm wondering if we want to just make this a cluster setting, with the new default being 15s.

In general, I agree 100% with the use of cluster settings, but this specific constant is used to construct a few static variables. So I'm going to take the easy/lazy path for now.

bors r+

@craig
Copy link
Contributor

craig bot commented Jul 22, 2021

Build succeeded:

@craig craig bot merged commit 15d3c04 into cockroachdb:master Jul 22, 2021
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/slowReqConst branch July 27, 2021 20:49
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.

4 participants