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
Written by Fabrizio Regini
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#