Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimisation suggestions for nginx #5798

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open

Conversation

kanwarujjaval
Copy link
Member

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant