Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Supervisor event listener for configuring cgroups with processes managed by supervisor

Project Description

## supervisor_cgroups

Event listener (~plugin) for [supervisor]( that enables tying supervisor processes to cgroup hierarchy. Intended to be used as a replacement for [cgrules.conf](

### Install and confugure

pip install supervisor_cgroups

Add an event listener to supervisor configuration files (e.g. to /etc/supervisor/conf.d/cgroups.conf):

[eventlistener:cgroups] command=supervisor_cgroups_listen –prefix CGROUPS_PREFIX PROCESS_NAME1@HIERARCHY1:GROUP1 PROCESS_NAME2@HIERARCHY2:GROUP2 etc… events=EVENT autostart=true autorestart=true

where PROCESS_NAME is a name of a process known to supervisor (as in [program:***]), HIERARCHY is a [cgroups hierarchy](, GROUP stands for [control group]( and CGROUPS_PREFIX is an optional path prefix where you prefer to store your cgroups hierarchies (/cgroup by default). All of these are supposed to be configured beforehand (with [cgconfig.conf]( or otherwise).

### Known pitfails

Keep in mind that due to [a bug in supervisor]( you have to reload supervisor to update the configuration; supervisorctl update won’t do.

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
supervisor_cgroups-0.0.1.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Sep 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting