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:
Enable COM security.
Add a user to the Performance Monitor Users group.
Configure the WMI Control settings.
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
Open a command prompt with administrator user rights.
Enter the following command: dcomcnfg
In the Component Services window, in the left pane, expand Component Services and then expand Computers.
Right-click My Computer, and then select Properties.
In the My Computer Properties dialog box, on the COM Security tab, in the Launch and Activation Permissions section, click Edit Limits….
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.
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
Open a command prompt with administrator user rights.
Enter the following command: compmgmt
In the Computer Management window, in the left pane, expand Computer Management, System Tools, and Local Users and Groups.
Select Groups.
In the middle pane, right-click Performance Monitor Users, and then click Add to Group….
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
In the Computer Management window, in the left pane, expand Computer Management and then expand Services and Applications.
Right-click WMI Control, and then click Properties.
In the WMI Control Properties dialog box, on the Security tab, expand Root, and then select CIMV2.
Click Security.
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.
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
Open IIS Manager.
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.
In the Server Farm pane, double-click Server Affinity.
On the Server Affinity page, do the following:
Select the Use host name check box.
In the Host name affinity provider list, select Microsoft.Web.Arr.HostNameMemory.
Click Apply.
Click Test, and verify that the test passes.