Coder Social home page Coder Social logo

Comments (7)

Tratcher avatar Tratcher commented on May 18, 2024

Current implementation:

switch (loadBalancingOptions.Mode)
{
case BackendConfig.BackendLoadBalancingOptions.LoadBalancingMode.First:
// TODO: Remove, this is a silly load balancing mode
if (healthyEndpoints.Count == 0)
{
return null;
}
return healthyEndpoints[0];
case BackendConfig.BackendLoadBalancingOptions.LoadBalancingMode.Random:
throw new NotImplementedException();
case BackendConfig.BackendLoadBalancingOptions.LoadBalancingMode.PowerOfTwoChoices:
throw new NotImplementedException();
default:
throw new ReverseProxyException($"Load balancing mode '{loadBalancingOptions.Mode}' is not supported.");

Note that load balancing is configurable per backend set. Do we need that level of granularity, or could this be specified server wide?

from reverse-proxy.

analogrelay avatar analogrelay commented on May 18, 2024

Oh it should definitely be per backend. It's very common for different services to have different load profiles and benefit from different kinds of load balancing. It's also something Envoy configures per-cluster which serves as some prior art.

from reverse-proxy.

Tratcher avatar Tratcher commented on May 18, 2024

Another one: Least busy
We have the metadata we need for this, it just requires one pass through the list.

from reverse-proxy.

Kahbazi avatar Kahbazi commented on May 18, 2024

Is it possible to add a feature for blue green deployment to load balancer? or is it out of the scope of load balancer?

from reverse-proxy.

Tratcher avatar Tratcher commented on May 18, 2024

Is it possible to add a feature for blue green deployment to load balancer? or is it out of the scope of load balancer?

I think that's a different feature from load balancing that would be handled earlier at the routing phase. Load balancing assumes all nodes are equivalent, plus or minus health/load.

from reverse-proxy.

analogrelay avatar analogrelay commented on May 18, 2024

I'm going to break this up into smaller issues for individual algorithms. @Tratcher and I were talking about some of them being fairly easy and high-value for preview 1 (while others are more complicated).

from reverse-proxy.

analogrelay avatar analogrelay commented on May 18, 2024

Created #72 #73 #74 #75

Closing this out now.

from reverse-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.