Skip to main content

ENV_API_RATE_LIMIT_ENABLE

Constant ENV_API_RATE_LIMIT_ENABLE 

Source
pub const ENV_API_RATE_LIMIT_ENABLE: &str = "RUSTFS_API_RATE_LIMIT_ENABLE";
Expand description

Enable or disable per-client rate limiting for the S3 API.

When enabled (and RUSTFS_API_RATE_LIMIT_RPM > 0), requests are throttled per client IP using a token bucket; over-limit requests receive 429 Too Many Requests with a Retry-After header. Internode RPC/gRPC, health probes, and the console (which has its own limiter) are exempt. Environment variable: RUSTFS_API_RATE_LIMIT_ENABLE Example: RUSTFS_API_RATE_LIMIT_ENABLE=true