Windows Azure Traffic ManagerVersion: 1.0 DescriptionWindows Azure Traffic Manager enables you to manage and distribute incoming traffic to your Windows Azure hosted services whether they are deployed in the same data center or in different centers across the world. In this hands-on lab, you will explore different load balancing policies available in Traffic Manager and how you can use them to enhance performance, increase availability, and balance traffic to your hosted services. OverviewWindows Azure Traffic Manager is a load balancing solution that enables the distribution of incoming traffic among different hosted services in your Windows Azure subscription, regardless of their physical location. Traffic routing occurs as a the result of policies that you define and that are based on one of the following criteria:
You assign each policy a DNS name and associate it with multiple hosted services. The load balancer responds to queries for the policy DNS name with the address of one of the associated hosted services that satisfies the criteria for the policy. Traffic Manager constantly monitors hosted services to ensure they are online and will not route traffic to any service that is unavailable. In this hands-on lab, you will explore Windows Azure Traffic Manager by publishing a very simple application to multiple hosted services, each one in a different geographic region, and then create several Traffic Manager policies to evaluate how the load balancer routes traffic across these services. About DNS CachingThe client resolver in Windows caches DNS host entries for the duration of their time-to-live (TTL). Whenever you evaluate Traffic Manager policies, retrieving host entries from the cache bypasses the policy and you could observe unexpected behavior. For example, accessing a service via the endpoint of a round robin policy will continue to yield the same host address for as long as the entry remains in the cache. In general, this is not a problem because the goal for this type of policy is to balance traffic among different clients. However, when you test the policy from a single client, you need to ensure that the DNS name is resolved for each request to observe the round robin behavior. If the TTL of a DNS host entry in the cache expires, new requests for the same host name should result in the client resolver executing a fresh DNS query. However, browsers typically cache these entries for longer periods, even after their TTL has expired. To reflect the behavior of a Traffic Manager policy accurately when accessing the application through a browser, it is necessary to force the browser to clear its DNS cache before each request. Throughout the lab, you will be required to access policy endpoints repeatedly to evaluate their behavior. To ensure predictable results, it is essential that you do not use a cached entry. Restarting the browser is one way to guarantee this condition, but requires closing every open browser window before each request, even those that display other sites. To make this process simpler, the lab provides a registry script to shorten the lifetime of entries in the browser’s DNS cache. After executing the script and restarting the browser, evaluating a policy is simply a matter of waiting for the duration of the TTL and then refreshing the browser window. Note, however, that because this script changes Internet Explorer's configuration, you will only execute it inside a remote desktop session connected to one of the hosted services in the application. For more information, see Appendix B: Configuring the DNS Cache of the Browser. About the World ApplicationThe World Application is a sample ASP.NET application included in this hands-on lab to represent a global application that you could scale across multiple data centers by taking advantage of Windows Azure Traffic Manager. Although it does not implement any specific functionality of its own, the application does include some useful features that can assist you in the evaluation of Traffic Manager. Some of these features are:
Figure 1 Home page of the World Application Traffic Manager monitors hosted services by executing periodic HTTP GET requests to an endpoint that you specify when creating a policy. In the simplest case, this endpoint can be the URL to a file served by the application. Traffic Manager considers the service to be available if its monitoring endpoint responds with an HTTP status code of 200 OK within 5 seconds. For the application in this hands-on lab, this monitoring endpoint, located at the URL /AppHealth, has been implemented so that it can be disabled on demand. During the hands-on lab, you will exploit this feature to simulate a service failure. Note: Important: Currently, access to Windows Azure Traffic Manager is available through an invite-only beta program. Unless you have enrolled in this program, you will not be able to complete this hands-on lab. To apply for a beta program, use your browser to sign in to your subscription at the Windows Azure Management Portal, select the Home tab and then choose the Beta Programs option. Follow the instructions to apply for the Windows Azure Traffic Manager CTP. ObjectivesIn this hands-on lab, you will learn how to:
PrerequisitesThe following is required to complete this hands-on lab:
ExercisesThis hands-on lab includes the following exercises:
Estimated time to complete this lab: 60 minutes. Note: When you first start Visual Studio, you must select one of the predefined settings collections. Every predefined collection is designed to match a particular development style and determines window layouts, editor behavior, IntelliSense code snippets, and dialog box options. The procedures in this lab describe the actions necessary to accomplish a given task in Visual Studio when using the General Development Settings collection. If you choose a different settings collection for your development environment, there may be differences in these procedures that you need to take into account. | Downloads Download The Offline Training Kit Contents
|
.png)