Problem
When starting Redis, this warning appears:
| |
Redis defaults to a TCP backlog of 511, but the Linux kernel’s somaxconn is only 128, so Redis can’t use the queue length it wants. Under heavy connection load, this can cause dropped connections.

Solution
Increase somaxconn with root privileges:
| |
This won’t persist after a reboot. To make it permanent, add the setting to /etc/sysctl.conf:
| |
Then reboot or run sysctl -p to apply.
