Menu
AWS OpsWorks
User Guide (API Version 2013-02-18)

unicorn Attributes

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'.

Copy
node[:unicorn][:accept_filter]
backlog

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

Copy
node[:unicorn][:backlog]
delay

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

Copy
node[:unicorn][:delay]
preload_app

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

Copy
node[:unicorn][:preload_app]
tcp_nodelay

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

Copy
node[:unicorn][:tcp_nodelay]
tcp_nopush

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

Copy
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.

Copy
node[:unicorn][:timeout]
tries

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

Copy
node[:unicorn][:tries]
version

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

Copy
node[:unicorn][:version]
worker_processes

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

Copy
node[:unicorn][:worker_processes]