11 Mart 2021 Perşembe

NGINX - nginx.conf Dosyası - Limit Request

Giriş
Açıklaması şöyle
If the requests rate exceeds the rate configured for a zone, their processing is delayed such that requests are processed at a defined rate. Excessive requests are delayed until their number exceeds the maximum burst size in which case the request is terminated with an error. By default, the maximum burst size is equal to zero
Örnek
Şöyle yaparız
limit_req_zone $server_name zone=one:10m rate=100r/s;

server {
    location /search/ {
        limit_req zone=one burst=200;
    }
  ...
}

Hiç yorum yok:

Yorum Gönder