From a28c484d5d74f2508758044508735500f5afc877 Mon Sep 17 00:00:00 2001
From: "Paul J. Davis"
The path to a Gunicorn config file.
Only has an effect when specified on the command line or as part of an @@ -129,8 +129,8 @@ application specific configuration.
The socket to bind.
A string of the form: 'HOST', 'HOST:PORT', 'unix:PATH'. An IP is a valid @@ -139,8 +139,8 @@ HOST.
The maximum number of pending connections.
This refers to the number of clients that can be waiting to be served. @@ -155,8 +155,8 @@ load.
The number of worker process for handling requests.
A positive integer generally in the 2-4 x $(NUM_CORES) range. You'll @@ -166,30 +166,30 @@ application's work load.
The type of workers to use.
The default class (sync) should handle most 'normal' types of workloads. -You'll want to read http://gunicorn.org/design.hml for information on +You'll want to read http://gunicorn.org/design.html for information on when you might want to choose one of the other worker classes.
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
+gevent class: egg:gunicorn#geventThe maximum number of simultaneous clients.
This setting only affects the Eventlet and Gevent worker types.
@@ -197,8 +197,8 @@ gevent class: egg:gunicorn#geventThe maximum number of requests a worker will process before restarting.
Any value greater than zero will limit the number of requests a work @@ -210,8 +210,8 @@ restarts are disabled.
Workers silent for more than this many seconds are killed and restarted.
Generally set to thirty seconds. Only set this noticeably higher if @@ -222,8 +222,8 @@ is not tied to the length of time required to handle a single request.
The number of seconds to wait for requests on a Keep-Alive connection.
Generally set in the 1-5 seconds range.
@@ -235,7 +235,7 @@ is not tied to the length of time required to handle a single request.Turn on debugging in the server.
This limits the number of worker processes to 1 and changes some error @@ -245,7 +245,7 @@ handling that's sent to clients.
Install a trace function that spews every line executed by the server.
This is the nuclear option.
@@ -257,7 +257,7 @@ handling that's sent to clients.Load application code before the worker processes are forked.
By preloading an application you can save some RAM resources as well as @@ -269,7 +269,7 @@ restarting workers.
Daemonize the Gunicorn process.
Detaches the server from the controlling terminal and enters the @@ -278,8 +278,8 @@ background.
A filename to use for the PID file.
If not set, no PID file will be written.
@@ -287,8 +287,8 @@ background.Switch worker processes to run as this user.
A valid user id (as an integer) or the name of a user that can be @@ -298,8 +298,8 @@ the worker process user.
Switch worker process to run as this group.
A valid group id (as an integer) or the name of a user that can be @@ -309,8 +309,8 @@ the worker processes group.
A bit mask for the file mode on files written by Gunicorn.
Note that this affects unix socket permissions.
@@ -321,7 +321,7 @@ int(value, 0) (0 means Python guesses the base, so values like "0",Directory to store temporary request data as they are read.
This may disappear in the near future.
@@ -335,8 +335,8 @@ temporary directory.The log file to write to.
"-" means log to stdout.
@@ -344,8 +344,8 @@ temporary directory.The granularity of log outputs.
Valid level names are:
@@ -363,11 +363,11 @@ temporary directory.A base to use with setproctitle for process naming.
-This affects things like ps and top. If you're going to be +
This affects things like ps and top. If you're going to be running more than one instance of Gunicorn you'll probably want to set a name to tell them apart. This requires that you install the setproctitle module.
@@ -376,7 +376,7 @@ module.Internal setting that is adjusted for each type of application.