How to fix «The TCP backlog setting of 511 cannot be enforced» Redis warning?

redis

(Dmitry Fedyuk) #1

WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.


The Discourse's Docker container does not share `net.core.somaxconn` with the host operating system
(Dmitry Fedyuk) #2

A docker host machine and a container shares the same linux kernel.
As such, you should be able to resolve the above warning by tuning the host kernel parameters using syscctl.
Please see docker-library/redis#35 (comment) for suggestions.

github.com/bitnami/bitnami-docker-redis/issues/82#issuecomment-296595688

It is wrong!
The Discourse’s Docker container does not share net.core.somaxconn with the host operating system.


(Dmitry Fedyuk) #3

How to permanently set net.core.somaxconn in Debian?


(Dmitry Fedyuk) #4
./launcher rebuild <container> --docker-args "--sysctl net.core.somaxconn=65535"

«docker run» → «Configure namespaced kernel parameters (sysctls) at runtime»

02