minio/docs/throttle
Harshavardhana a5702f978e
remove requests deadline, instead just reject the requests (#20272)
Additionally set

 - x-ratelimit-limit
 - x-ratelimit-remaining

To indicate the request rates.
2024-08-16 01:43:49 -07:00
..
README.md remove requests deadline, instead just reject the requests (#20272) 2024-08-16 01:43:49 -07:00

MinIO Server Throttling Guide Slack Docker Pulls

MinIO server allows to throttle incoming requests:

  • limit the number of active requests allowed across the cluster
  • limit the wait duration for each request in the queue

These values are enabled using server's configuration or environment variables.

Examples

Configuring connection limit

If you have traditional spinning (hdd) drives, some applications with high concurrency might require MinIO cluster to be tuned such that to avoid random I/O on the drives. The way to convert high concurrent I/O into a sequential I/O is by reducing the number of concurrent operations allowed per cluster. This allows MinIO cluster to be operationally resilient to such workloads, while also making sure the drives are at optimal efficiency and responsive.

Example: Limit a MinIO cluster to accept at max 1600 simultaneous S3 API requests across all nodes of the cluster.

export MINIO_API_REQUESTS_MAX=1600
export MINIO_ROOT_USER=your-access-key
export MINIO_ROOT_PASSWORD=your-secret-key
minio server http://server{1...8}/mnt/hdd{1...16}

or

mc admin config set myminio/ api requests_max=1600
mc admin service restart myminio/

NOTE: A zero value of requests_max means MinIO will automatically calculate requests based on available RAM size and that is the default behavior.