Giter Club home page Giter Club logo

Comments (8)

manast avatar manast commented on June 29, 2024

I guess that if this was implemented: https://github.com/OptimalBits/redbird/blob/master/lib/proxy.js#L229 it would just be a matter of using the load-balancer in redbird (i.e. registering the same route pointing to two different ip addresses)

from redbird.

manast avatar manast commented on June 29, 2024

(we accept patches :)

from redbird.

MostHated avatar MostHated commented on June 29, 2024

Yeah, I saw the load balancing, I guess a switch could be put in to select either failover, load balancing, or both. I am not great with programming, but do have some experience and am trying to learn and get better, which is why if there was not a way to do it that was already built in, I was going to try and make one. : )

from redbird.

manast avatar manast commented on June 29, 2024

its mostly that currently the load balancer does not handle well targets that do not respond, so this is actually I need to implement. Maybe next week...

from redbird.

MostHated avatar MostHated commented on June 29, 2024

How would I go about dynamically register and then unregister a proxy? Such as, register a proxy to an IP, if it does not respond to either ping or some other sort of connection attempt, then unregister that proxy for now, and then register a new one.
Would I be able to do something similar to the below if I implement some sort of way to check (just as a small example)?
if (host1Connection == true){ proxy.register("example.com", "http://1.1.1.1") } else { proxy.register("example.com", "http://1.1.1.2" ) }

Or do you have to somehow "unregister" the first proxy?

from redbird.

manast avatar manast commented on June 29, 2024

you need to unregister: https://github.com/OptimalBits/redbird#unregister
You can check how the etcd backend is implemented for inspiration...

from redbird.

dimasahmad avatar dimasahmad commented on June 29, 2024

Any updates on the failover support?

from redbird.

gustter avatar gustter commented on June 29, 2024

Hi there! Any update on the failover. I think it's a critical functionality in load balancing and it would be very cool if the module had it.

from redbird.

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.