119 Commits

Author SHA1 Message Date
Randall Leeds
63967597a0 Fix mixed up worker signal handling
Commit 81241907ffcf94517ffa14b8427205906b61b540 changed the signal
handling by switching the roles of `TERM` and `QUIT` for the arbiter
so that `TERM` is graceful and `QUIT` is not.

At the time, workers performed graceful shutdown on `QUIT` and quick
shutdown on `TERM` and `INT`. This behavior was also changed so that
`QUIT` (and `INT`) cause a quick shutdown and `TERM` is graceful.

However, the documentation incorrectly reversed the roles of the worker
signals and the arbiter was not updated to use the correct signals.

This commit fixes the documentation and the arbiter signals.
2014-05-13 11:12:01 -07:00
Randall Leeds
fd22ea24ae Merge pull request #727 from benoitc/feature/651
PR that rebase #651. Should also fix #625.

Add the capability to load gunicorn.base.Application without the
loading of the arguments of the command line.
2014-05-07 14:53:29 -07:00
Stéphane Wirtel
33d35a1a66 Work In Progress: Move the custom application section to a specific file and add it into the TOC 2014-04-30 11:41:18 +02:00
Stéphane Wirtel
a44807f9f5 Add an example of a standalone app 2014-04-22 21:48:57 +02:00
Benoit Chesneau
3bf6d0e770 Merge pull request #719 from bobzilladev/access-timing
Fix microseconds logging, add decimal seconds.
2014-04-13 09:53:25 +02:00
Sébastien Fievet
ce3f9e18bb Typo 2014-04-01 11:18:03 +02:00
Randall Leeds
a279d69550 Export logo svg as plain svg 2014-03-31 11:14:45 -07:00
Bob Hagemann
5361fff766 Fix microseconds logging, add decimal seconds.
Apache will log %D microseconds over 1 million for requests that take over a second, this change sync's that access log behavior since the formatting seems to be based on that. So a request that takes 1 second and 30 milliseconds will have 1000030 for this atom.

This pull request  also adds a %L atom for decimal seconds for a quick human-readable latency number. In the above example it would output 1.000030 to the log.
2014-03-27 11:33:16 -07:00
benoitc
1e8b375038 fix doc and make sure we get the --paste option 2014-03-09 07:28:46 -07:00
Randall Leeds
b35e368515 Remove references to deprecated console scripts 2014-03-08 18:21:36 -08:00
Randall Leeds
e5442332fe Support running specific paster apps from .ini
Close #400
2014-03-08 18:16:03 -08:00
benoitc
2edb2089ba update doc for django and paster integration
gunicorn_django and gunicorn_paster commands are now deprecated so
remove them from the doc. While I am here, update the integration doc.
2014-03-08 17:46:08 -08:00
benoitc
81241907ff switch QUIT and TERM signal
With this change, when gunicorn receives a QUIT all the workers are
killed immediately and exit and TERM is used for the graceful shutdown.

Note: the old behaviour was based on the NGINX but the new one is more
correct according the following doc:

https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

also it is complying with the way the signals are sent by heroku:

https://devcenter.heroku.com/articles/python-faq#what-constraints-exist-when-developing-applications-on-heroku
2014-03-08 17:14:06 -08:00
Kirill Zaborsky
9ce722e638 gafferp renamed to gaffer 2014-02-21 17:14:31 +03:00
W. Trevor King
2277901a72 Deprecate the --debug setting
"Limits the number of worker processes to 1" hasn't been true since
06a4dc6 (fix one error in gunicorn_paster, global conf was ignored,
2010-06-22), although it was true when the line was added in 3c7d532
(Large refactor of the documentation and website, 2010-05-22).

"changes some error handling that's sent to clients" hasn't been true
since feb86d3 (don't display the traceback in the HTTP response,
2013-09-27).

The only remaining actions that --debug had were disabling --preload
and hiding debug-level config logging.  The former seems useless (just
disable --preload directly) and the latter at doesn't seem useful
enough for a new setting (just turn down --log-level).  With this
commit, --preload always works and you always get debug-level config
logging.

I left a stub Debug entry in gunicorn.config, which we can leave in
place while folks convert any gunicorn scripts and configurations to
drop --debug.  When the time comes, we can just remove that entry.  I
also the boolean-config tests to use --preload, since that will still
be around after we remove the dummy Debug entry.

