Hello!
On Wed, Mar 11, 2015 at 6:14 AM, Wang Chunsheng wrote:
> hi,agentzh , i have writen this for add_server(upstream) ,but have some
> Confusion,which api to use for sync the worker runtime configuation to the
> master process ? so if the worker is dead,the new process that reforked may
> also have those servers in the upstream .
>
We can use the shared dictionary to sync the changes. In a similar way
in my lua-resty-upstream-healthcheck library:
https://github.com/openresty/lua-resty-upstream-healthcheck
Reagrds,
-agentzh