Comments (8)
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.
(we accept patches :)
from redbird.
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.
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.
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.
you need to unregister: https://github.com/OptimalBits/redbird#unregister
You can check how the etcd backend is implemented for inspiration...
from redbird.
Any updates on the failover support?
from redbird.
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)
- ERR_INVALID_ARG_TYPE When Getting Certificate HOT 10
- ACME2 compatibility HOT 4
- Removing headers to work with other web servers and systems HOT 3
- http2 support relies on deprecated function HOT 1
- [ERR_INVALID_ARG_TYPE]: The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView HOT 2
- Not able to route request to web server
- Http -> Https redirects when path is specified redirrect incorrectly
- not working node-media-server
- Is redbird no longer maintained? HOT 8
- TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (87) HOT 1
- net::ERR_EMPTY_RESPONSE
- 0.10.0+ release?
- Hangs on multiple requests
- tcp connection
- turn off http2 for some route
- Implementing mutual TLS? (client certificate)
- resolver with path bug HOT 1
- Not listening to IPv4
- Build failure in master branch HEAD as of commit cb7781e
- Console log is full of errors (ver 0.10.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redbird.