Git Product home page Git Product logo

go-loadbalancer's Introduction

go-loadbalancer

PkgGoDev

Go load-balancing and upstream checks library.

go-loadbalancer's People

Contributors

smira avatar dmitriymv avatar unix4ever avatar

Stargazers

Edson Facioli avatar ik5 avatar Sven Greb avatar Andrey Syvrachev avatar Hashem Aldhaheri avatar Chris Gruber avatar Hüseyin Mert avatar Utku Özdemir avatar Caleb Woodbine avatar  avatar Johnny avatar William Zhang avatar zhanglei avatar Andrew Rynhard avatar  avatar

Watchers

 avatar  avatar James Cloos avatar Spencer Smith avatar Andrew Rynhard avatar Van Hau TRAN avatar Noel Georgi avatar  avatar

go-loadbalancer's Issues

multi-tiered scored upstreams

See siderolabs/talos#7191

Current implementation: round-robin across all live backends.

Desired implementation (optional, enabled as an option):

  • backend healtcheck returns a "rank" for all healthy backends
  • picking up a backend should start with the lowest "rank" - round-robin across live backends with the same rank
  • if the "rank" is empty, proceed to the next rank

What rank can be: e.g. healthcheck does TCP connect, measures latency, and splits in log_10(t) buckets: [<1ms, <10ms, <100ms, <1000ms, ...], which are mapped to ranks 0, 1, 2, 3, ...

The end goal is to make sure that loadbalancer picks the backends which are "better"/"closer"/"lower latency".

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.