Skip to content

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

Merged
melroy89 merged 9 commits into
mainfrom
use_keepalive
Nov 22, 2024
Merged

Use keepalive (requires a upstream block) + Open file cache#1221
melroy89 merged 9 commits into
mainfrom
use_keepalive

Conversation

@melroy89
Copy link
Copy Markdown
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
Comment thread docs/02-admin/01-installation/docker.md
@melroy89 melroy89 enabled auto-merge (squash) November 20, 2024 23:33
@melroy89 melroy89 merged commit 061225f into main Nov 22, 2024
@melroy89 melroy89 deleted the use_keepalive branch November 22, 2024 11:57
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.

2 participants