Configure the weighted traffic routing method in Traffic Manager
A common traffic routing method pattern is to provide a set of identical endpoints, which include cloud services and websites, and send traffic to each in a round-robin fashion. The following steps outline how to configure this type of traffic routing method.
Azure Web App already provides round-robin load balancing functionality for websites within an Azure Region (contains multiple datacenters). Traffic Manager allows you to specify round-robin traffic routing method for websites in different datacenters.
To configure the weighted traffic routing method
- From a browser, sign in to the Azure portal. If you don’t already have an account, you can sign up for a free one-month trial.
- In the portal’s search bar, search for the Traffic Manager profiles and then click the profile name that you want to configure the routing method for.
- In the Traffic Manager profile blade, verify that both the cloud services and websites that you want to include in your configuration are present.
- In the Settings section, click Configuration, and in the Configuration blade, complete as follows:
- For traffic routing method settings, verify that the traffic routing method is Weighted. If it is not, click Weighted from the dropdown list.
- Set the Endpoint monitor settings identical for all every endpoint within this profile as follows:
- Select the appropriate Protocol, and specify the Port number.
- For Path type a forward slash /. To monitor endpoints, you must specify a path and filename. A forward slash "/" is a valid entry for the relative path and implies that the file is in the root directory (default).
- At the top of the page, click Save.
- Test the changes in your configuration as follows:
- In the portal’s search bar, search for the Traffic Manager profile name and click the Traffic Manager profile in the results that the displayed.
- In the Traffic Manager profile blade, click Overview.
- The Traffic Manager profile blade displays the DNS name of your newly created Traffic Manager profile. This can be used by any clients (for example,by navigating to it using a web browser) to get routed to the right endpoint as determined by the routing type. In this case all requests are routed each endpoint in a round-robin fashion.
- Once your Traffic Manager profile is working, edit the DNS record on your authoritative DNS server to point your company domain name to the Traffic Manager domain name.