Configure the WMI Service on Application Servers for the HostNameMemory Affinity Provider

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

This topic describes how to configure Application Request Routing (ARR) and the application servers in the server farm to use the Microsoft.Web.Arr.HostNameMemory affinity provider. The HostNameMemory provider requires that certain permissions be granted on the application servers so that the ARR server can query the memory relation performance counters and determine where to affinitize the host names. The host name affinity providers are only applicable if ARR is configured to be used in shared hosting scenarios.

You must have IIS 7 installed on a computer that is running Windows Server® 2008 or newer, ARR and its dependent modules, and ARR configured for shared hosting scenarios before you continue.

To configure ARR and the application servers to use the HostNameMemory provider, you must do the following:

  1. Enable COM security.

  2. Add a user to the Performance Monitor Users group.

  3. Configure the WMI Control settings.

  4. Test the configuration on ARR.

Enable COM Security

Perform the following steps on all the application servers in your server farm. You do not have to perform these steps on the ARR servers.

To enable COM security

  1. Open a command prompt with administrator user rights.

  2. Enter the following command: dcomcnfg

  3. In the Component Services window, in the left pane, expand Component Services and then expand Computers.

  4. Right-click My Computer, and then select Properties.

  5. In the My Computer Properties dialog box, on the COM Security tab, in the Launch and Activation Permissions section, click Edit Limits….

  6. In the Launch and Activation Permission dialog box, add the account of the worker process that ARR uses, and then set the following permissions to Allow: Local Launch, Remote Launch, and Remote Activation.

  7. Click OK.

Add a User to the Performance Monitor Users Group

Perform the following steps on all the application servers in your server farm. You do not have to perform these steps on the ARR servers.

To add a user to the Performance Monitors Users group

  1. Open a command prompt with administrator user rights.

  2. Enter the following command: compmgmt

  3. In the Computer Management window, in the left pane, expand Computer Management, System Tools, and Local Users and Groups.

  4. Select Groups.

  5. In the middle pane, right-click Performance Monitor Users, and then click Add to Group….

  6. Add the account of the worker process that ARR uses, and then click OK.

Configure the WMI Control Settings

Perform the following steps on all the application servers in your server farm. You do not have to perform these steps on the ARR servers.

To configure the WMI Control settings

  1. In the Computer Management window, in the left pane, expand Computer Management and then expand Services and Applications.

  2. Right-click WMI Control, and then click Properties.

  3. In the WMI Control Properties dialog box, on the Security tab, expand Root, and then select CIMV2.

  4. Click Security.

  5. In the Security for ROOT\CIMV2 dialog box, add the account of the worker process that ARR uses, and then set the following permissions to Allow: Execute Methods, Enable Account, and Remote Enable.

  6. Click OK.

Test the Configuration on ARR

Perform the following steps on all the application servers in your server farm. You do not have to perform these steps on the ARR servers.

To test the configuration on ARR

  1. Open IIS Manager.

  2. In the Connections pane, expand the server node and then expand the Server Farms node. Select the server farm that you have configured for host name affinity.

  3. In the Server Farm pane, double-click Server Affinity.

  4. On the Server Affinity page, do the following:

    1. Select the Use host name check box.

    2. In the Host name affinity provider list, select Microsoft.Web.Arr.HostNameMemory.

  5. Click Apply.

  6. Click Test, and verify that the test passes.

See Also

Concepts

ARR Tasks for Shared Hosters
ARR Common Tasks