summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_atexit.py
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-01-29 16:17:36 +0300
committerMax Romanov <max.romanov@nginx.com>2018-01-29 16:17:36 +0300
commit9cd4fdbdb78e035254e8094b5cff2155857ab764 (patch)
tree6de4ee721996740cbeda8647e11b8b2aa18e704f /test/test_python_atexit.py
parenta36babddef203d79dc37736661e1a042df4064f8 (diff)
downloadunit-9cd4fdbdb78e035254e8094b5cff2155857ab764.tar.gz
unit-9cd4fdbdb78e035254e8094b5cff2155857ab764.tar.bz2
Introducing extended app process management.
- Pre-fork 'processes.spare' application processes; - fork more processes to keep 'processes.spare' idle processes; - fork on-demand up to 'processes.max' count; - scale down idle application processes above 'processes.spare' after 'processes.idle_timeout'; - number of concurrently started application processes also limited by 'processes.spare' (or 1, if spare is 0).
Diffstat (limited to 'test/test_python_atexit.py')
-rw-r--r--test/test_python_atexit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
index 4dc984c1..4c8a6543 100644
--- a/test/test_python_atexit.py
+++ b/test/test_python_atexit.py
@@ -37,7 +37,7 @@ def application(env, start_response):
"applications": {
"app": {
"type": "python",
- "workers": 1,
+ "processes": { "spare": 0 },
"path": self.testdir + '/' + name,
"module": "wsgi"
}