Skip to content

[Feature]: Allow configuring Nginx file and connection limits #3984

Closed

Description

@jvstme

Problem

The Nginx server on dstack gateways uses the default distro-provided config, which can have low file and connection limits (worker_rlimit_nofile, worker_connections) insufficient for production use cases. For example, the limits may default to 1024 files and 768 connections, which would cause Nginx to fail handling more concurrent requests.

Solution

Either allow configuring in the gateway configuration, or hardcode higher limits.

Workaround

SSH to the gateway instance, set new limits by hand.

Would you like to help us implement this feature by sending a PR?

Yes

Activity

  1. github-actions commented on Jul 25, 2026

    @github-actions

    This issue is stale because it has been open for 30 days with no activity.

  2. github-actions commented on Aug 9, 2026

    @github-actions

    This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

  3. reopened this on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions