diff --git a/mon/make-etcd b/mon/make-etcd index 2673825c..85e3e920 100755 --- a/mon/make-etcd +++ b/mon/make-etcd @@ -63,8 +63,9 @@ Wants=network-online.target local-fs.target time-sync.target [Service] Restart=always +Environment=GOGC=50 ExecStart=etcd -name etcd${num} --data-dir /var/lib/etcd${num}.etcd \\ - --advertise-client-urls http://${etcds[num]}:2379 --listen-client-urls http://${etcds[num]}:2379 \\ + --snapshot-count 10000 --advertise-client-urls http://${etcds[num]}:2379 --listen-client-urls http://${etcds[num]}:2379 \\ --initial-advertise-peer-urls http://${etcds[num]}:2380 --listen-peer-urls http://${etcds[num]}:2380 \\ --initial-cluster-token vitastor-etcd-1 --initial-cluster ${etcd_cluster} \\ --initial-cluster-state new --max-txn-ops=100000 --max-request-bytes=104857600 \\