Direct Incoming Traffic to Hosted Services Based on Network Performance by Using Windows Azure Traffic Manager
[This topic contains preliminary content for the CTP release of Windows Azure Traffic Manager. To begin using the feature, go to the Virtual Network tab located in the Windows Azure Management Portal.]
Note |
|---|
| Traffic Manager settings are configured in the Windows Azure Management Portal, not in the preview version of the portal. If you are using the preview portal, click your sign-in name in the upper right corner of the preview portal, and then select Previous Portal. |
The Windows Azure Traffic Manager (WATM) allows you to control the distribution of user traffic to Windows Azure hosted services. For more information see Windows Azure Traffic Manager Overview.
In order to load balance hosted service that are located in different datacenters across the globe, you can direct incoming traffic to the closest hosted service. Although “closest” may directly correspond to geographic distance, it can also correspond to the location with the lowest latency to service the request. The Performance load balancing method will allow you to distribute based on location and latency, but cannot take into account real-time changes in network configuration or load. For more information on the different load balancing methods that Windows Azure Traffic Manager provides, see Load balancing methods in Windows Azure Traffic Manager.
The following steps will walk you through the process:
-
Deploy your hosted services into your production environment. See Creating a Hosted Service for Windows Azure. Also refer to Best practices for hosted services and policies when using Windows Azure Traffic Manager which discusses important information on hosted services included in a Traffic Manager policy.
-
Log into the Traffic Manager area in the Management Portal. The Windows Azure Platform Management Portal is at http://windows.azure.com. Traffic Manager can be accessed by clicking on Virtual Network in the lower left of the portal pages and then choosing Traffic Manager from the options in the left pane.
-
Choose Policies and click "Create". Choose the folder Policies from the left navigation tree to enable Create in the top toolbar. Choose Create. The Create Traffic Manager policy dialog will appear.

Figure 1 – Create button for policies -
Choose a subscription. Policies and domains are associated with single subscription.
-
Pick the Performance load balance method. For more information about the load balancing methods that are available in Traffic Manager, see Load balancing methods in Windows Azure Traffic Manager.
-
Find hosted services and add them to the policy. Use the filter box to find hosted services that contain the string you type into the box. Clear the box to display all hosted services in production for the subscription you selected in step 4.
Use the arrow buttons to add the hosted services to the policy. For each location, the primary hosted service is the first service listed. Additional hosted services that are listed are used for failover, in the order that they appear, when the primary hosted service is not available. Use the up and down arrows change the order as needed.
Note If you select the Performance load balancing method, the order of the selected services matters only if you have more than one service in the same location. -
Set up monitoring. Monitoring insures that hosted services that are offline are not sent traffic. You must have a specific path and filename set up.
See Monitoring hosted services in Windows Azure Traffic Manager for more information on the monitoring process. -
Name your Traffic Manager domain. Give your domain a unique name. You can only specify the prefix for your domain. Leave the DNS time to live (TTL) at its default time.
For more information about the effect of this setting, see Best practices for hosted services and policies when using Windows Azure Traffic Manager.
The Create Traffic Manager policy dialog box should look something like the example below.
Figure 2 – Dialog box for Performance load balancing method -
Test the Traffic Manager domain and policy. For more information about testing, see Test a Windows Azure Traffic Manager Policy.
-
Point your DNS Server to the Traffic Manager domain. Once your Traffic Manager Domain is setup and working, edit the DNS record on your authoritative DNS server to point your company domain to the Traffic Manager domain.
For example, the following command routes all traffic going to www.contoso.com to the Traffic Manager domain contoso.trafficmanager.net.www.contoso.com IN CNAME contoso.trafficmanager.net
For more information, see Point a Company Internet Domain to a Windows Azure Traffic Manager Domain.
See Also