Skip to content

Commit

Permalink
Reduce external-dns sync interval to 20s (#81)
Browse files Browse the repository at this point in the history
* Reduce external-dns ( CRD -> etcd ) sync interval to 20s
* Value is picked to be sligtly below default 30s DNS TTL
  we are currently working with
* Terratest results:
```
--- PASS: TestOhmyglbBasicFailoverExample (157.84s)
    --- PASS: TestOhmyglbBasicFailoverExample/failover_happens_as_expected (35.41s)
```
* This way we reduced failover(or any kind of load balancing
  reconfiguration) from ~2.5 min down to 35 seconds
  See #80 for initial values
  • Loading branch information
ytsarev authored Apr 8, 2020
1 parent 3ab2abe commit 29d683a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chart/ohmyglb/templates/external-dns/external-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spec:
- --log-level=debug # debug only
- --registry=noop # disable local external-dns ownership, see https://github.com/kubernetes-sigs/external-dns/issues/1414
- --annotation-filter=ohmyglb.absa.oss/dnstype=local # filter out only relevant DNSEntrypoints
- --interval=20s # perform synchronization more frequently than default 1m for faster load balancing
env:
- name: ETCD_URLS
value: http://etcd-cluster-client:2379

0 comments on commit 29d683a

Please sign in to comment.