Skip to content

Commit

Permalink
docs: Fix description of the leaky bucket algorithm in throttle.txt
Browse files Browse the repository at this point in the history
Commit 0bab0eb was supposed to fix
a mistake in the description of the leaky bucket algorithm, but the
version that finally landed after the review process was incorrect.

This patch solves that problem and hopefully clarifies the description
a bit better.

Signed-off-by: Alberto Garcia <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
bertogg authored and Michael Tokarev committed Sep 13, 2016
1 parent fa97012 commit 37e3645
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/throttle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,10 @@ consider the following values:
- Water leaks from the bucket at a rate of 100 IOPS.
- Water can be added to the bucket at a rate of 2000 IOPS.
- The size of the bucket is 2000 x 60 = 120000
- If 'iops-total-max' is unset then the bucket size is 100 x 60.
- If 'iops-total-max-length' is unset then it defaults to 1 and the
size of the bucket is 2000.
- If 'iops-total-max' is unset then 'iops-total-max-length' must be
unset as well. In this case the bucket size is 100.

The bucket is initially empty, therefore water can be added until it's
full at a rate of 2000 IOPS (the burst rate). Once the bucket is full
Expand Down

0 comments on commit 37e3645

Please sign in to comment.