Worker Threads

resource_servers[]/worker_threads

Specifies the limits that can be set on the percentage of worker threads that may be consumed by this resource server.

Properties

NameTypeConstraintsDescription
soft_limitnumberMinimum: 0

Maximum: 100

Default value: 0
Specifies the soft limit (as a percentage) of worker threads that the resource server can use. Warning messages will be displayed when the resource server uses more worker threads than allowed.
hard_limitnumberMinimum: 0

Maximum: 100

Default value: 0
Specifies the hard limit (as a percentage) of worker threads that the resource server can use. Warning messages will be displayed when the resource server uses more worker threads than allowed and clients are returned the 503 Service Unavailable message.

Example

resource_servers:
  - path: "/example"
    # ...
    worker_threads:
      soft_limit: 60
      hard_limit: 80

Did this page help you?