upyun / lua-resty-checkups

Manage Nginx upstreams in pure Lua.
259 stars 65 forks source link

set_peer_down 是worker级别的行为,没看到同步到其他所有worker的逻辑? #1

Closed xiewenhui closed 8 years ago

xiewenhui commented 8 years ago

看了下说明,,只有一个worker做 health check, 然后调用 upstream.set_peer_down; 但是 set_peer_down 是worker级别的行为,没看到同步到其他所有worker的逻辑? 这是bug吧?

https://github.com/openresty/lua-upstream-nginx-module#set_peer_down Note that this method only changes the peer settings in the current Nginx worker process. You need to synchronize the changes across all the Nginx workers yourself if you want a server-wide change (for example, by means of ngx_lua's ngx.shared.DICT).

yejingx commented 8 years ago

Yes, it's a known issue, we will fix it ASAP.

lhanjian commented 8 years ago

@xiewenhui 还请继续指点,看看这样做是否解决楼主的提问。