countly-server icon indicating copy to clipboard operation
countly-server copied to clipboard

Optimisation suggestions for nginx

Open kanwarujjaval opened this issue 11 months ago • 0 comments

Changed as these perform better on modern kernels for higher throughput and concurrency

use epoll;
multi_accept on; # Added multi_accept with accept_mutex off and epoll
accept_mutex off;

Added brotli

Sets the HTTP protocol version for proxying. By default, version 1.0 is used. Version 1.1 is recommended for use with keepalive

Enables keep-alive by default, can consider making it upgrade?

       keepalive connections
        proxy_http_version 1.1;
        proxy_set_header Connection "";

Post request buffers

       client_body_buffer_size 16k;
       client_body_timeout 30s;
       client_max_body_size 100m;

kanwarujjaval avatar Nov 25 '24 06:11 kanwarujjaval