| Path: | lib/rainbows/configurator.rb |
| Last Update: | Sat Feb 23 07:20:36 +0000 2019 |
This module adds \Rainbows! to the Unicorn::Configurator \Rainbows!-specific configuration options must be inside a the Rainbows! block, otherwise Unicorn::Configurator directives may be used anywhere in the file.
Warning: The "timeout" directive in unicorn is far more dangerous in Rainbows!, since ALL requests running on a process will be lost on worker death, not just one. Instead, handle application-level timeouts yourself: bogomips.org/unicorn/Application_Timeouts.html
Rainbows! do
use :ThreadSpawn # concurrency model to use
worker_connections 400
keepalive_timeout 0 # zero disables keepalives entirely
client_max_body_size 5*1024*1024 # 5 megabytes
keepalive_requests 666 # default:100
client_header_buffer_size 2 * 1024 # 2 kilobytes
end
# the rest of the Unicorn configuration...
worker_processes 8
stderr_path "/path/to/error.log"
stdout_path "/path/to/output.log"