From 48c146e12d4ce0897577c8972aee557198ee880b Mon Sep 17 00:00:00 2001 From: piano <35907674+piano-wow@users.noreply.github.com> Date: Mon, 30 Mar 2020 11:01:55 +0800 Subject: [PATCH] Update etcd.service.j2 (#823) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit etcd 新增参数配置 --- roles/etcd/templates/etcd.service.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/etcd/templates/etcd.service.j2 b/roles/etcd/templates/etcd.service.j2 index f2f9fba..65e56d8 100644 --- a/roles/etcd/templates/etcd.service.j2 +++ b/roles/etcd/templates/etcd.service.j2 @@ -23,7 +23,11 @@ ExecStart={{ bin_dir }}/etcd \ --initial-cluster-token=etcd-cluster-0 \ --initial-cluster={{ ETCD_NODES }} \ --initial-cluster-state={{ CLUSTER_STATE }} \ - --data-dir=/var/lib/etcd + --data-dir=/var/lib/etcd \ + --auto-compaction-retention=1 \ + --max-request-bytes=10485760 \ + --quota-backend-bytes=8589934592 +Restart=on-failure Restart=always RestartSec=5 LimitNOFILE=65536