Fixes #700.
2014-02-13 12:40:41 -08:00
Rik
80198278ce Update settings.rst
Gevent version should be 0.13 at least, since Gunicorn needs the gevent.server support (also see: http://blog.gevent.org/2010/07/14/gevent-0-13-0-released/)
2014-02-04 10:11:16 +01:00
Randall Leeds
0226b2cd1f Clarify secure scheme header warning in deploy doc
Gunicorn doesn't restrict the X-Forwarded-For header, only the
scheme header.
2014-02-04 00:26:03 -08:00
Randall Leeds
f375f929de Regenerate settings.rst 2014-01-30 16:50:08 -08:00
Randall Leeds
5d13659f0e Documentation formatting 2014-01-30 16:49:47 -08:00
Randall Leeds
1f7d3429c2 Add documentation for nginx X-Forwarded-*
Fix #571
2014-01-30 16:30:58 -08:00
Malthe Borch
764d9d439a Also include access log in the syslog handler. 2014-01-24 17:41:05 +00:00
Randall Leeds
6ed6b1399e docs typo -- fix #678 2014-01-14 13:53:15 -08:00
George Notaras
64f555eb7e Improved the documentation that is packaged in the RPM.
Until now, only the documentation in source form was packaged.
This changeset improves the RPM generator so that the compiled HTML
version of the documentation is packaged. Also, other informative
documents (README, LICENSE, NOTICE, THANKS) and an example server
configuration file have been included.

Finally, the Sphinx documentation's conf.py has been improved so
that it is easier to compile the docs using the default theme.
2014-01-13 03:23:38 +02:00
Stéphane Wirtel
b9d4afb7bd Add an example for the gunicorn.app.base.BaseApplication 2014-01-01 20:35:05 +01:00
benoitc
26a2e104cf fix typo 2013-12-26 13:54:35 +01:00
benoitc
f7d9979d5b fix doc for rtd 2013-12-26 13:42:17 +01:00
benoitc
77a30d3671 ease the doc. test with the default rtd theme 2013-12-26 13:19:36 +01:00
Matt Behrens
a906910a08 make banner h1 text easier to read 2013-12-12 15:00:45 -08:00
benoitc
2a09c916a7 improve systemd conf 2013-12-11 09:50:24 +01:00
benoitc
047ef65afc fix doc
fix #656
2013-12-11 09:33:01 +01:00
Alasdair Nicol
a01d143aae Use lowercase 'true' in example config to be consistent 2013-12-02 00:08:26 +00:00
benoitc
2aa66555f8 Revert "Update configure.rst"
This reverts commit 3b843fd942cdb2e5623887073d1acb0d759066c8.

I was tired, we should either remove the that and then the  is or keep
a is or... But this latest commit was changing the meaning.
2013-11-19 08:42:12 +01:00
Mieszko
3b843fd942 Update configure.rst 2013-11-15 12:24:46 +01:00
benoitc
5ff75b194c regenerate settings 2013-09-26 22:50:16 +02:00
Stephen DiCato
79ed7851ae Fix a single typo. 2013-09-13 15:08:21 -04:00
benoitc
24fe380982 typos 2013-08-28 00:40:48 +02:00
benoitc
d3b1687e03 update the changes 2013-08-28 00:31:27 +02:00
benoitc
ded4df3ed5 we support python 3 since a while 2013-08-19 10:38:10 +02:00
Randall Leeds
90fb09f618 Don't reload the paster app when run with pserve
Using gunicorn with paster command line causes the application to
load before gunicorn. In this case, there is no choice but to preload
the application. Document this fact.

Fixes #528.
2013-08-06 03:29:58 -07:00
Randall Leeds
0c34c4213b typo 2013-08-05 22:04:53 -07:00
Randall Leeds
ec2ee0b127 Support for python config file option in paster
It is now possible to specify a file with "config" as an application
configuration key in a paste deploy configuration file. This allows
paster applications to use the full range of gunicorn settings even
when using paste/pserve rather than gunicorn_paster.

Fixes #540.
2013-08-05 22:04:43 -07:00
benoitc
546c2e71fd add a verssionninbg not to the doc as well. 2013-07-10 08:14:07 +02:00
benoitc
2a8dd83d13 link 17.5 change to latest#1
Due to an error of my part the changelog  in the odocumentation isn't
available for the 17.5 tag. So for now link it to the latest update.
2013-07-10 08:11:45 +02:00
benoitc
3c0ea0cad1 addd 17.5 changelog to main news page
forgot to update this page.

fix #566
2013-07-10 08:09:00 +02:00
benoitc
3895c360be wit for read the doc update 2013-07-03 12:54:30 +02:00
benoitc
cff300f0e3 R17.5 -> 17.5 2013-07-03 12:20:43 +02:00
benoitc
b21ddb20d5 point to R17.5 changes 2013-07-03 11:02:57 +02:00
Randall Leeds
1b96a9b853 Merge pull request #546 from jet-sun/patch-1
Update install.rst for Debian wheezy release
2013-07-03 01:34:27 -07:00
benoitc
9c0d1a0cad add R17.5 changelog 2013-07-03 09:59:18 +02:00
benoitc
bb79cdcc36 quick note about preloaded applications 2013-06-29 06:49:32 +02:00