Linux kernel tune in Google Container Engine

3/1/2016

I deployed a redis container to Google Container Engine and get the following warnings.

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.

I know to correct the warning I need executing echo never > /sys/kernel/mm/transparent_hugepage/enabled

I tried that in container but does not help.

How to solve this warning in Google Container Engine?

As I understand, my pods are running on the node, and the node is a VM private for me only? So I ssh to the node and modify the kernel directly?

-- Mr.Wang from Next Door
google-kubernetes-engine
kubernetes

1 Answer

3/1/2016

Yes, you own the nodes and can ssh into them and modify them as you need.

-- Robert Bailey
Source: StackOverflow