From fe47a179468799bbbb893b339cbb0d4fedf29c2a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 29 Apr 2011 23:31:35 -0700 Subject: TUNING: more minor doc updates --- TUNING | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- cgit v1.2.3-24-ge0c7