1791 Commits

Author SHA1 Message Date
benoitc
bcb3c003d4 doc: let django user know about the DJANGO_SETTINGS_MODULE env
improve the documentation to show the usage of the DJANGO_SETTINGS_MODULE
environment variable. related to #802.
2014-07-26 10:28:48 +02:00
benoitc
43b8687ceb fix django ex 2014-07-26 10:24:26 +02:00
Stéphane Wirtel
2e8db50989 We need at least one argument for the WSGIApplication fix #815 2014-07-25 10:25:56 +02:00
Andrew Svetlov
4b1cbe6a37 Merge pull request #823 from benoitc/gaiohttp_unixsock
Support UNIX sockets in gaiohttp worker
2014-07-24 09:03:10 +03:00
Andrew Svetlov
2b2725dddb Support UNIX sockets in gaiohttp worker 2014-07-23 07:33:18 +03:00
Benoit Chesneau
1584023731 Merge pull request #817 from benoitc/816-gthread-keepalive-pop
Fix major issue with threaded worker keepalive
2014-07-13 06:25:26 +02:00
Randall Leeds
ec62d487f7 Fix major issue with threaded worker keepalive
The keepalive queue management is fixed to not pop extra connections
incorrectly.

Close #816
2014-07-12 12:46:22 -07:00
Benoit Chesneau
f310b04f48 Merge pull request #813 from methane/patch-1
Use pip instead of easy_install
2014-07-03 22:09:24 +02:00
INADA Naoki
3e05a9d7f8 Use pip instead of easy_install 2014-07-04 00:59:20 +09:00
benoitc
ce1b29f66b link tickets in the changelog 2014-06-28 18:08:49 +02:00
benoitc
3796d3efde fix typo 2014-06-28 18:05:45 +02:00
benoitc
75bf409d8f fix headers in news 2014-06-28 18:02:23 +02:00
benoitc
403acab3b1 update changelog 2014-06-28 17:59:34 +02:00
benoitc
46afb979e2 Revert "swicth confing load order"
This reverts commit b5aab16bf590cacff1825410d9cfaea925de5b24.

Change was broken. If we simply switch there, the error when loading the
config will not be reported correctly. We should find a better way.
2014-06-28 17:06:18 +02:00
benoitc
b5aab16bf5 swicth confing load order
fix #800
2014-06-28 16:54:51 +02:00
Benoit Chesneau
ceda9c597c Merge pull request #748 from alq666/statsd-logger
gunicorn instrumentation via statsD and a new logger class
2014-06-28 16:45:54 +02:00
Benoit Chesneau
b2d2ff737e Merge pull request #807 from berkerpeksag/fix-runtimeerror
Fix RuntimeError in gunicorn.reloader.
2014-06-28 16:44:44 +02:00
benoitc
aacfba1aed fetch all input body in gaiohttp to work w/ non asyncio wsgi apps
I took the suggestion of @asvetlov. This change load first all the body
in RAM in the gaiohttp worker to handle classic WSGI application. This
is a temporary fix, it should be replaced asap by a streaming behaviour.
It does the trick anyway for most application since you're not supposed
to handle large body directly with gunicorn.

fix #803
2014-06-28 16:38:01 +02:00
Berker Peksag
da5e847b63 Fix RuntimeError in gunicorn.reloader.
Here's the reproducer in Python 3.3:

    $ gunicorn --paste paste.ini --reload

Then I got the following exception:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.3/threading.py", line 901, in _bootstrap_inner
    self.run()
  File "/home/berker/hacking/mediagoblin/venv3/lib/python3.3/site-packages/gunicorn/reloader.py", line 41, in run
    for filename in self.get_files():
  File "/home/berker/hacking/mediagoblin/venv3/lib/python3.3/site-packages/gunicorn/reloader.py", line 29, in get_files
    for module in sys.modules.values()
  File "/home/berker/hacking/mediagoblin/venv3/lib/python3.3/site-packages/gunicorn/reloader.py", line 28, in <listcomp>
    re.sub('py[co]$', 'py', module.__file__)
RuntimeError: dictionary changed size during iteration
2014-06-28 07:03:31 +03:00
Benoit Chesneau
feae663092 typos in faq.rst 2014-06-27 10:28:03 +02:00
Benoit Chesneau
3b79f161f7 Update faq.rst
tell there is a wip about the thundering herd problem. Also put a not on how watch logs in the console since many people asked for it.
2014-06-27 10:26:01 +02:00
Randall Leeds
7b7f3e6c0b Merge pull request #806 from benoitc/805-bug-is-fileobj
Fix check for file-like objects
2014-06-26 13:19:48 -07:00
Paul J. Davis
fc364cca7d Fix check for file-like objects
The `is_fileobject()` function in utils.py would break when the respones
was a wrapped `HTTPResponse`'s `raw` attribute. This just adds the
`IOError` exception type to the `is_fileobject()` function so that the
response can be streamed normally.

