Skip to content

nginx: Fix default configuration for better performance#97

Open
harimishal1 wants to merge 1 commit intounikraft:mainfrom
harimishal1:fix/nginx-default-config
Open

nginx: Fix default configuration for better performance#97
harimishal1 wants to merge 1 commit intounikraft:mainfrom
harimishal1:fix/nginx-default-config

Conversation

@harimishal1
Copy link
Copy Markdown

The default nginx.conf in the nginx catalog-core app has two issues:

error_log logs/error.log debug — debug-level logging generates excessive I/O under load. Changed to error level, which still logs actual errors but doesn't flood the output during normal operation.
worker_connections 32 — this is nearly exhausted by a typical 30-connection benchmark. Increased to 128 to provide reasonable headroom.
Related to #77. The deeper cause of the alternating throughput issue (TIME_WAIT accumulation in lwIP) is addressed in a separate PR to lib-lwip.

Change error_log level from debug to error. Debug-level logging
generates excessive I/O under load, and is not appropriate as a
default for the example application.

Increase worker_connections from 32 to 128 to provide adequate
headroom for concurrent connection benchmarks.

Signed-off-by: misharu <harimishal1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant