Skip to content

Commit

Permalink
mention another performance tuning trick
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 18, 2014
1 parent c71e687 commit acc842e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -279,9 +279,9 @@ Listen backlog size, defaults to C<SOMAXCONN>.
clients => 100
Maximum number of parallel client connections per worker process, defaults to
C<1000>. Note that depending on how much your application may block, you might
want to decrease this value and increase L</"workers"> instead for better
performance.
C<1000>. Note that depending on how many blocking operations your application
may perform, you might want to decrease this value and increase L</"workers">
instead for better performance.
=head2 graceful_timeout
Expand Down Expand Up @@ -386,7 +386,8 @@ Username for worker processes.
Number of worker processes, defaults to C<4>. A good rule of thumb is two
worker processes per CPU core for applications that perform mostly
non-blocking operations, blocking operations often require more.
non-blocking operations, blocking operations often require more and profit
from decreasing the number of concurrent L</"clients">.
=head1 METHODS
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Server/Prefork.pm
Expand Up @@ -463,7 +463,8 @@ Full path of process id file, defaults to a random temporary path.
Number of worker processes, defaults to C<4>. A good rule of thumb is two
worker processes per CPU core for applications that perform mostly
non-blocking operations, blocking operations often require more.
non-blocking operations, blocking operations often require more and profit
from decreasing the number of concurrent L<Mojo::Server::Daemon/"clients">.
=head1 METHODS
Expand Down

0 comments on commit acc842e

Please sign in to comment.