Skip to main content

your elastic friend to start supervisord processes based on cpu cores available

Project description

Mr.Rubber - your elastic friend

Mr.Rubber is a supervisord event listener. When rubber is started it will dertmine how many processes to keep running based on its settings and by detecting the number of cores on the system. It will start or stop processes which match a spec to match the nominated process count.

Options are:

–programs (-p):

Spec for which program names to control. Glob syntax such as “instance*” is supported.

–num (-n):

The number of processes to run. Defaults to “auto” which will set this to the number of cpu cores detected when rubber first starts

–offset (-o):

A number to modify the –num argument by. For instance if –num=auto and –offset=-2 and the detected cores was 4 then the number of processes set to run would be 2.

For example if you are using buildout with supervisor you could do the following

[supervisor]
recipe=collective.recipe.supervisor
plugins =
  mr.rubber
programs =
  11 instance1 ${buildout:directory}/bin/instance1 [console] ${instance1:location} true
  12 instance2 ${buildout:directory}/bin/instance2 [console] ${instance2:location} true
  13 instance3 ${buildout:directory}/bin/instance3 [console] ${instance3:location} true
  14 instance4 ${buildout:directory}/bin/instance4 [console] ${instance4:location} true
eventlisteners =
  rubber SUPERVISOR_STATE_CHANGE_RUNNING ${buildout:bin-directory}/rubber [-p instance* -o 0 -n auto]

History

1.0 (11-10-11)

  • Initial working version released

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mr.rubber-1.0dev.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file mr.rubber-1.0dev.tar.gz.

File metadata

  • Download URL: mr.rubber-1.0dev.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mr.rubber-1.0dev.tar.gz
Algorithm Hash digest
SHA256 c66965ecacac29968188b76f1bdd1d0f32f41ab980b7fb40147b34c51ed24973
MD5 e3ae0523ae755eb3e955714a0ad67af7
BLAKE2b-256 bf871cc6febd6d002523944ac4500ba46daabc550064d69bc4942a24b184761d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page