Commit Graph

3 Commits

Author SHA1 Message Date
罗泽轩
a3c7c4098b
fix: remove stale checker before adding new one (#3427)
lua-resty-healthcheck remove target according to the `ip, port,
hostname` tuple. If the newly added target has the same tuple, it will
be removed accidently.
2021-01-26 23:33:21 +08:00
罗泽轩
4cf30bf2ac
refactor: keep health checker with the upstream's parent (#3325)
A upstream's parent can only have one running checker.
Previously, when a checker is evicted by lrucache, it is still running.
Now health checker & upstream in used is 1:1.
2021-01-18 22:21:39 +08:00
罗泽轩
6fe399c7d6
fix: avoid caching outdated discovery upstream nodes (#3295)
Fix #2369
Fix #1838

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-18 11:04:13 +08:00