diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-11-08 07:34:49 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-11-08 16:39:52 -0800 |
commit | 48a3294079b0fee0ad9d33f7c7262f6c87255947 (patch) | |
tree | 73e15375e0d9487f1344dc6e0c7030ebf08e2a80 /deployment/heat/onap-oom/k8s_vm_entrypoint.sh | |
parent | 8b764b35919133a5c92640dedc588539bda1124d (diff) |
Alleviate startup disk contention issues
Add tuneable parameters in the heat template to
try to alleviate startup disk contention issues.
Also turn off use of RAM disk by default, reduce
size of Rancher VM, and use the RAM saved for an
extra k8s compute VM.
Change-Id: Ic638f33479338ebb9339b249ced9d6fa684935fa
Issue-ID: INT-586
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/k8s_vm_entrypoint.sh')
-rw-r--r-- | deployment/heat/onap-oom/k8s_vm_entrypoint.sh | 3 |
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 |