Paul J. Davis
2c5f221d1a
Fix KeyError if builtins isn't touched.
2010-04-26 13:29:23 -04:00
benoitc
9409839668
fix paster usage
2010-04-22 21:45:39 +02:00
benoitc
8184eb493c
add refactor gevent support like we did on eventlet. In the future it
...
may be better to use Event object. While i'm here move the monkey
patching in its own function used on config so we make sure to patch
only one time and prevent some ugly hack like reinit gevent each time we
spawn (it's better to use patched os.fork from gevent once time).
2010-04-22 14:38:49 +02:00
Paul J. Davis
4fe8608196
Slight touches to the Config class.
2010-04-15 21:18:09 -04:00
Paul J. Davis
51f1f22665
Refactoring worker code.
...
Also went through gunicorn.main lightly.
2010-04-15 20:08:28 -04:00
benoitc
3a2e3edb3e
add possibility to trace all events of gunicorn. Run gunicorn --spew .
2010-04-14 19:49:26 +02:00
benoitc
2e1718b188
use globals in config
2010-04-11 17:53:38 +02:00
benoitc
451647d5ad
remove arbiter import from main
2010-03-17 00:32:02 +01:00
benoitc
0781caadab
merge grainbows & gunicorn
2010-03-17 00:18:16 +01:00
benoitc
23927f39b1
allows custom arbiter
2010-03-16 22:12:26 +01:00
benoitc
f75a413773
some fixes to config and pidfile
2010-03-11 13:53:10 +01:00
benoitc
5f59192193
allow custom default config file name for use with grainbows.
2010-03-11 12:01:47 +01:00
benoitc
68d1542c20
timeout and backlog can now be configured in config file. we should put
...
more options. Also the default of backlog could be 1024 instead of 2048.
2010-03-03 16:03:23 +01:00
benoitc
d33c5b6c86
fix issue #25 .
2010-03-01 16:28:37 +01:00
benoitc
5f11fd024b
remove the worker id. just use pid as ref.
2010-03-01 09:11:39 +01:00
Paul J. Davis
8b38298114
Update the log formatting.
...
Different date format to remove sub-second timing.
Added process id's to all log messages.
Updated various log messages.
2010-02-27 01:16:57 -05:00
benoitc
6c48e91904
allow config file to set proc_name. spotted by @jbergstroem on irc.
...
thanks!
2010-02-24 14:20:28 +01:00
benoitc
85c773098c
s/app_name/proc_name. Update faq to say that you can set the
...
process_name in conf.
2010-02-22 19:15:48 +01:00
benoitc
5afec8d726
add setproctitle support. -n allow to customize the name. by default
...
it's the arg passed to command line for wsgi app, module.settings for
djang and ini file path for paster
2010-02-22 16:29:35 +01:00
benoitc
6c12f313e3
on irc jbergstroem noticed that gunicorn behavior is different than
...
nginx one in the way it manages processes uid/gid. Only nginx workers
get uid/gid and master if launch as root stay root. This patch give ti
gunicorn the same behavior.
2010-02-22 14:20:06 +01:00
benoitc
71a9a1efeb
convert umask in one place
2010-02-21 16:43:19 +01:00
benoitc
6bddc03db6
default umask
2010-02-21 13:58:26 +01:00
Benoit Chesneau
85b12af1ca
make sur app can override options if needed. While I'm here clean a
...
little the code
2010-02-17 10:59:33 +01:00
Benoit Chesneau
51a58e58c5
make sure address is a bytestring. While I'm here fix django
...
run_gunicorn command to use Config and set logger
2010-02-17 09:42:32 +01:00
Benoit Chesneau
95f6ce5618
remove useless print and revert last commit
2010-02-16 15:43:41 +01:00
Benoit Chesneau
87336be46b
remove unused import/var and some fixes
2010-02-16 14:24:40 +01:00
Benoit Chesneau
d54c832fbc
reuse the code to run hooks
2010-02-16 11:55:09 +01:00
Benoit Chesneau
9fea7dd34b
useless print
2010-02-16 11:08:14 +01:00
Benoit Chesneau
d48bc785e6
add before_exec hook.
2010-02-16 10:32:43 +01:00
Benoit Chesneau
6bc97b926f
typo
2010-02-16 10:21:50 +01:00
Benoit Chesneau
cb0be6d454
add after/before fork hooks
2010-02-16 10:19:15 +01:00
Benoit Chesneau
13d9288d69
refactor config and put all in config object
2010-02-16 10:08:07 +01:00