Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supervisor example in Cluster documentation fix #196 #197

Merged
merged 1 commit into from
Nov 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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