Method: Unicorn::Configurator#worker_processes
- Defined in:
- lib/unicorn/configurator.rb
#worker_processes(nr) ⇒ Object
sets the current number of worker_processes to nr. Each worker process will serve exactly one client at a time. You can increment or decrement this value at runtime by sending SIGTTIN or SIGTTOU respectively to the master process without reloading the rest of your Unicorn configuration. See the SIGNALS document for more information.
209 210 211 |
# File 'lib/unicorn/configurator.rb', line 209 def worker_processes(nr) set_int(:worker_processes, nr, 1) end |