Skip to content

Commit

Permalink
base: drop SlowRequestThreshold to 15s
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nvanbenschoten committed Jul 20, 2021
1 parent 561b93e commit 4eb0bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/base/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (

// SlowRequestThreshold is the amount of time to wait before considering a
// request to be "slow".
SlowRequestThreshold = 60 * time.Second
SlowRequestThreshold = 15 * time.Second

// ChunkRaftCommandThresholdBytes is the threshold in bytes at which
// to chunk or otherwise limit commands being sent to Raft.
Expand Down

0 comments on commit 4eb0bb7

Please sign in to comment.