From dfa0920a749d5b9881a62ff841166d9786e68fe4 Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Wed, 5 Oct 2016 12:35:30 -0400 Subject: [PATCH] supervisor example in Cluster documentation Closes #196 --- docs/cluster.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/cluster.rst b/docs/cluster.rst index e25a062c..886259e9 100644 --- a/docs/cluster.rst +++ b/docs/cluster.rst @@ -77,11 +77,17 @@ An example :file:`circus.ini` :: numprocesses = 1 copy_env = True - - Note that we only start one process. It is not a good idea to run multiple instances of the cluster in the same environment since this does nothing to increase performance and in all likelihood will diminish it. Control your cluster using the ``workers``, ``recycle`` and ``timeout`` settings in your :doc:`configure` +An example :file:`supervisor.conf` :: + + [program:django-q] + command = python manage.py qcluster + stopasgroup = true + +Supervisor's ``stopasgroup`` will ensure that the single process doesn't leave orphan process on stop or restart. + Reference ---------