Skip to content

Commit b3a352d

Browse files
author
Matthew Fisher
committed
Merge pull request #3592 from bacongobbler/3563-bump-masterlock-ttl
fix(registry): bump etcd ttl to 20 seconds
2 parents ea76828 + e515d91 commit b3a352d

7 files changed

Lines changed: 6 additions & 8 deletions

File tree

builder/image/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fi
1717
export ETCD_PORT=${ETCD_PORT:-4001}
1818
export ETCD="$HOST:$ETCD_PORT"
1919
export ETCD_PATH=${ETCD_PATH:-/deis/builder}
20-
export ETCD_TTL=${ETCD_TTL:-10}
20+
export ETCD_TTL=${ETCD_TTL:-20}
2121

2222
# wait for etcd to be available
2323
until etcdctl --no-sync -C $ETCD ls >/dev/null 2>&1; do

cache/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ install, and start **deis/cache**.
2020
daemon (default: *4001*)
2121
* **ETCD_PATH** sets the etcd directory where the cache announces its
2222
configuration (default: */deis/cache*)
23-
* **ETCD_TTL** sets the time-to-live before etcd purges a configuration
24-
value, in seconds (default: *10*)
2523
* **PORT** sets the TCP port on which the cache listens (default: *6379*)
2624

2725
## License

controller/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -eo pipefail
1313
export ETCD_PORT=${ETCD_PORT:-4001}
1414
export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/controller}
16-
export ETCD_TTL=${ETCD_TTL:-10}
16+
export ETCD_TTL=${ETCD_TTL:-20}
1717

1818
# wait for etcd to be available
1919
until etcdctl --no-sync -C $ETCD ls >/dev/null 2>&1; do

database/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -eo pipefail
1313
export ETCD_PORT=${ETCD_PORT:-4001}
1414
export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/database}
16-
export ETCD_TTL=${ETCD_TTL:-10}
16+
export ETCD_TTL=${ETCD_TTL:-20}
1717

1818
export BUCKET_NAME=${BUCKET_NAME:-db_wal}
1919
export BACKUPS_TO_RETAIN=${BACKUPS_TO_RETAIN:-5}

registry/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export ETCD_PORT=${ETCD_PORT:-4001}
1414
export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/registry}
1616
export HOST_ETCD_PATH=${HOST_ETCD_PATH:-/deis/registry/hosts/$HOST}
17-
export ETCD_TTL=${ETCD_TTL:-10}
17+
export ETCD_TTL=${ETCD_TTL:-20}
1818

1919
# run.sh requires $REGISTRY_PORT
2020
export REGISTRY_PORT=${PORT:-5000}

store/gateway/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export ETCD_PORT=${ETCD_PORT:-4001}
1414
export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/store/gateway}
1616
export HOST_ETCD_PATH=${HOST_ETCD_PATH:-/deis/store/gateway/hosts/$HOST}
17-
export ETCD_TTL=${ETCD_TTL:-10}
17+
export ETCD_TTL=${ETCD_TTL:-20}
1818

1919
# wait for etcd to be available
2020
until etcdctl --no-sync -C $ETCD ls >/dev/null 2>&1; do

tests/fixtures/mock-store/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -eo pipefail
1313
export ETCD_PORT=${ETCD_PORT:-4001}
1414
export ETCD="$HOST:$ETCD_PORT"
1515
export ETCD_PATH=${ETCD_PATH:-/deis/store/gateway}
16-
export ETCD_TTL=${ETCD_TTL:-10}
16+
export ETCD_TTL=${ETCD_TTL:-20}
1717

1818
export EXTERNAL_PORT=${EXTERNAL_PORT:-8888}
1919
export STORAGE_DIRECTORY=${STORAGE_DIRECTORY:-/app/storage}

0 commit comments

Comments
 (0)