Skip to content

Increase the default number of worker connections  #2

@ddragosd

Description

@ddragosd

Currently the worker_connections directive is set to 1000 which is a low number when worker_processes is set to 1 as NGINX would only accept 1000 concurrent connections.

We could increase the setting to maybe 2^14 which is 16384 or 2^15 which is 32768 in order to facilitate benchmarks. I would suggest 2^14 to be in alignment with TechEmpower's benchmark: https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Lua/openresty/nginx.conf

Since it's not easy to come up with a number that fits all cases, for production use-cases it's best to provide a different api-gateway-config directory that would tune these setting as per the expected workload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions