GUI / nginx-upstream-dynamic-servers

An nginx module to resolve domain names inside upstreams and keep them up to date.
MIT License
311 stars 74 forks source link

resolve SRV records #3

Open JonnyBGod opened 9 years ago

JonnyBGod commented 9 years ago

Hi,

awesome plugin. This would be perfect if it could resolve SRV records into IP:PORT combinations. This way it would be a great load balancer for cluster environments such as mesos/marathon.

would you be willing to implement this?

GUI commented 8 years ago

Sorry for the extremely belated response. I'm not actively using this module right now, but any pull requests to add this kind functionality ware welcome.

gfrankliu commented 8 years ago

SRV seems like a good idea if it can be added. SkyDNS https://github.com/skynetservices/skydns , Consul https://www.consul.io/docs/agent/dns.html etc can be used as DNS server with service discovery. SRV record provides IP:PORT and weight information. Consul can have advanced health checks so the "dead" server can be marked down, and its IP won't be returned to the resolver.

h17liner commented 8 years ago

+1 to resolve SRV.

gfrankliu commented 8 years ago

As I mentioned https://github.com/GUI/nginx-upstream-dynamic-servers/issues/14#issuecomment-210112145 , nginx 1.9.13 onwards now made it easier to support SRV.