Skip to content

Commit ce220ab

Browse files
committed
fix(contrib/coreos): bump timeouts for etcd and fleet
See discussion in deis/deis#1688
1 parent f4bf6f2 commit ce220ab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

contrib/coreos/user-data

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ coreos:
77
# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923
88
addr: $private_ipv4:4001
99
peer-addr: $private_ipv4:7001
10+
# give etcd more time if it's under heavy load - prevent leader election thrashing
11+
peer-election-timeout: 2000
12+
# heartbeat interval should ideally be 1/4 or 1/5 of peer election timeout, but that's a long time...
13+
peer-heartbeat-interval: 200
1014
fleet:
1115
# We have to set the public_ip here so this works on Vagrant -- otherwise, Vagrant VMs
1216
# will all publish the same private IP. This is harmless for cloud providers.
1317
public_ip: $private_ipv4
18+
# allow etcd to slow down at times
19+
etcd_request_timeout: 3
1420
units:
1521
- name: etcd.service
1622
command: start

0 commit comments

Comments
 (0)