-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit LoadBalancing Configurations for HTTPBackendRefs #992
Comments
One thing to consider is if this is a property of the route or of the backend itself (eg a Policy attached to Service) |
I'm writing up a GEP right now, which I would appreciate your feedback on but I basically considered this and my current inclination is that this is a property adjacent to the list of refs. |
I think Route is the wrong place for this - or at least the wrong place to be the exclusive location. if its a Policy, then it can attach at different points. I think the most important points are Service and global. For example, global is useful if you want to say "All services should use the 'failover to another region' load balance strategy". Probably not all your services in the cluster need to define that. Another example would be a cluster admin could decide they like Round Robin by default, but a specific service needs sticky load balancer or something. Briefly looking at some proxies, it seems most are putting things at the backend level?: One implementation note for those proxies is that you end up needing to create extra backends on the order of |
I get what you're saying. For the moment I've thrown up a draft PR: I would appreciate your early feedback on that, and if you'd like to collaborate directly with me on that branch I would be all for it. |
We talked about this in the community sync today, and along with the feedback on the draft PR: policy objects are the mechanism we have today to solve for this and after discussion and highlighting a lot of the complexities with trying to add something simpler I am convinced that using policy is the right approach for now. I consider this closed but if someone else thinks on some other ways in which we could implement this and wants to re-open this I would be interested to see. |
What would you like to be added:
Clear, explicit and top-level configuration for the load-balancing strategy when using multiple
HTTPBackendRefs
in anHTTPRoute
ruleset.Why this is needed:
Currently only a "weighted" load-balancing strategy is supported, and it's effectively implicit (rather than ideally explicit) in configuration currently. There is no way to define other strategies, or for implementations to have their own specific strategies available.
The text was updated successfully, but these errors were encountered: