Bertrand Paquet
619c3e23af
Avoid crash in strange restart conditions
2015-01-29 15:04:52 +01:00
Evan Phoenix
80a2d69acc
Add the proctitle tag to the worker. Fixes #633
2015-01-20 10:03:34 -08:00
Evan Phoenix
85a2f5cdd5
Merge pull request #478 from rubencaro/master
...
Add reload_worker_directory to pumactl
2015-01-20 09:44:53 -08:00
Edgars Beigarts
ec918d6b71
Fix phased restart with stuck requests
2015-01-15 14:58:16 +02:00
Evan Phoenix
26307307a2
Merge pull request #566 from sheltond/master
...
Added on_worker_shutdown mechanism
2014-11-23 19:39:27 -08:00
Evan Phoenix
0b3d9d0d41
Improve formatting of output if backtrace isn't available
2014-11-23 19:00:15 -08:00
Evan Phoenix
a2288fd656
Warn about any threads started during app preload
2014-11-23 18:55:34 -08:00
Daniel Shelton
91f12ee279
Merge remote-tracking branch 'upstream/master'
2014-09-29 11:12:26 +01:00
Evan Phoenix
3cbe5219a2
Force a worker check after a worker boots, don't wait 5sec. Fixes #574
2014-09-05 11:30:22 -07:00
Daniel Shelton
384481a4a5
Make worker shutdown timeout (the time after the TERM is sent before a KILL is sent instead) configurable
2014-08-06 13:10:40 +01:00
Daniel Shelton
af3d62c46a
Attempting to debug why background jobs aren't always waited for
2014-08-06 11:50:04 +01:00
Daniel Shelton
b32f32753d
Fixed whitespace
2014-08-01 11:28:33 +01:00
Daniel Shelton
e4ea4fb46d
Added on_worker_shutdown hook mechanism
2014-08-01 11:04:39 +01:00
Dmitry Krasnoukhov
7c41d0887f
Implement SIGHUP for logs reopening
2014-07-27 17:31:15 +03:00
Mathieu Allaire
e8fb94bb02
Typo BUNDLER_GEMFILE -> BUNDLE_GEMFILE
2014-05-26 23:25:58 -04:00
Marwan Al Jubeh
0a49a6806e
During upgrade, change directory in main process instead of workers.
...
This Fixes #468 by making sure the new `cwd` will be used for all the
workers spawned in the future.
2014-04-12 13:54:07 -07:00
Evan Phoenix
84b7b6a674
Add prune_bundler option
...
This option makes it possible to specify puma in a Gemfile, but then
have puma use future Gemfiles in future releases when those releases are
seen via cluster workers.
Basically, this implements the feature that many people want: the
ability to specify puma in a context file and have restarts pickup
Gemfile changes.
2014-02-28 14:19:51 -08:00
Max Gulyaev
e5150f0792
added after worker boot hook
2014-02-26 16:06:58 +02:00
Rubén Caro
48b50a312f
Add reload_worker_directory
2014-02-25 14:52:20 +01:00
rubencaro
350ba6f3c7
Add booted_workers to stats response
2014-02-21 11:59:06 +01:00
Sudara
fdb4d27967
Assure worker index always within 0...@options[:workers]
2014-01-27 13:13:48 +01:00
Evan Phoenix
ef4e55a5b7
Add ability to detect and terminate hung workers. Fixes #333
2014-01-25 16:54:40 -08:00
Evan Phoenix
ff0d3b553d
Add worker indexes, expose them via on_worker_boot. Fixes #440
2014-01-25 13:53:02 -08:00
Edwin Cruz
95116f1606
Adding TTIN and TTOU to increment/decrement workers
2013-10-28 15:21:53 -07:00
Dmitry Krasnoukhov
bd7259fe2d
Convince workers to stop by SIGKILL after timeout
2013-08-30 21:52:39 +03:00
Evan Phoenix
09eb0cc020
Make phased_restart fallback to restart if not available
2013-07-18 17:09:18 -07:00
Evan Phoenix
c68ea5e46b
Move starting control server to after daemonization
2013-07-08 22:36:50 -07:00
Evan Phoenix
e70a370e2d
More cleanup
2013-07-05 21:13:29 -07:00
Evan Phoenix
f2e11d1b52
A bit more cleanup
2013-07-05 17:09:18 -07:00
Evan Phoenix
662852ce4f
Pass Events around more, add Events#on_booted
2013-07-05 16:54:15 -07:00
Evan Phoenix
c48b804d8f
Refactor modes, fix control server to always work
2013-07-05 16:08:13 -07:00