How to check Azure load balancing?

I want to be able to configure the Azure load balancer emulator so that two consecutive calls to a web application always call calls to different instances.

How can i do this? How can I check if the load balancer is working as expected? Using HttpContext.Current.Request.Url and seing if the endpoint port is changing?

Thanks in advance

+5
source share
1 answer

The default load balancer, which is available for your Windows Azure Web and Worker roles, is a software load balancer and is not as configurable as it is in Round Robin setup. If you want to test this behavior, this is what you need to do:

  • Create two (or more) instances of your service with RDP enabled so that you can use RDP for both instances.
  • RDP to both of your instances and run NETMON or any network monitor solution.
  • Now go to the Windows Azure web application from your desktop.
  • , ( 60 ), , - , - Windows Azure.
  • - Windows Azure , . , .

. RDP, ASP.NET , , . - , :

int instanceID = RoleEnvironment.CurrentRoleInstance.Id;

Windows Azure, Windows Azure, Round-Robin, Performance . Traffis Manager article.

+9

All Articles