Permalink
Browse files

document signals. Enable graceful restart by default

  • Loading branch information...
miyagawa committed Feb 10, 2010
1 parent e68d223 commit fcd26eeecdd5671ec1d96f685b707fbb78be433f
Showing with 20 additions and 9 deletions.
  1. +9 −4 README
  2. +10 −4 lib/Nomo.pm
  3. +1 −1 lib/Nomo/Server.pm
View
13 README
@@ -18,14 +18,19 @@ DESCRIPTION
Uses the fast XS/C HTTP header parser
Preforking
- Runs servers preforked like most high performance UNIX servers do.
+ Spawns workers preforked like most high performance UNIX servers do.
+ Nomo also reaps dead children and automatically restarts the worker
+ pool.
+
+ Signals
+ Supports "HUP" for graceful restarts, and "TTIN"/"TTOU" to
+ dynamically increase or decrease the number of worker processes.
Superdaemon aware
Supports Server::Starter for hot deploy and graceful restarts.
- UNIX Domain Socket support
- Forked children share the UNIX domain socket with the parent process
- for the best performance when used with the nginx proxy in front.
+ Multiple interfaces and UNIX Domain Socket support
+ Able to listen on multiple intefaces including UNIX sockets.
PSGI compatible
Can run any PSGI applications and frameworks
View
@@ -38,16 +38,22 @@ Uses the fast XS/C HTTP header parser
=item Preforking
-Runs servers preforked like most high performance UNIX servers do.
+Spawns workers preforked like most high performance UNIX servers
+do. Nomo also reaps dead children and automatically restarts the
+worker pool.
+
+=item Signals
+
+Supports C<HUP> for graceful restarts, and C<TTIN>/C<TTOU> to
+dynamically increase or decrease the number of worker processes.
=item Superdaemon aware
Supports L<Server::Starter> for hot deploy and graceful restarts.
-=item UNIX Domain Socket support
+=item Multiple interfaces and UNIX Domain Socket support
-Forked children share the UNIX domain socket with the parent process
-for the best performance when used with the nginx proxy in front.
+Able to listen on multiple intefaces including UNIX sockets.
=item PSGI compatible
View
@@ -72,7 +72,7 @@ sub run {
max_spare_servers => $options->{max_spare_servers} || $workers - 1,
max_servers => $options->{max_servers} || $workers,
max_requests => $options->{max_requests} || 1000,
- leave_children_open_on_hup => $options->{restart_graceful} || 0,
+ leave_children_open_on_hup => 1,
user => $options->{user} || $>,
group => $options->{group} || $),

0 comments on commit fcd26ee

Please sign in to comment.