aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2018-11-09 01:53:59 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-09 01:53:59 +0000
commitf6798b6488efc4e2fa03e928baaa5f8984545c76 (patch)
tree99c1d7b214ff57d27ea4d63205eaa9d767e78136 /deployment/heat/onap-oom/k8s_vm_entrypoint.sh
parent9a0edf15482bbd75a0cb337ee68e7ec7c58aaaeb (diff)
parent48a3294079b0fee0ad9d33f7c7262f6c87255947 (diff)
Merge "Alleviate startup disk contention issues"
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_entrypoint.sh')
-rw-r--r--deployment/heat/onap-oom/k8s_vm_entrypoint.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
index e93622cb3..62340c11c 100644
--- a/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
+++ b/deployment/heat/onap-oom/k8s_vm_entrypoint.sh
@@ -34,6 +34,9 @@ Acquire::https::Proxy "DIRECT";
EOF
fi
+# tune ext4 for performance
+sed -i 's/defaults/defaults,noatime,commit=60,barrier=0/' /etc/fstab
+
mkdir -p /dockerdata-nfs
echo "__rancher_private_ip_addr__:/dockerdata-nfs /dockerdata-nfs nfs noauto,noatime,fg,retry=1,x-systemd.automount,_netdev,soft,nolock,intr,tcp,actimeo=1800 0 0" | tee -a /etc/fstab