Last Updated: February 25, 2016
·
1.186K
· freegenie

Increase the limits of unicorn connections

Linux kernel has limits on the number of concurrent connections to sockets.

In case of lots of concurrent requests, Nginx will start dropping some of them around some hundreds. You can pump up the with the following:

echo 1000 > /proc/sys/net/core/netdev_max_backlog 
echo 1000 > /proc/sys/net/core/somaxconn