You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
Currently only .balance([server array]) takes care of load balancing and it's Round robin way of load balancing. What if I want to divide request load to server let's say 70% and 30% (assuming only two instances are running) depending on the health of the server.
So the feature I want is to have .balanceFunction() and where we can add custom code for load balancing.
Thank you.
The text was updated successfully, but these errors were encountered:
@tomas-fp Thank you so much :)
So this will actually work for global routes. What if i want to have different routes for different services. let's say proxy.all('/service1') .balance([servers for service1])
and proxy.all('/service2') .balance([servers for service2])
In this case, it will not work. I found work around to change target option in .useForward(). but anyhow RR(default load balancing) will be executed before that to choose target server. So will it be performance issue in long term or can you suggest any other efficient solution in this case.
Currently only .balance([server array]) takes care of load balancing and it's Round robin way of load balancing. What if I want to divide request load to server let's say 70% and 30% (assuming only two instances are running) depending on the health of the server.
So the feature I want is to have .balanceFunction() and where we can add custom code for load balancing.
Thank you.
The text was updated successfully, but these errors were encountered: