Skip to content

Allow for configuring worker_connections #3371

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

Open
sjberman opened this issue May 13, 2025 · 2 comments
Open

Allow for configuring worker_connections #3371

sjberman opened this issue May 13, 2025 · 2 comments
Labels
area/nginx-configuration Relates to nginx configuration community enhancement New feature or request
Milestone

Comments

@sjberman
Copy link
Collaborator

As an NGF user
I want to be able to configure the worker_connections directive
So that I can run NGF at scale without needing too many nginx replicas

worker_connections sets the number of simultaneous connections that can be opened by an nginx worker process. Our default value is 1024. Users at scale may see the error [warn] 1180#1180: 1024 worker_connections are not enough, reusing connections, and therefore need to increase the number of allowed connections.

A workaround for this is to scale nginx to more replicas, but at certain scales, it may be more resource-friendly to increase this value instead of scaling replicas.

Acceptance

  • allow users to configure the worker_connections directive
  • likely a new field in the NginxProxy resource, to be set in the main nginx config
@sjberman sjberman added enhancement New feature or request area/nginx-configuration Relates to nginx configuration labels May 13, 2025
@mpstefan
Copy link
Member

Makes sense.

Under what specific circumstances is increasing this number better than increasing the number of replicas? Do we run into this right away with one/two replicas, or is it a specific edge case?

@sjberman
Copy link
Collaborator Author

Here's the original discussion: #3368

@mpstefan mpstefan added this to the v2.1.0 milestone May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/nginx-configuration Relates to nginx configuration community enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants