diff --git a/doc/htdocs/configure.html b/doc/htdocs/configure.html index 0dc2a6dd..ff8e8b30 100644 --- a/doc/htdocs/configure.html +++ b/doc/htdocs/configure.html @@ -23,6 +23,7 @@
  • FAQ
  • News
  • Code
  • +
  • Issues
  • @@ -166,22 +167,23 @@ application's work load.

    worker_class

    The type of workers to use.

    -

    The default sync class should handle most 'normal' types of work loads. -You'll want to read http://gunicorn.org/design.html for information on +

    The default class (sync) should handle most 'normal' types of workloads. +You'll want to read http://gunicorn.org/design.hml for information on when you might want to choose one of the other worker classes.

    -

    An string referring to a 'gunicorn.workers' entry point or a -MODULE:CLASS pair where CLASS is a subclass of -gunicorn.workers.base.Worker.

    -

    The default provided values are:

    +

    A string referring to one of the following bundled classes:

    +

    Optionally, you can provide your own worker by giving gunicorn a +MODULE:CLASS pair where CLASS is a subclass of +gunicorn.workers.base.Worker. This alternative syntax will load the +gevent class: egg:gunicorn#gevent

    worker_connections

    @@ -192,6 +194,19 @@ gunicorn.workers.base.Worker.

    The maximum number of simultaneous clients.

    This setting only affects the Eventlet and Gevent worker types.

    +
    +

    max_requests

    + +

    The maximum number of requests a worker will process before restarting.

    +

    Any value greater than zero will limit the number of requests a work +will process before automatically restarting. This is a simple method +to help limit the damage of memory leaks.

    +

    If this is set to zero (the default) then the automatic worker +restarts are disabled.

    +

    timeout

    Server Hooks

    +
    +

    when_ready

    + +

    Called just after the server is started.

    +

    The callable needs to accept a single instance variable for the Arbiter.

    +

    pre_fork

    -
    -

    when_ready

    - -

    Called just after the server is started.

    -

    The callable needs to accept a single instance variable for the Arbiter.

    -

    pre_exec

    Called just before a new master process is forked.

    The callable needs to accept a single instance variable for the Arbiter.

    +
    +

    pre_request

    + +

    Called just before a worker processes the request.

    +

    The callable needs to accept two instance variables for the Worker and +the Request.

    +
    +
    +

    post_request

    + +

    Called after a worker processes the request.

    +

    The callable needs to accept two instance variables for the Worker and +the Request.

    +
    +
    +

    worker_exit

    + +

    Called just after a worker has been exited.

    +

    The callable needs to accept two instance variables for the Arbiter and +the just-exited Worker.

    +
    @@ -447,40 +501,44 @@ def def_pre_exec(server):
  • workers
  • worker_class
  • worker_connections
  • -
  • timeout
  • -
  • keepalive
  • +
  • max_requests
  • +
  • timeout
  • +
  • keepalive
  • -
  • Debugging
  • FAQ
  • News
  • Code
  • +
  • Issues
  • diff --git a/doc/htdocs/news.html b/doc/htdocs/news.html index ea673a32..01386873 100644 --- a/doc/htdocs/news.html +++ b/doc/htdocs/news.html @@ -23,6 +23,7 @@
  • FAQ
  • News
  • Code
  • +
  • Issues
  • diff --git a/doc/htdocs/run.html b/doc/htdocs/run.html index 4ff9b735..5a2401d7 100644 --- a/doc/htdocs/run.html +++ b/doc/htdocs/run.html @@ -23,6 +23,7 @@
  • FAQ
  • News
  • Code
  • +
  • Issues
  • diff --git a/doc/templates/base.html b/doc/templates/base.html index 74c88957..c6528ed6 100644 --- a/doc/templates/base.html +++ b/doc/templates/base.html @@ -23,6 +23,7 @@
  • FAQ
  • News
  • Code
  • +
  • Issues