summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-29 23:31:35 -0700
committerEric Wong <normalperson@yhbt.net>2011-04-29 23:32:42 -0700
commitfe47a179468799bbbb893b339cbb0d4fedf29c2a (patch)
treedcf71237d08df9cb155d37fe56b88227df51a590
parent02a116c0d94a60a64abf8ad2465132e8194dd62a (diff)
-rw-r--r--TUNING8
1 files changed, 8 insertions, 0 deletions
diff --git a/TUNING b/TUNING
index d269b43..ca291ad 100644
--- a/TUNING
+++ b/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.