RETIRED, further work has moved to Debian project infrastructure
Go to file
Victor Stinner b2e78569c5 Add prlimit parameter to execute()
Add a new oslo_concurrency.prlimit module which is written to be used
on the command line:

    python -m oslo_concurrency.prlimit --rss=RSS -- program arg1 ...

This module calls setrlimit() to restrict the resources and then
executes the program. Its command line is written to be the same than
the Linux prlimit system program.

Add a new ProcessLimits class processutils: resource limits on a
process.

Add an optional prlimit parameter to process_utils.execute(). If the
parameter is used, wrap the command through the new oslo_concurrency
prlimit wrapper.

Linux provides a prlimit command line tool which implements the same
feature (and even more), but it requires util-linux v2.21, and
OpenStack targets other operating systems like Solaris and FreeBSD.

Change-Id: Ib40aa62958ab9c157a2bd51d7ff3edb445556285
Related-Bug: 1449062
2016-01-28 15:00:06 +01:00
doc/source Move 'history' -> release notes section 2015-09-25 08:21:05 -07:00
oslo.concurrency/locale Imported Translations from Zanata 2016-01-16 06:29:19 +00:00
oslo_concurrency Add prlimit parameter to execute() 2016-01-28 15:00:06 +01:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:01:16 -04:00
.gitignore Fix coverage configuration and execution 2015-10-05 17:01:16 -04:00
.gitreview exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
.mailmap exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
.testr.conf Move out of the oslo namespace package 2014-11-14 17:17:25 -05:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:38 +00:00
HACKING.rst exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
LICENSE exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
README.rst Switch badges from 'pypip.in' to 'shields.io' 2015-06-11 20:39:32 -07:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
requirements.txt Updated from global requirements 2016-01-26 23:27:46 +00:00
setup.cfg Remove unnecessary package in setup.cfg 2016-01-11 13:40:09 -05:00
setup.py Updated from global requirements 2015-09-17 12:15:54 +00:00
test-requirements.txt Updated from global requirements 2016-01-24 20:52:51 +00:00
tox.ini Remove python 2.6 and cleanup tox.ini 2015-11-16 00:29:59 +00:00

README.rst

oslo.concurrency

Latest Version

Downloads

The oslo.concurrency library has utilities for safely running multi-thread, multi-process applications using locking mechanisms and for running external processes.