Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds failover data centers to DiscoveryClient. Fixes gh-712 #681

Open
wants to merge 1 commit into
base: 2.2.x
Choose a base branch
from

Conversation

d4c4nf3
Copy link

@d4c4nf3 d4c4nf3 commented Nov 7, 2020

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

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.
@pivotal-issuemaster
Copy link

@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.

@pivotal-issuemaster
Copy link

@Vojislav-Cuk Thank you for signing the Contributor License Agreement!

@ryanjbaxter
Copy link
Contributor

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.

@d4c4nf3
Copy link
Author

d4c4nf3 commented Apr 24, 2021

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.

@spencergibb spencergibb changed the title Adds failover data centers to DiscoveryClient. Fixes gh-444 Adds failover data centers to DiscoveryClient. Fixes gh-712 Jun 3, 2021
@spencergibb spencergibb linked an issue Jun 3, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for spring cloud loadbalancer and datacenter
5 participants