aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/up/up.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-10Fix typos (#6235)Gravatar Zhizhen He 1-3/+3
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2021-01-12forward/up: HC every 0.5 seconds, do not do exponential backoff (#4371)Gravatar Miek Gieben 1-23/+10
* remove hc backoff Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix mutex Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * Update plugin/pkg/up/up.go * fmt Signed-off-by: Miek Gieben <miek@miek.nl> Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2020-02-06plugin/pkg/up: make default intervals shorter (#3651)Gravatar Miek Gieben 1-2/+2
* plugin/pkg/up: make default intervals shorter I think 15 min is too high, make this lower to react faster. Signed-off-by: Miek Gieben <miek@miek.nl> * Update README Signed-off-by: Miek Gieben <miek@miek.nl>
2020-02-04Add exponential backoff to healthcheck (#3643)Gravatar Ricky S 1-19/+22
Move exponential backoff initialization to Start() Signed-off-by: RickyRajinder <singh.sangh@gmail.com> Move comment Increase max interval and update README Remove trailing whitespace Change Start() param name back to interval
2018-12-01pkg/up: implement backoff (#2342)Gravatar Miek Gieben 1-4/+20
* pkg/up: implement backoff Every 2nd failure we double the interval until we hit 4 * interval. This to have some sort of backoff, esp when a large cluster of coredns shares an upstream (original intent of up package) they will hammer the upstream. This put some back pressure on that. Signed-off-by: Miek Gieben <miek@miek.nl> * Update plugin/pkg/up/up.go Co-Authored-By: miekg <miek@miek.nl>
2018-08-14Typo fixes (#2031)Gravatar Karsten Weiss 1-1/+1
2018-05-16Probe simplification (#1784)Gravatar Ruslan Drozhdzh 1-49/+42
* Probe simplification - the main reason of rework is that previous implementation hung when calling Do() after Stop() * replace atomics with mutex * access Probe.interval under lock
2018-04-13pkg/up: stop *all* goroutines (#1676)Gravatar Miek Gieben 1-5/+20
Stop all goroutines after we get the stop signal.
2018-02-23doc: some function/vars/const/package level updates (#1558)Gravatar Miek Gieben 1-0/+2
* doc: some function/vars/const/package level updates Various update that stood out while reading godoc.org for CoreDNS. * Fix some misspellings as well
2018-02-15plugin/forward using pkg/up (#1493)Gravatar Miek Gieben 1-5/+6
* plugin/forward: on demand healtchecking Only start doing health checks when we encouner an error (any error). This uses the new pluing/pkg/up package to abstract away the actual checking. This reduces the LOC quite a bit; does need more testing, unit testing and tcpdumping a bit. * fix tests * Fix readme * Use pkg/up for healthchecks * remove unused channel * more cleanups * update readme * * Again do go generate and go build; still referencing the wrong forward repo? Anyway fixed. * Use pkg/up for doing the healtchecks to cut back on unwanted queries * Change up.Func to return an error instead of a boolean. * Drop the string target argument as it doesn't make sense. * Add healthcheck test on failing to get an upstream answer. TODO(miek): double check Forward and Lookup and how they interact with HC, and if we correctly call close() on those * actual test * Tests here * more tests * try getting rid of host * Get rid of the host indirection * Finish removing hosts * moar testing * import fmt * field is not used * docs * move some stuff * bring back health_check * maxfails=0 test * git and merging, bah * review
2018-02-05pkg/up: add generic run-this-functions (#1481)Gravatar Miek Gieben 1-0/+66
This adds a generic way of start a check function to check a backend. This package can be used to kick off healthchecks. The package makes sure only 1 is run at any one time. It should allow for: See upstream error -> kick off healthcheck and not to worry about overwhelming the upstream with a barrage of queries.