Я бы посоветовал поднять параметр somaxconn в ядре.
Добавить к/etc/sysctl.conf
:
net.core.somaxconn=512
А потом бежать:
sudo sysctl -p
Также в /etc/redis.conf
поднять tcp-backlog
как в (или больше):
tcp-backlog 512
Из файла конфигурации Redis:
TCP listen() backlog.
In high requests-per-second environments you need an high backlog in order to avoid slow clients connections issues. Note that the Linux kernel will silently truncate it to the value of /proc/sys/net/core/somaxconn so make sure to raise both the value of somaxconn and tcp_max_syn_backlog in order to get the desired effect.