-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Auto failover3 #38534
Auto failover3 #38534
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
try { | ||
List<SRVRecord> srvRecords = findAutoFailoverEndpoints(mainEndpoint, providedEndpoints); | ||
|
||
srvRecords.sort((SRVRecord a, SRVRecord b) -> a.compareTo(b)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to sort this srvRecords
? Is there no priority order for the user-defined endpoints array in yaml file?
If we sort this array, then it doesn't follow the order that user defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came up in the design review. We plan on supporting the SRV priority and weight values.
When a user defines multiple stores, we follow the list they provide, top down where the top option is the highest priority.
...ring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java
Outdated
Show resolved
Hide resolved
...ring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java
Outdated
Show resolved
Hide resolved
...ring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java
Outdated
Show resolved
Hide resolved
...ring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java
Outdated
Show resolved
Hide resolved
…/java/com/azure/spring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java Co-authored-by: Xiaolu Dai <[email protected]>
…/java/com/azure/spring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java Co-authored-by: Xiaolu Dai <[email protected]>
Description
Adds Auto Failover to App Configuration. Looks up SRV records of configuration stores to find possible backup stores in case of provided stores are unreachable.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines