Linux Google 容器引擎中的内核调整

Linux kernel tune in Google Container 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 容器引擎中解决此警告?

据我了解,我的 podsnode 上的 运行,而 node 是仅供我使用的私有 VM?所以我 ssh 到 node 并直接修改内核?

是的,您拥有这些节点并且可以通过 ssh 连接到它们并根据需要修改它们。