openresty / lua-resty-upstream-healthcheck

Health Checker for Nginx Upstream Servers in Pure Lua
521 stars 134 forks source link

What happens if the server in upstream is dynamic changed ? Now health check will ignore the new incoming server. #55

Open zhuqiuyang opened 6 years ago

zhuqiuyang commented 6 years ago

when call hc.spawn_checker the upstream is: upstream test { server 127.0.0.1:8080; }

But some time, upstream update to : upstream test { server 127.0.0.1:8080; server 127.0.0.1:8081; }

Health Check will ignore 127.0.0.1:8081 server, because that peer not in upstream, when i first call hc. spawn_checker.