laughk / TIL

2 stars 0 forks source link

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

Open laughk opened 7 years ago

laughk commented 7 years ago

https://github.com/laughk/TIL/pull/4 の際のメモ

Redis の Docker コンテナを使ってたところ以下のようなメッセージが出ていた。

redis_1  | 1:C 26 Aug 06:48:16.124 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1  | 1:C 26 Aug 06:48:16.125 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1  | 1:C 26 Aug 06:48:16.125 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1  | 1:M 26 Aug 06:48:16.126 * Running mode=standalone, port=6379.
redis_1  | 1:M 26 Aug 06:48:16.126 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1  | 1:M 26 Aug 06:48:16.126 # Server initialized
redis_1  | 1:M 26 Aug 06:48:16.126 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1  | 1:M 26 Aug 06:48:16.126 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1  | 1:M 26 Aug 06:48:16.126 * Ready to accept connections
BarryLoo commented 5 years ago

ま、その状況なら。ご覧下さい。@laughk https://github.com/docker-library/redis/issues/35