Open ecc256 opened 4 years ago
And a follow up question:
[warn] 188#188: *118566393 [lua] healthcheck.lua:49: warn(): healthcheck: peer 10.0.0.5:80 is turned down after 3 failure(s), context: ngx.timer
What does the message mean exactly? The 10.0.0.5:80 is turned down for all upstreams or for the single upstream, it failed to get the healthcheck for?
The failure is counted by key
, which is created by gen_peer_key
with peer.name
plus upstream
plus peer type and more. So I think the turn down is for the single upstream.
The error message doesn't contain the upstream info. Can you submit a PR to improve it?
So I think the turn down is for the single upstream.
Yep, it’s for the single upstream, status_page()
confirms it.
local hc = require "resty.upstream.healthcheck"
ngx.print(hc.status_page())
The error message doesn't contain the upstream info. Can you submit a PR to improve it?
Yep, just did
Guys, I’ve followed module recommendation for multiple upstreams. Error log has messages like:
[error] 193#193: 118495174 [lua] healthcheck.lua:53: errlog(): healthcheck: failed to receive status line from 10.0.0.1:80: timeout, context: ngx.timer [error] 190#190: 118495179 [lua] healthcheck.lua:53: errlog(): healthcheck: failed to receive status line from 10.0.0.5:80: timeout, context: ngx.timer
How do I tell, which upstream they belong too?
Full setup described here, snippet is below:
init_worker.lua