From 9cd4fdbdb78e035254e8094b5cff2155857ab764 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 29 Jan 2018 16:17:36 +0300 Subject: 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). --- test/test_python_application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_python_application.py') diff --git a/test/test_python_application.py b/test/test_python_application.py index 4fcedc43..1b99ea44 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -19,7 +19,7 @@ class TestUnitApplication(unit.TestUnitControl): "applications": { "app": { "type": "python", - "workers": 1, + "processes": { "spare": 0 }, "path": self.testdir + '/' + name, "module": "wsgi" } -- cgit