1
0
mirror of https://github.com/rancher/os.git synced 2025-09-07 01:31:06 +00:00

Optimize kernel parameters

- Reserve 64 MB memory for admin
- Set vm.max_map_count=262144 which is needed by ElasticSearch
- Set fs.inotify.max_user_watches=104857 which is needed by Cadvisor
- Use memory settings based on Nutanix guidance
This commit is contained in:
Olli Janatuinen
2020-12-19 20:19:13 +02:00
parent 94e85d2d8a
commit d1ffbcabc3
3 changed files with 11 additions and 2 deletions

View File

@@ -426,7 +426,7 @@ func layDownOS(image, installType, cloudConfig, device, partition, statedir, kap
//cloudConfig := SCRIPTS_DIR + "/conf/empty.yml" //${cloudConfig:-"${SCRIPTS_DIR}/conf/empty.yml"}
CONSOLE := "tty0"
baseName := "/mnt/new_img"
kernelArgs := "printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait panic=10" // console="+CONSOLE
kernelArgs := "printk.devkmsg=on rancher.state.dev=LABEL=RANCHER_STATE rancher.state.wait transparent_hugepage=never scsi_mod.use_blk_mq=1 panic=10" // console="+CONSOLE
if statedir != "" {
kernelArgs = kernelArgs + " rancher.state.directory=" + statedir
}