Skip to content

Commit d179563

Browse files
authored
Merge pull request #113027 from MikeDodaro/disasterRecovery
Add section to document per PR 112111, story 1709722
2 parents cc781c9 + 5d31422 commit d179563

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

articles/spring-cloud/disaster-recovery.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,34 @@ Ensuring high availability and protection from disasters requires that you deplo
2626

2727
[Azure Traffic Manager](../traffic-manager/traffic-manager-overview.md) provides DNS-based traffic load-balancing and can distribute network traffic across multiple regions. Use Azure Traffic Manager to direct customers to the closest Azure Spring Cloud service instance to them. For best performance and redundancy, direct all application traffic through Azure Traffic Manager before sending it to your Azure Spring Cloud service.
2828

29-
If you have Azure Spring Cloud applications in multiple regions, use Azure Traffic Manager to control the flow of traffic to your applications in each regions. Define an Azure Traffic Manager endpoint for each service using the service IP. Customers should connect to an Azure Traffic Manager DNS name pointing to the Azure Spring Cloud service. Azure Traffic Manager load balances traffic across the defined endpoints. If a disaster strikes a data center, Azure Traffic Manager will direct traffic from that region to its pair, ensuring service continuity.
29+
If you have Azure Spring Cloud applications in multiple regions, use Azure Traffic Manager to control the flow of traffic to your applications in each region. Define an Azure Traffic Manager endpoint for each service using the service IP. Customers should connect to an Azure Traffic Manager DNS name pointing to the Azure Spring Cloud service. Azure Traffic Manager load balances traffic across the defined endpoints. If a disaster strikes a data center, Azure Traffic Manager will direct traffic from that region to its pair, ensuring service continuity.
30+
31+
## Create Azure Traffic Manager for Azure Spring Cloud
32+
33+
1. Create Azure Spring Cloud in two different regions.
34+
You will need two service instances of Azure Spring Cloud deployed in two different regions (East US and West Europe). Launch an existing Azure Spring Cloud application using the Azure portal to create two service instances. Each will serve as primary and fail-over endpoint for Traffic.
35+
36+
**Two service instances info:**
37+
38+
| Service Name | Location | Application |
39+
|--|--|--|
40+
| service-sample-a | East US | gateway / auth-service / account-service |
41+
| service-sample-b | West Europe | gateway / auth-service / account-service |
42+
43+
2. Set up Custom Domain for Service
44+
Follow [Custom Domain Document](/articles/spring-cloud/spring-cloud-tutorial-custom-domain.md) to set up custom domain for these two existing service instances. After successful set up, both service instances will bind to custom domain: bcdr-test.contoso.com
45+
46+
3. Create a traffic manager and two endpoints: [Create a Traffic Manager profile using the Azure portal](https://docs.microsoft.com/azure/traffic-manager/quickstart-create-traffic-manager-profile).
47+
48+
Here is the traffic manager profile:
49+
* Traffic Manager DNS Name: http://asc-bcdr.trafficmanager.net
50+
* Endpoint Profiles:
51+
52+
| Profile | Type | Target | Priority | Custom Header Settings |
53+
|--|--|--|--|--|
54+
| Endpoint A Profile | External Endpoint | service-sample-a.asc-test.net | 1 | host: bcdr-test.contoso.com |
55+
| Endpoint B Profile | External Endpoint | service-sample-b.asc-test.net | 2 | host: bcdr-test.contoso.com |
56+
57+
4. Create a CNAME record in DNS Zone: bcdr-test.contoso.com CNAME asc-bcdr.trafficmanager.net.
58+
59+
5. Now, the environment is completely set up. Customers should be able to access the app via: bcdr-test.contoso.com

0 commit comments

Comments
 (0)