Share via


How to: Set the Cluster Management Role and Lead Host Designations (Velocity)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Microsoft project code named "Velocity" offers two options for performing the cluster management role in the distributed cache cluster. If you store your cluster configuration settings in a SQL Server database, you have the choice of letting that same instance of SQL Server perform the cluster management role or letting the lead hosts do the job. This topic provides a general overview of how to set the cluster management role. For more information about the role, see Lead Hosts and Cluster Management (Velocity).

Note

If your cache cluster does not use SQL Server to store the cluster configuration settings, lead hosts must always perform the cluster management role.

This procedure assumes that you have a running cache cluster and that you are using a SQL Server database to store cluster configuration settings. By default, SQL Server will already be performing the cluster management role at the time of the first cache server installation. You need to follow this procedure only if you wish to change this setting.

To change this cluster management role, you need to export the cluster configuration setting to an XML file and edit the corresponding XML attribute value. This setting is specified with the leadHostManagement attribute of the partitionStoreConnectionSettings element. The partitionStoreConnectionSettings element is a child of the advancedProperties element, which is a child of the dataCache element. At the same time, you may also want to change which cache hosts are designated as lead hosts, as defined by the quorumHost cache host attribute. For more information about settings, see Cluster Configuration Settings (Velocity).

How to set the cluster management role and lead host designations

  1. From the PowerShell-based cache administration tool, export the cluster configuration settings with the Export-CacheClusterConfig command. For more information about using PowerShell, see Cache Administration with PowerShell (Velocity).

  2. Open the XML-based cluster configuration file that was exported in the previous step.

  3. Locate and edit the leadHostManagement attribute in the partitionStoreConnectionSettings element, which is a child of the advancedProperties element. Setting to true means that the cache hosts designated as lead hosts will perform the cluster management role. Setting to false means that the instance of SQL Server where the cluster configuration database is stored will perform the cluster management role.

  4. (optional) Specify additional or different cache hosts as lead hosts. To designate a cache host as a lead host, locate the appropriate host element corresponding to the cache host. Change the quorumHost attribute of the host element as desired. Setting to true means the cache host will perform the cluster management role when leadHostManagement is true. Setting it to false means that the cache host will never perform the cluster management role.

  5. Save the XML-based cluster configuration file that was edited.

  6. Stop the cache cluster if it is running with the Stop-CacheCluster. Note: this will flush all data out of the cache cluster.

  7. Use the Import-CacheClusterConfig command to import the XML-based cluster configuration file that was edited in steps 3 and 4.

  8. Start the cache cluster with the Start-CacheCluster command for the new configuration settings to take effect.

See Also

Tasks

How to: Edit Cluster Configuration Settings (Velocity)
How to: Edit Cache Configuration Settings with PowerShell (Velocity)

Concepts

Cluster Configuration Settings (Velocity)
Cache Administration with PowerShell (Velocity)
Configuration (Velocity)

Other Resources

Cache Concepts (Velocity)
Configuring the Cache Cluster (Velocity)
Configuring the Cache Client with XML (Velocity)
Using Configuration Methods (Velocity)