mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Updated docs to reflect the proper alternative syntax for specifying a worker class.
This commit is contained in:
parent
087647dc88
commit
133a85e4ee
@ -185,10 +185,13 @@ when you might want to choose one of the other worker classes.</p>
|
|||||||
<li><tt class="docutils literal">gevent</tt> - Requires gevent >= 0.12.2 (?)</li>
|
<li><tt class="docutils literal">gevent</tt> - Requires gevent >= 0.12.2 (?)</li>
|
||||||
<li><tt class="docutils literal">tornado</tt> - Requires tornado >= 0.2</li>
|
<li><tt class="docutils literal">tornado</tt> - Requires tornado >= 0.2</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Optionally, you can provide your own worker by giving gunicorn a
|
<p>
|
||||||
MODULE:CLASS pair where CLASS is a subclass of
|
Optionally, you can provide your own worker by giving gunicorn a python path
|
||||||
gunicorn.workers.base.Worker. This alternative syntax will load the
|
to a subclass of gunicorn.workers.base.Worker. This alternative syntax will
|
||||||
gevent class: <tt class="docutils literal">egg:gunicorn#gevent</tt></p>
|
load the gevent class:
|
||||||
|
<tt class="docutils literal">gunicorn.workers.ggevent.GeventWorker</tt>.
|
||||||
|
Alternatively the syntax can also load the gevent class with
|
||||||
|
<tt class="docutils literal">egg:gunicorn#gevent</tt></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="worker-connections">
|
<div class="section" id="worker-connections">
|
||||||
<h4><a class="toc-backref" href="#contents">worker_connections</a></h4>
|
<h4><a class="toc-backref" href="#contents">worker_connections</a></h4>
|
||||||
@ -581,4 +584,4 @@ the just-exited Worker.</p>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -38,7 +38,7 @@ backlog = 2048
|
|||||||
# of the other worker classes.
|
# of the other worker classes.
|
||||||
#
|
#
|
||||||
# An string referring to a 'gunicorn.workers' entry point
|
# An string referring to a 'gunicorn.workers' entry point
|
||||||
# or a MODULE:CLASS pair where CLASS is a subclass of
|
# or a python path to a subclass of
|
||||||
# gunicorn.workers.base.Worker. The default provided values
|
# gunicorn.workers.base.Worker. The default provided values
|
||||||
# are:
|
# are:
|
||||||
#
|
#
|
||||||
|
|||||||
@ -318,9 +318,10 @@ class WorkerClass(Setting):
|
|||||||
* ``tornado`` - Requires tornado >= 0.2
|
* ``tornado`` - Requires tornado >= 0.2
|
||||||
|
|
||||||
Optionally, you can provide your own worker by giving gunicorn a
|
Optionally, you can provide your own worker by giving gunicorn a
|
||||||
MODULE:CLASS pair where CLASS is a subclass of
|
python path to a subclass of gunicorn.workers.base.Worker. This
|
||||||
gunicorn.workers.base.Worker. This alternative syntax will load the
|
alternative syntax will load the gevent class:
|
||||||
gevent class: ``egg:gunicorn#gevent``
|
``gunicorn.workers.ggevent.GeventWorker``. Alternatively the syntax
|
||||||
|
can also load the gevent class with ``egg:gunicorn#gevent``
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class WorkerConnections(Setting):
|
class WorkerConnections(Setting):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user