Skip to content

nginx: Fix default configuration for better performance - #97

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

nginx: Fix default configuration for better performance#97
harimishal1 wants to merge 1 commit into
unikraft: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>
@razvand
razvand requested a lite review from Copilot August 21, 2026 20:08
@razvand razvand self-assigned this Aug 21, 2026
@razvand
razvand requested a review from AndreiRV1 August 21, 2026 20:08
@razvand razvand added the enhancement New feature or request label Aug 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the default Nginx configuration to improve performance.

Changes:

  • Reduces error logging from debug to error.
  • Increases worker_connections from 32 to 128.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants