Configure a Health Test for an ARR Server Farm

Updated: November 5, 2009

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

This topic describes how to configure Application Request Routing (ARR) to test the health of the content servers. ARR monitors the health of the content servers by using live traffic tests and explicit URL tests. Live traffic testing is performed automatically when requests are made to the ARR server. You can configure explicit URL testing to work in conjunction with the live traffic testing.

You can configure a health test, including an explicit URL test, by using the UI or by using the command line.

  1. Open Notepad, and create a text file named HealthCheck.txt with the sentence I am healthy.

  2. Put the healthCheck.txt file on the application servers.

  3. To verify that the HealthCheck.txt file renders properly, open the file in a Web browser.

  4. Open IIS Manager.

  5. In the Connections pane, expand the server node and then expand the Server Farms node. Select your server farm.

  6. In the Server Farm pane, double-click Health Test.

  7. On the Health Test page, enter the following in the URL box:

    http://serverName/healthCheck.txt

    where serverName is the name of your ARR server.

  8. Enter the following in the Response match box: healthy

    Response match is an optional test that searches the body of a response and looks for an expected string. Because the HealthCheck.txt file contains the phrase “I am healthy,” the response match test will look for the word “healthy.”

  9. Click Apply.

  1. Open a command prompt with administrator user rights, and navigate to %windir%\system32\inetsrv.

  2. To set the URL to http://serverName/HealthCheck.txt that includes the “I am healthy” string to match, enter the following command:

    appcmd.exe set config –section:webFarms /[name=’serverFarmName’].applicationRequestRouting.healthCheck.url:”http://serverName/healthCheck.txt” /[name=’serverFarmName’].applicationRequestRouting.healthCheck.responseMatch:”I am healthy.” /commit:apphost

    where serverName is the name of your server and serverFarmName is the name of your server farm. For example, to set the URL to http://contoso/HealthCheck.txt, enter the following command:

    appcmd.exe set config –section:webFarms /[name=’myServerFarm’].applicationRequestRouting.healthCheck.url:”http://contoso/healthCheck.txt” /[name=’myServerFarm’].applicationRequestRouting.healthCheck.responseMatch:”I am healthy.” /commit:apphost

See Also

Community Additions

ADD
Show: