diff options
author | 2016-07-04 21:13:28 +0100 | |
---|---|---|
committer | 2016-07-04 21:13:28 +0100 | |
commit | 558c34a23e7aec736580c5585e7eceeff9220667 (patch) | |
tree | f726a613c95b6415ed78bc843d1f91b54f0da824 /middleware/proxy/upstream_test.go | |
parent | 181ad851bc7a1485218a28cfeb383a80bf1e6e0e (diff) | |
download | coredns-558c34a23e7aec736580c5585e7eceeff9220667.tar.gz coredns-558c34a23e7aec736580c5585e7eceeff9220667.tar.zst coredns-558c34a23e7aec736580c5585e7eceeff9220667.zip |
middleware/proxy: healthchecks fixes (#183)
* middleware/proxy: add spray keyword
When spray is used, the proxy will, when all backend are down, spray to
each target. When not used, default to the old defaults: max 1 failure
and no spray. These defaults are also used when forwarding queries to
another CoreDNS instance.
Update the README with the new keyword.
* typos
* Make MaxFail = 1 again
* more reversals
Diffstat (limited to 'middleware/proxy/upstream_test.go')
-rw-r--r-- | middleware/proxy/upstream_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/proxy/upstream_test.go b/middleware/proxy/upstream_test.go index 3d69ca8fb..a589cf85e 100644 --- a/middleware/proxy/upstream_test.go +++ b/middleware/proxy/upstream_test.go @@ -10,6 +10,7 @@ func TestHealthCheck(t *testing.T) { from: "", Hosts: testPool(), Policy: &Random{}, + Spray: nil, FailTimeout: 10 * time.Second, MaxFails: 1, } |