-
Choerodon平台版本: v0.21
-
遇到问题的执行步骤:
- 按照官方文档安装基础组件Redis
- 部署完Redis后查看Redis容器的日志
-
文档地址: https://choerodon.io/zh/docs/installation-configuration/steps/install/parts/base/redis/
-
环境信息(如:节点信息):
OS: CenOS7
Kubernetes: v1.17.1
Helm: v3.0.2 -
报错日志:
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
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. -
原因分析:
这2个Warning都是和内核参数有关的,会影响Redis的性能。
建议你们更换其他供应商的Redis镜像看有没有已经在镜像中修正了这样的问题的,比如Bitnami家的。
Redis Docker image团队已经在issue中回复了此问题。可以参考以下链接:
https://github.com/docker-library/redis/issues/55#issuecomment-214872432 -
疑问:
或者至少你们要在Redis组件安装的文档中标注出这个问题如何手动修复吧。比如:
https://www.jianshu.com/p/7319c6d6f365
https://cachecloud.github.io/2017/02/16/Redis的Linux系统优化/#chapter3