Configuring Azure Traffic Manager using Performance Based Routing Method
Microsoft Azure Traffic Manager is a DNS load-balancing solution in Azure. It controls the distribution of user traffic for service endpoints in different datacenters. Service endpoints supported by Traffic Manager include Azure VMs, Web Apps, and Cloud services etc. Traffic Manager uses the Domain Name System (DNS) to direct client requests to the most appropriate endpoint based on a traffic-routing method and the health of the endpoints. It distributes traffic based on the below load balancing method:
- Priority – which routes all traffic will be routed to primary end point unless it fails.
- Performance – which routes the traffic to the closet endpoint by measuring network latency.
- Weighted – which distributes traffic based on weight. Higher is the weight, higher the routed traffic to the end point.
- Geographic – users are directed to specific endpoints based on their geographic location from where the DNS query originates from.
- Create a Web App in Southeast Asia and East Asia.
- Create a Traffic Manager profile.
- Configure Traffic Manager.
- Add Endpoints in Traffic Manager Profile.
- Load balance between Southeast Asia and East Asia.
4. Repeat steps 1 through 3 to add a second endpoint for the web app that you created. In the Endpoints blade, click Add. 5. In the Add endpoint blade, in the Type drop-down list, select Azure endpoint. In the Name text box, type the name of your web app, In the Target resource type drop-down list of websites, select App Service. Click Choose an app service. In the Resource blade, select the web app that you created before, MSSERVERPROWebAppEA. Click OK to add the endpoint. 6. In the Endpoints blade, make sure that both endpoints are added and Online in MONITOR STATUS. Step 5: Load balance between Southeast Asia and East Asia 1. In the browser, in the Azure Portal, in the MsserverProPer Traffic Manager blade, click the link under the DNS name section copy the link http://msserverproper.trafficmanager.net. 2. Open the new tab in the browser, past the link http://msserverproper.trafficmanager.net and make sure that “Your App Service app is up and running”. Copy the FTP address of Web App Service to upload custom website: 1. In the App’s resource page, select Overview in the left menu, then click the Web App that you want to copy the FTP address link. 2. In the App Services Overview blade, click to FTP/hostname click to Copy FTP address of Southeast Asia an East Asia ftp addresses. Add Deployment Credentials Local Git and FTP can’t authenticate using the credentials used for the portal. Create a new username and password to use with those deployment methods. This username and password will be the same across all apps in all subscriptions associated with your Microsoft Azure account. In the Azure portal, perform the following steps: 1. On the MSSERVEPROWebAppSA Web App blade, click Deployment credentials. On the Deployment credentials blade, in the FTP/deployment username text box, type the name of the user you intend to create. In the Password text box, type the password. In the Confirm password text box, type the same password, and then click Save. Deploy files to Azure by using FTP From the FTP client, use the connection to connect to your web app. Once connected you will see the screen below. Expand the folder and then expand site folder until you will see /site/wwwroot directory in Azure. You will drag index.html file from your computer to wwwroot folder. You can now see index.html file. Do this on both Azure site.
Related Post Creating a Windows Virtual Machine and Availability Set at the same time using the Azure Portal