Linux内核调整Google容器引擎

时间:2016-03-01 05:12:31

标签: kubernetes google-kubernetes-engine

我将一个redis容器部署到Google容器引擎并收到以下警告。

10:M 01 Mar 05:01:46.140 # 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.

我知道要纠正我需要执行的警告 echo never > /sys/kernel/mm/transparent_hugepage/enabled

我在容器中试过但没有帮助。

如何在Google容器引擎中解决此警告?

根据我的理解,我的pods正在node上运行,而node只是我私有的虚拟机?所以我ssh到node并直接修改内核?

1 个答案:

答案 0 :(得分:0)

是的,您拥有节点并可以ssh到它们并根据需要修改它们。