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

Use keepalive (requires a upstream block) + Open file cache #1221

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

melroy89
Copy link
Member

@melroy89 melroy89 commented Nov 14, 2024

  • Use keepalive in Nginx, to actually keep the connection open. keepalive is not the max. amount of connections, but the amount of idle connections.
  • Also add open_file_cache
  • Increase gzip_comp_level to 5 for a better balance between performance/CPU usage.

For some reason Nginx think it's a good idea that this required an upstream block, so actually in order to leverage keepalive functionality in Nginx, you will need to define an upstream section...

Official keepalive documentation: http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive

And open file cache documentation here: http://nginx.org/en/docs/http/ngx_http_core_module.html#open_file_cache

@melroy89 melroy89 changed the title Use keepalive (requires a upstream block) Use keepalive (requires a upstream block) + Open file cache Nov 15, 2024
@melroy89 melroy89 added this to the v1.7.3 milestone Nov 15, 2024
@melroy89 melroy89 added the documentation Improvements or additions to documentation label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant