v.22.11Improvement

Throttling algorithm updated to token bucket

Throttling algorithm changed to token bucket. #42665 (Sergei Trifonov).
Changed the throttling algorithm in ClickHouse to use a token bucket mechanism.

Why it matters

The new token bucket throttling algorithm improves rate limiting by allowing bursty traffic to be handled more smoothly while enforcing average request rates. This change helps manage resource usage more effectively, providing better control over query execution and system load.

How to use it

The throttling algorithm is updated internally to token bucket and applied automatically. Users do not need to change specific settings to benefit from this improvement; it affects query execution and resource throttling transparently.