Only limit etcd memory on small hosts (#1860)

Also disable oom killer on etcd
This commit is contained in:
Matthew Mosesohn
2017-10-25 10:25:15 +01:00
committed by GitHub
parent 5b08277ce4
commit acb63a57fa
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
{% if etcd_memory_limit is defined %}
--memory={{ etcd_memory_limit|regex_replace('Mi', 'M') }} \
{% endif %}
--oom-kill-disable \
{% if etcd_cpu_limit is defined %}
--cpu-shares={{ etcd_cpu_limit|regex_replace('m', '') }} \
{% endif %}