Caddy: DNS SRV record based load balancing

Created on 3 Aug 2017  路  8Comments  路  Source: caddyserver/caddy

Does caddy support DNS SRV record based load balancing? This will help integrate with orchestrators like Kubernetes and Microsoft Service Fabric

feature request

Most helpful comment

Yes, right. I didn't start working on proxy package because it is not exactly a trivial change like fastcgi, I thought I'd hold off until we are in the clear about fastcgi package in case there is any problem with that change. Now that the other PR is merged I'll implement the changes in proxy package.

All 8 comments

See here: https://caddyserver.com/docs/proxy#policies

That mode isn't supported yet, but it could probably be added. Marking this as a feature request. PRs are welcome!

Wouldn't this also need to be supported by the browser?

https://bugzilla.mozilla.org/show_bug.cgi?id=14328

@jungle-boogie I might be wrong but my understanding is that Caddy would do the DNS lookup for the list of services to use as proxy backends. Don't need browser support for that, browser just sees Caddy

Ah, I think you're right.
I was thinking of setting the DNS records at the DNS level and then have the browser look that up.

I am going to work on it, my idea is to resolve SRV records for endpoints starting with srv://. any suggestions?

@mholt this isn't actually ready to be closed yet. This issue talks about a proxy load balancing policy, whereas the PR was for fastcgi. See my comment here: https://github.com/mholt/caddy/pull/1870#issuecomment-329590425 and @Gufran's response https://github.com/mholt/caddy/pull/1870#issuecomment-329657025 saying he'll work on the proxy implementation next. We should leave this open until he's done that.

Yes, right. I didn't start working on proxy package because it is not exactly a trivial change like fastcgi, I thought I'd hold off until we are in the clear about fastcgi package in case there is any problem with that change. Now that the other PR is merged I'll implement the changes in proxy package.

Sounds like a great plan, @Gufran - thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jgsqware picture jgsqware  路  3Comments

PhilmacFLy picture PhilmacFLy  路  3Comments

crvv picture crvv  路  3Comments

mschneider82 picture mschneider82  路  3Comments

klaasel picture klaasel  路  3Comments