Skip to content

Auto failover3 - #38534

Merged
Matthew Metcalf (mrm9084) merged 14 commits into
Azure:feature/spring-boot-3from
mrm9084:AutoFailover3
Mar 22, 2024
Merged

Matthew Metcalf (mrm9084) merged 14 commits into
Azure:feature/spring-boot-3from
mrm9084:AutoFailover3

Conversation

@mrm9084

Copy link
Copy Markdown
Member

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
Copy Markdown
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

try {
List<SRVRecord> srvRecords = findAutoFailoverEndpoints(mainEndpoint, providedEndpoints);

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

Copy link
Copy Markdown
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
Copy Markdown
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.

…/java/com/azure/spring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java

Co-authored-by: Xiaolu Dai <31124698+saragluna@users.noreply.github.com>
…/java/com/azure/spring/cloud/appconfiguration/config/implementation/AppConfigurationReplicaClientsBuilder.java

Co-authored-by: Xiaolu Dai <31124698+saragluna@users.noreply.github.com>
@mrm9084
Matthew Metcalf (mrm9084) merged commit abcf8c1 into Azure:feature/spring-boot-3 Mar 22, 2024
@mrm9084
Matthew Metcalf (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