Zeroconf for proxy to upstream servers

Does Nginx support any sort of zeroconf in its proxying to upstream
servers? I would like to make the backend publish themselves via
something like zeroconf. Nginx should route traffic to them when they
publish themselves as online, and nginx should remove them from this
list when they publish themselves as offline.

Does that currently exist in nginx?

Michael Power

Hi Michael

Am 07-08-2015 20:30, schrieb Michael Power:

Does Nginx support any sort of zeroconf in its proxying to upstream
servers? I would like to make the backend publish themselves via
something like zeroconf. Nginx should route traffic to them when they
publish themselves as online, and nginx should remove them from this
list when they publish themselves as offline.

Does that currently exist in nginx?

Yes.

http://nginx.org/en/docs/http/ngx_http_upstream_conf_module.html

You could also look at lua-resty-upstream-healthcheck (
GitHub - openresty/lua-resty-upstream-healthcheck: Health Checker for Nginx Upstream Servers in Pure Lua) as an
alternative. It’s not native Nginx per se, but it’s integrated with
OpenResty.