unicorn Attributes - AWS OpsWorks

unicorn Attributes

Important

The AWS OpsWorks Stacks service reached end of life on May 26, 2024 and has been disabled for both new and existing customers. We strongly recommend customers migrate their workloads to other solutions as soon as possible. If you have questions about migration, reach out to the AWS Support Team on AWS re:Post or through AWS Premium Support.

Note

These attributes are available only on Linux stacks.

The unicorn attributes specify the Unicorn configuration. For more information, see Unicorn::Configurator. For more information on how to override built-in attributes to specify custom values, see Overriding Attributes.

accept_filter

The accept filter, 'httpready' or 'dataready' (string). The default value is 'httpready'.

node[:unicorn][:accept_filter]
backlog

The maximum number of requests that the queue can hold (number). The default value is 1024.

node[:unicorn][:backlog]
delay

The amount of time, in seconds, to wait to retry binding a socket (number). The default value is 0.5.

node[:unicorn][:delay]
preload_app

Whether to preload an app before forking a worker process (Boolean). The default value is true.

node[:unicorn][:preload_app]
tcp_nodelay

Whether to disable Nagle's algorithm for TCP sockets (Boolean). The default value is true.

node[:unicorn][:tcp_nodelay]
tcp_nopush

Whether to enable TCP_CORK (Boolean). The default value is false.

node[:unicorn][:tcp_nopush]
timeout

The maximum amount time, in seconds, that a worker is allowed to use for each request (number). Workers that exceed the timeout value are terminated. The default value is 60.

node[:unicorn][:timeout]
tries

The maximum number of times to retry binding to a socket (number). The default value is 5.

node[:unicorn][:tries]
version

The Unicorn version (string). The default value is '4.7.0'.

node[:unicorn][:version]
worker_processes

The number of worker processes (number). The default value is max_pool_size, if it exists, and 4 otherwise.

node[:unicorn][:worker_processes]