deb-oslo.concurrency/oslo_concurrency
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
..
fixture Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00
tests Add prlimit parameter to execute() 2016-01-28 15:00:06 +01:00
__init__.py Move out of the oslo namespace package 2014-11-14 17:17:25 -05:00
_i18n.py Drop use of namespaced oslo.i18n 2015-01-30 19:33:09 -06:00
lockutils.py Add complementary remove lock with prefix function 2015-11-30 12:13:44 -08:00
opts.py Bump to hacking 0.10 2015-01-12 21:11:16 +00:00
prlimit.py Add prlimit parameter to execute() 2016-01-28 15:00:06 +01:00
processutils.py Add prlimit parameter to execute() 2016-01-28 15:00:06 +01:00
watchdog.py Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00