mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
s/Installing/Installation
This commit is contained in:
parent
de9c0728aa
commit
dfb715b0cc
@ -53,7 +53,7 @@
|
|||||||
<div class="section" id="example-gunicorn-conf-py">
|
<div class="section" id="example-gunicorn-conf-py">
|
||||||
<h1>Example gunicorn.conf.py</h1>
|
<h1>Example gunicorn.conf.py</h1>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
arbiter="egg:gunicorn" # Or "egg:gunicorn#eventlet" (eventlet or gevent)
|
arbiter = "egg:gunicorn" # Or "egg:gunicorn#eventlet" (eventlet or gevent)
|
||||||
backlog = 2048
|
backlog = 2048
|
||||||
bind = "127.0.0.1:8000" # Or "unix:/tmp/gunicorn.sock"
|
bind = "127.0.0.1:8000" # Or "unix:/tmp/gunicorn.sock"
|
||||||
daemon = False # Whether work in the background
|
daemon = False # Whether work in the background
|
||||||
@ -84,7 +84,7 @@ before_exec=lambda server: server.log.info("Forked child, reexecuting"
|
|||||||
<dt>after_fork(server, worker):</dt>
|
<dt>after_fork(server, worker):</dt>
|
||||||
<dd>This is called by the worker after initialization.</dd>
|
<dd>This is called by the worker after initialization.</dd>
|
||||||
<dt>arbiter:</dt>
|
<dt>arbiter:</dt>
|
||||||
<dd>The arbiter you want to use. An arbiter maintain the workers processes alive. It launches or kills them if needed. It also manages application reloading via SIGHUP/USR2. By default it's <cite>egg:gunicorn#main</cite>. This arbiter only support fast clients connections. If you need to create a sleepy application or handling keepalive set it to <cite>egg:gunicorn#eventlet</cite> to use it with <a class="reference external" href="http://eventlet.net">Eventlet</a> or <cite>egg:gunicorn#gevent</cite> with <a class="reference external" href="http://gevent.org">Gevent</a>. Eventlet arbiter can also be used with <a class="reference external" href="http://twistedmatrix.com">Twisted</a> by using <a class="reference external" href="http://bitbucket.org/which_linden/eventlet/src/tip/README.twisted">Eventlet helper</a>.</dd>
|
<dd>The arbiter you want to use. An arbiter maintain the workers processes alive. It launches or kills them if needed. It also manages application reloading via SIGHUP/USR2. By default it's <cite>egg:gunicorn#main</cite>. This arbiter only support fast clients connections. If you need to create a sleepy application or handling keepalive set it to <cite>egg:gunicorn#eventlet</cite> to use it with <a class="reference external" href="http://eventlet.net">Eventlet</a> or <cite>egg:gunicorn#gevent</cite> with <a class="reference external" href="http://gevent.org">Gevent</a>. Eventlet arbiter can also be used with <a class="reference external" href="http://twistedmatrix.com">Twisted</a> by using its <a class="reference external" href="http://bitbucket.org/which_linden/eventlet/src/tip/README.twisted">helper</a>.</dd>
|
||||||
<dt>backlog:</dt>
|
<dt>backlog:</dt>
|
||||||
<dd>The backlog parameter defines the maximum length for the queue of pending connections see listen(2) for more information. The default is 2048.</dd>
|
<dd>The backlog parameter defines the maximum length for the queue of pending connections see listen(2) for more information. The default is 2048.</dd>
|
||||||
<dt>before_fork(server, worker):</dt>
|
<dt>before_fork(server, worker):</dt>
|
||||||
|
|||||||
@ -49,7 +49,7 @@ If you've cloned the git repository, its highly recommended that you use the ``d
|
|||||||
|
|
||||||
$ python setup.py develop
|
$ python setup.py develop
|
||||||
|
|
||||||
Installing requirements for sleepy application handling
|
Installation requirements for sleepy application handling
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
|
||||||
If you want to handle `sleepy application <faq.html>`_ you will need to install `Eventlet`_ or `Gevent`_.
|
If you want to handle `sleepy application <faq.html>`_ you will need to install `Eventlet`_ or `Gevent`_.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user