Skip to content

Commit

Permalink
documenting '-enable-lag-throttler' feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomi-noach committed Oct 4, 2020
1 parent e5f54ae commit a62cd73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/en/docs/reference/features/tablet-throttler.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ When the throttler sees no relevant replicas in the shard, the behavior is to al

## Configuration

The default threshold is `1sec` and is set upon tablet startup.

- Use `vttablet -throttle_threshold` command line flag to set a different value, e.g. `-throttle_threshold=0.5s` for a half second.
- throttler is currently disabled by default. Use `-enable-lag-throttler` to enable the throttler.
When the throttler is disabled, it still serves `/throttler/check` API and responds with `HTTP 200 OK` to all requests.
When the throttler is enabled, it implicitly also runs heartbeat injections.
- Use `vttablet -throttle_threshold` command line flag to set a lag threshold value, e.g. `-throttle_threshold=0.5s` for a half second. The default threshold is `1sec` and is set upon tablet startup.
- Use `vttablet -throttle_tablet_types="replica,rdonly"` to set the tablet types which are queried for lag and considered by the throttler. `replica` is always implicitly included, and you may add any other tablet type. Any type not specified is ignored by the throttler.

## API & usage
Expand Down

0 comments on commit a62cd73

Please sign in to comment.