Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Pitman <[email protected]>
  • Loading branch information
jamesmunns and branlwyd authored Aug 29, 2024
1 parent a4a0b16 commit 9f972bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user-manual/src/config/kdl.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ Once a refill occurs, requests may become ready if a token becomes available.
##### How many buckets?

Some rules require many buckets. For example, rules based on the source IP address will create a bucket
for each unique IP address of downstream users.
for each unique source IP address observed in a request.

However, each of these buckets require space to contain the metadata, and to avoid unbounded growth,
we allow for a configurable `max-buckets` number, which serves to influence the total memory required
for storing buckets. This uses an [Adaptive Replacement Cache]
to allow for concurrent access to these buckets, as well as the ability to automatically buckets that
to allow for concurrent access to these buckets, as well as the ability to automatically evict buckets that
are not actively being used (somewhat similar to an LRU or "Least Recently Used" cache).

[Adaptive Replacement Cache]: https://docs.rs/concread/latest/concread/arcache/index.html
Expand Down

0 comments on commit 9f972bb

Please sign in to comment.