We are having 4 zones, each zone having a zuul and UI service running. Ribbon is our load balancer across services.
We are achieving sticky session in Zuul with a custom load balancing rule as specified in
As you can see in the above file, there is line which gets the list of reachable servers for a particular service
List<Server> servers = getLoadBalancer().getReachableServers();
The servers list will have only one server because of Zone affinity being enabled.
Is there any way to get all the available servers without taking zone into consideration?
We are looking for something which could replace the above mentioned load balancer call.
In the current stickysession rule, we are using ZoneAvoidanceRule. We also tried AvailabilityFilteringRule, BaseLoadBalancer & RoundRobinRule. But none of them are giving all 4 server instance reference.
What can done to read all the server list?