Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.27 KB

clusters.md

File metadata and controls

40 lines (28 loc) · 1.27 KB

Help

  1. Starting and stopping processes
  2. Controlling the Daemon
  3. Managing clusters
  4. Installing and running apps
  5. Remote access and monitoring (e.g. guv-web)
  6. Web interface
  7. Web interface - configuration
  8. Web interface - user management
  9. Programmatic access
  10. Programmatic access - local
  11. Programmatic access - remote
  12. Programmatic access - events

Managing clusters

To start an app as a cluster, add the -i $n option to the guv start command where $n is the number of workers you want.

The number of workers is limited by the cluster module to $cores - 1 where $cores is the number of cores on your machine.

  1. workers

workers

After starting a process with -i $num (e.g. start ``$numinstances of a script), use theworkers` subcommand to adjust the number of cluster workers.

guv workers <pidOrName> <workers>

e.g.

Make process 49308 (previously started with -i 2) run with 4 workers:

$ guv workers 49308 4

The maximum workers you can set is dependent on your system as num_cpus - 1