Randall Leeds
b492ee92e1
Merge pull request #756 from berkerpeksag/fix-markup-log-format-doc
...
Fix markup of the access_log_format documentation.
2014-05-17 16:44:30 -07:00
Randall Leeds
413aa155b5
Merge pull request #755 from berkerpeksag/fix-typos
...
Fix a couple of typos.
2014-05-17 16:42:50 -07:00
Berker Peksag
39dbe983c3
Fix markup of the access_log_format documentation.
2014-05-18 02:02:33 +03:00
Berker Peksag
f5f5461ab8
Fix a couple of typos.
2014-05-18 01:30:36 +03:00
Benoit Chesneau
bab40df767
Merge pull request #754 from berkerpeksag/sysconf-outdated-info
...
Remove an outdated paragraph about getting CPU information.
2014-05-18 00:06:37 +02:00
Benoit Chesneau
a14a73a452
Merge pull request #753 from berkerpeksag/improve-installation-docs
...
Update installation docs to mention about pip.
2014-05-18 00:06:08 +02:00
Berker Peksag
dcaf2d7f9b
Remove an outdated paragraph about getting CPU information.
...
Python 2.5 or older versions are not supported by Gunicorn.
Also, fixed a typo: mentionned -> mentioned
2014-05-18 01:01:35 +03:00
Randall Leeds
bb73468b4c
Merge pull request #752 from berkerpeksag/cleanup-makefile
...
Cleanup Makefile.
2014-05-17 14:35:29 -07:00
Berker Peksag
109880a8c3
Update installation docs to mention about pip.
...
Other changes:
- Minor markup and style changes
- Use https in URLs
- Remove the "python setup.py develop" part from the
documentation. It's useful for development.
2014-05-17 23:55:41 +03:00
Berker Peksag
be90882151
Cleanup Makefile.
...
- The "--no-site-packages" option is default now
- "pip install -e" is basically equivalent to "python setup.py develop"
- Delete also dist/ and MANIFEST
- Delete all *.py[co] files (and __pycache__ directories on Python 3)
2014-05-16 20:12:49 +03:00
benoitc
81810d9f04
reuse the code
2014-05-15 08:03:06 +02:00
Randall Leeds
2583f58442
Merge pull request #750 from berkerpeksag/startswith-idiom
...
Remove the redundant if clause in gunicorn/workers/workertmp.py.
2014-05-14 15:45:16 -07:00
Randall Leeds
f4af998f92
Merge pull request #749 from berkerpeksag/remove-with_statement
...
Remove __future__.with_statement imports.
2014-05-14 15:35:56 -07:00
Randall Leeds
906c3fd047
Merge pull request #751 from berkerpeksag/classifiers-python3.4
...
Add Python 3.4 to classifiers.
2014-05-14 15:34:15 -07:00
Berker Peksag
08ec1b2c70
Also, enable Python 3.4 on Travis CI.
...
(The "--use-mirrors" option was deprecated, so I removed it.)
2014-05-15 01:19:49 +03:00
Berker Peksag
9f8f37d07d
Add Python 3.4 to classifiers.
...
I tested Gunicorn with the following command on Pytohn 3.4.0:
$ python3.4 -m venv venv34
$ . venv34/bin/activate
$ pip install -e .
$ pip install -r requirements_dev.txt
$ py.test tests/
2014-05-15 01:16:38 +03:00
Berker Peksag
2f932664fd
Remove the redundant if clause in gunicorn/workers/workertmp.py.
2014-05-15 00:53:47 +03:00
Berker Peksag
829e8d32d4
Remove __future__.with_statement imports.
...
Gunicorn requires Python 2.6 or newer now:
http://docs.gunicorn.org/en/latest/install.html#requirements
2014-05-15 00:34:02 +03:00
Randall Leeds
b9d291e692
Merge pull request #745 from tilgovi/worker-signals-mixup
...
Fix mixed up worker signal handling
2014-05-14 12:18:37 -07:00
WooParadog
d29b937c08
Stop all servers
2014-05-14 19:52:48 +02:00
Yue Du
f1fc2710f8
Remove unused imports
2014-05-14 19:52:48 +02:00
Nick Pillitteri
07a7e5b9e5
Move setting of environmental variables before preload_app start.
...
Move setting of env vars from Arbiter.start to Arbiter.setup so that they are available during application start up when 'preload_app' is used.
Closes #735
2014-05-14 19:52:48 +02:00
Yue Du
e6b696b6f0
Fix: logger_class can be undefined.
2014-05-14 19:52:48 +02:00
Benoit Chesneau
63451aabe9
Merge pull request #747 from wooparadog/stop-all-servers
...
Stop all servers
2014-05-14 12:07:17 +02:00
WooParadog
9eb589576d
Stop all servers
2014-05-14 17:45:30 +08:00
Randall Leeds
428f40a4ac
Merge pull request #746 from ifduyue/remove_unused_imports
...
Remove unused imports
2014-05-14 00:41:44 -07:00
Yue Du
cb817dfa98
Remove unused imports
2014-05-14 14:08:18 +08:00
Randall Leeds
d9c15dcde5
Merge pull request #740 from tshlabs/735-envvars-preload
...
Move setting of environmental variables (configured via the raw_env sett...
2014-05-13 15:17:10 -07:00
Nick Pillitteri
9c1b46f998
Move setting of environmental variables before preload_app start.
...
Move setting of env vars from Arbiter.start to Arbiter.setup so that they are available during application start up when 'preload_app' is used.
Closes #735
2014-05-13 15:46:06 -04:00
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
Benoit Chesneau
fc9290e121
Merge pull request #741 from ifduyue/logger_class_bug
...
Fix: logger_class can be undefined.
2014-05-13 17:08:15 +02:00
benoitc
14f71ebf39
compatibility with python 2
...
Add support of the threaded worker on python 2.7. python 2.7 has no
futures module. With this change the compatibility module is installed.
2014-05-13 15:18:43 +02:00
benoitc
67800292e0
fix kqueue poller.
...
this change initialise the event loop after the process has forked so we
make sure to inherit from the file descriptor.
Also fix the number of events we are waiting for. The python
implementation requires a positive number.
2014-05-13 13:57:34 +02:00
benoitc
eadc526192
fix PollPoller
2014-05-13 13:21:14 +02:00
benoitc
6aa99e4441
fix keepalive
2014-05-13 12:30:57 +02:00
benoitc
c353eaacee
fix ThreadWorker
2014-05-13 10:29:26 +02:00
benoitc
c8f6269f29
fix the fdevents module
2014-05-13 10:27:49 +02:00
benoitc
67866f275f
add missing gthreads worker
2014-05-13 10:21:48 +02:00
Yue Du
9e0d04b562
Fix: logger_class can be undefined.
2014-05-13 14:06:36 +08:00
Alexis Lê-Quôc
d2610dc483
Cosmetic cleanup
2014-05-12 18:31:37 +02:00
Alexis Le-Quoc
ae98413272
More in-depth documentation of the new instrumentation layer
2014-05-12 18:26:51 +02:00
Alexis Le-Quoc
8a3a3fcfa3
Merge branch 'master' of https://github.com/benoitc/gunicorn into statsd-logger
2014-05-12 17:51:02 +02:00
Randall Leeds
b8583a6141
Merge pull request #739 from ifduyue/ifduyue/remove_obsolete_func_sorter
...
Remove obsolete function sorter
2014-05-11 15:34:49 -07:00
Alexis Le-Quoc
af06c54e5b
Drop tracing and sampling to keep the code tight
2014-05-09 23:44:47 -04:00
Alexis Le-Quoc
d21692456b
Tested with mainline statsd
2014-05-09 23:19:22 -04:00
Alexis Le-Quoc
9b5d28767c
Sanitize arguments to not trick regular loggers
2014-05-09 21:31:41 -04:00
Yue Du
288a7b6427
Remove obsolete function sorter
2014-05-09 18:11:02 +08:00
Randall Leeds
20ed91497c
Do not swallow unexpected errors when reaping
...
I can't imagine this wasn't what was intended here. Might be a merge
artifact but I can't trace it.
Thanks to Antti Kaihola (@akaihola) for spotting this.
Close #733
2014-05-07 20:38:15 -07:00
Alexis Le-Quoc
35c7147419
Metrics sent on request and arbiter
2014-05-07 19:11:55 -04: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