Does slardar support dynamic configuration of nginx upstreams? Its seems updating, deleting servers are to be managed via its REST endpoints. Please let me know if there is a way to do this.
On Wednesday, 30 November 2016 05:30:25 UTC-5, WenMing wrote:
2016-11-30 14:56 GMT+08:00 Huabin Zheng
<huabin...@gmail.com>:
Hi,
I have upstream servers register their host:port in consul with service name, e.g. foo. The registries changes will be notified if I watch on the consul agent, by calling
http://consul_agent_addr/foo. So I am looking for a solution that watches consul by sending http request to consul agent and blocks until some registry changed, then replaces upstream backends with latest registries.
1) where is the right place to send http request, in infinitely loop. As i have to always watch consul to receive registry changed event
.