Fixes #805
2014-06-26 14:31:40 -05:00
Andrew Svetlov
0be33fe99b Merge pull request #801 from benoitc/gaiohttp_setup
Don't install gaiohttp if python < 3.3
2014-06-23 21:10:24 +03:00
Andrew Svetlov
86f740420c Don't install gaiohttp if python < 3.3 2014-06-22 15:19:27 +03:00
Alexis Lê-Quôc
7f33e36ce0 Update instructions to log arbitrary metrics 2014-06-21 22:01:30 -04:00
Benoit Chesneau
d3832df37d Merge pull request #799 from graingert/patch-3
#799 Support loading config from module

Thanks!
2014-06-20 11:54:16 +02:00
Thomas Grainger
2bde8eb103 Support loading config from module 2014-06-20 09:20:37 +01:00
Alexis Le-Quoc
3b63a6418b Documentation reflect new option name 2014-06-18 23:58:59 -04:00
Alexis Le-Quoc
3c9b9e3218 Change --statsd-to to --statsd-host 2014-06-18 21:50:50 -04:00
Alexis Le-Quoc
964c06a25e Merge branch 'statsd-logger' of github.com:alq666/gunicorn into statsd-logger 2014-06-18 21:36:46 -04:00
Alexis Le-Quoc
05051aa8b2 Simpler statsd integration
No need to specify a logger class.
--statsd-to is enough to trigger the Statsd logger automatically
2014-06-18 21:33:04 -04:00
Alexis Le-Quoc
c3421a833d Merge branch 'master' of https://github.com/benoitc/gunicorn into statsd-logger 2014-06-18 11:23:36 -04:00
Alexis Le-Quoc
80b10182ee Merge branch 'master' of https://github.com/benoitc/gunicorn into statsd-logger 2014-06-16 23:05:38 -04:00
Benoit Chesneau
42c16b17d1 Merge pull request #789 from benoitc/fix/787
fix #787 check if we load a pyc file or not.
2014-06-16 21:53:44 +02:00
Stéphane Wirtel
944e224d36 Fix typo in the examples 2014-06-16 17:51:34 +02:00
Andrew Svetlov
6a06d8ef93 Merge pull request #795 from berkerpeksag/fix-news-markup
Fix a markup error in news.rst.
2014-06-16 14:55:13 +03:00
Berker Peksag
83d97c25ca Fix a markup error in news.rst.
This commit also silences a couple of Sphinx warnings e.g.

    WARNING: Bullet list ends without a blank line;
    unexpected unindent.
2014-06-16 14:01:43 +03:00
Berker Peksag
787b4e4c95 Merge pull request #794 from rhyspowell/patch-1
Fixed spelling mistake
2014-06-16 10:16:31 +03:00
Rhys Powell
c8b4f00266 Fixed spelling mistake
fixed spelling in TTOU description
2014-06-16 07:57:07 +01:00
benoitc
f41f86c3da StopIteration shouldn't be catched at this level.
fix #790
2014-06-14 21:46:35 +02:00
benoitc
68cd2b92c8 Revert "check the python requirements for the gaiohttp server"
This reverts commit 4ac7e55161553503817dfbd01ccc5f263d163e69.
2014-06-14 12:05:00 +02:00
benoitc
4ac7e55161 check the python requirements for the gaiohttp server
fix #788
2014-06-14 11:59:32 +02:00
benoitc
f3824a0685 this example shouldn't have been comitted. 2014-06-14 10:16:04 +02:00
benoitc
31f465d271 fix #787 check if we load a pyc file or not. 2014-06-14 10:09:45 +02:00
benoitc
1a3ab6490d fix #783 : link to the corresponding discussion in the changelog 2014-06-14 07:34:24 +02:00
benoitc
94ee1de00c update news 2014-06-14 07:13:05 +02:00
benoitc
7b902a2378 fix #783 fix tornado worker with missing option
Gunicorn doesn't ovveride the WSGI headers with the X heaaders anymore.
2014-06-14 07:02:40 +02:00
Randall Leeds
18355eff30 Add thundering herd question to FAQ
Close #784
2014-06-13 18:28:05 -07:00
Randall Leeds
412840215f Add multithread information to the design docs
Relates to #784
2014-06-13 18:28:05 -07:00