diff options
-rw-r--r-- | TUNING | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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. |