spring-cloud-consul
spring-cloud-consul copied to clipboard
Adds failover data centers to DiscoveryClient. Fixes gh-712
Adds a new property in discovery client configuration, a list named failoverDataCenters
.
If discovery client cannot find instance of wanted service in local
cluster it will look for instances of that service in given data centers.
See #712
@Vojislav-Cuk Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@Vojislav-Cuk Thank you for signing the Contributor License Agreement!
IMO I think we should get all instances from all configured data centers, and then only fail over to other data centers in the case that the instances in the current data center are not responsive.
My reasoning for this was that failover to other datacenters should be a rare occurrence. And these failover datacenters could also be very remote. So expensive calls to remote datacenters should be as rare as possible.