How can I test multiple Web Role instances in Windows Azure?

后端 未结 3 1565
温柔的废话
温柔的废话 2021-01-28 15:52

Background: I\'ve deployed an MVC3 application to 2 Azure Web Role instances, but I\'m confused as to how I can test out the possibility of one of these instances failing.

3条回答
  •  无人及你
    2021-01-28 16:33

    If you have RDP access enabled to your instances you can very easily remove one or more instance out from LoadBalancer even when the instance is running healthy without writing any line of code. You just need to RDP to your instance and then use PowerShell scripts to take the instance off from loadbalancer. In my following blog I have described the exact procedure:

    http://blogs.msdn.com/b/avkashchauhan/archive/2012/01/27/windows-azure-troubleshooting-taking-specific-windows-azure-instance-offline.aspx

    The above details also help to run load testing by removing N instances from total M instances .

提交回复
热议问题