Permalink
Browse files

TUNING: more minor doc updates

  • Loading branch information...
Eric Wong
Eric Wong committed Apr 30, 2011
1 parent 02a116c commit fe47a179468799bbbb893b339cbb0d4fedf29c2a
Showing with 8 additions and 0 deletions.
  1. +8 −0 TUNING
View
8 TUNING
@@ -7,6 +7,7 @@ application running on Unicorn rather than Unicorn itself.
== \Unicorn Configuration
See Unicorn::Configurator for details on the config file format.
++worker_processes+ is the most-commonly needed tuning parameter.
=== Unicorn::Configurator#worker_processes
@@ -27,6 +28,8 @@ See Unicorn::Configurator for details on the config file format.
runs out of physical memory and hits swap. Production servers should
never see heavy swap activity.
+=== Unicorn::Configurator#listen Options
+
* Setting a very low value for the :backlog parameter in "listen"
directives can allow failover to happen more quickly if your
cluster is configured for it.
@@ -49,6 +52,11 @@ See Unicorn::Configurator for details on the config file format.
and may also thrash CPU caches, cancelling out performance gains
one would normally expect.
+* UNIX domain sockets are slighly faster than TCP sockets, but only
+ work if nginx is on the same machine.
+
+== Other \Unicorn settings
+
* Setting "preload_app true" can allow copy-on-write-friendly GC to
be used to save memory. It will probably not work out of the box with
applications that open sockets or perform random I/O on files.

0 comments on commit fe47a17

Please sign in to comment.