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

Auto failover3 #38534

Merged
merged 14 commits into from
Mar 22, 2024
Merged

Auto failover3 #38534

merged 14 commits into from
Mar 22, 2024

Conversation

mrm9084
Copy link
Member

@mrm9084 mrm9084 commented Jan 29, 2024

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions bot added the azure-spring All azure-spring related issues label Jan 29, 2024
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

com.azure.spring:spring-cloud-azure-appconfiguration-config

@mrm9084 mrm9084 marked this pull request as ready for review January 31, 2024 23:22
try {
List<SRVRecord> srvRecords = findAutoFailoverEndpoints(mainEndpoint, providedEndpoints);

srvRecords.sort((SRVRecord a, SRVRecord b) -> a.compareTo(b));
Copy link
Contributor

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.

Copy link
Member Author

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.

mrm9084 and others added 4 commits March 14, 2024 12:51
…/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]>
@mrm9084 mrm9084 merged commit abcf8c1 into Azure:feature/spring-boot-3 Mar 22, 2024
14 checks passed
@mrm9084 mrm9084 deleted the AutoFailover3 branch March 22, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants