Skip to content

Commit

Permalink
supervisor example in Cluster documentation Closes #196
Browse files Browse the repository at this point in the history
  • Loading branch information
GabLeRoux authored Oct 5, 2016
1 parent 60b95a6 commit dfa0920
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/cluster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------

Expand Down

0 comments on commit dfa0920

Please sign in to comment.