mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
fix(etcd-bootstrap): Use higher election timeout on EC2
This commit is contained in:
parent
87a126b192
commit
b747468a2f
@ -10,6 +10,8 @@ ARGS="-f -data-dir $STATE -bind-addr 0.0.0.0"
|
||||
if [ "${VIRT}" != "ec2" ]; then
|
||||
echo "Detected environment \"${VIRT}\", just starting solo master..."
|
||||
exec /usr/bin/etcd ${ARGS} -n ${HOSTNAME}
|
||||
else
|
||||
ARGS="${ARGS} -peer-election-timeout 1200"
|
||||
fi
|
||||
|
||||
BOOTSTRAP_PEERS="/var/run/etcd/bootstrap.config"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user