Cluster Configuration Settings
Microsoft AppFabric 1.1 for Windows Server provides the ability to edit your cache cluster configuration settings in XML or by using Windows PowerShell directly. This topic describes the cluster configuration settings that are available and how they are specified with XML or Windows PowerShell. For more information about how to make cluster configuration changes, see Configuring the Cache Cluster.
There are four types of settings configured in the cluster configuration settings:
Cluster settings: Describe settings related to the cache cluster.
Cache settings: Describe settings related to each of the caches in the cluster.
Host settings: Describe settings related to each of the cache hosts that are members of the cluster.
Cluster configuration storage location settings: Describe the storage location and designate the cluster management role. For more information about the cluster management role, see Lead Hosts and Cluster Management.
Note
The XML file produced by the Export-CacheClusterConfig
Windows PowerShell command is referred to as the "XML file" throughout this topic.
Important
Many of the attributes and elements described below are case sensitive. When modifying these settings, it is important to use the casing as it documented in the following tables.
Cluster Settings
The only way to create a cluster and specify its initial settings is to install Microsoft AppFabric 1.1 for Windows Server and run the AppFabric Configuration Wizard on at least one cache host.
Two settings are used to describe the cluster itself: the name and the size (small, medium or large). In the XML file, these settings are defined as attributes of the dataCache
element and are assigned when the AppFabric Configuration Wizard runs on the first cache server of the cluster.
Setting | XML Configuration Location | Setting assigned when… |
---|---|---|
Cluster size |
The |
Cluster size is assigned when the AppFabric Caching Service is configured on the first cache server. |
Cache Settings
The only way to create a cache and to specify its initial settings is to use the Windows PowerShell-based cache administration tool New-Cache
command.
The cache settings are stored at the cluster level. For this reason, these settings can be found in the XML file as a child of the caches
element. In Windows PowerShell, use the Get-CacheConfig
command to view the cache configuration settings, and the Set-CacheConfig
command to change the cache settings.
Note
To change cache configuration settings with the XML file or the Set-CacheConfig
command, you must restart the whole cluster with the Windows PowerShell Restart-CacheCluster
command. You can also use Windows PowerShell to remove and re-create a cache by the same name (and different settings) without restarting the cluster.
The following table lists the settings available to each cache:
Setting | XML Configuration Location | Windows PowerShell Configuration Location |
---|---|---|
Cache name |
The |
Assigned with the |
If cache notifications is enabled |
The |
Assigned with the |
If the high availability feature is enabled |
The |
Assigned with the |
Cache type |
The |
Assigned with the |
Eviction type |
The |
Assigned with the |
If expiration is enabled |
The |
Assigned with the |
Default object time-out (minutes) |
The |
Assigned with the |
Host Settings
The only way to create a host and specify its initial settings is to install Microsoft AppFabric 1.1 for Windows Server on a server and then run the AppFabric Configuration Wizard to configure the Caching Service. You have the option to either create a new cache cluster or join an existing cache cluster.
The cache cluster must keep track of each cache host that is a member of the cluster. In the XML file, a host
element is used to specify each host in the cluster. In Windows PowerShell, the Get-CacheConfig
and Set-CacheConfig
commands can be used to view or reconfigure the cache host configuration.
The settings available to each cache host are as follows:
Setting | XML Configuration Location | Windows PowerShell Configuration Location |
---|---|---|
Cache server name |
The |
Assigned based on the computer name. View this setting with the |
Cache host name (name of the host service) |
The |
Assigned at installation time. View this setting with the |
Cache port number (default value is 22233) |
The |
Assigned at installation time. Reconfigure this setting with the |
Cluster port number (default value is 22234) |
The |
Assigned at installation time. Reconfigure this setting with the |
Lead host designation |
The |
Assigned at installation time. View this setting with the |
Cache size (MB)(total space allocated for storing data on the cache host) |
The |
Assigned at installation time. Reconfigure this setting with the |
Low watermark |
The |
Assigned at installation time. Reconfigure this setting with the |
High watermark |
The |
Assigned at installation time. Reconfigure this setting with the |
Cluster Configuration Storage Location Settings
The configuration storage location settings are assigned when AppFabric Caching features are first configured. They describe the storage location and designate the cluster management role.
In the XML file, these settings are specified in the partitionStoreConnectionSettings
element, a child of the advancedProperties
element (which is a child of the dataCache
element).
In Windows PowerShell, the provider name and connection string must be specified when you set context to the cluster with the Use-CacheCluster
command. If these parameters are not supplied to Windows PowerShell, they are taken from the cluster configuration storage location.
The settings related to these properties are as follows:
Setting | XML Configuration Location | Setting assigned when… |
---|---|---|
Cluster Management Role |
The |
The cluster management role is assigned at configuration time depending on where you store your cluster configuration settings. For more information, see Lead Hosts and Cluster Management (AppFabric 1.1 Caching). |
Security Properties |
Security properties for the cache cluster are set in the |
The default values for the cluster are |
See Also
Concepts
Edit Cluster Configuration Settings
Cluster Configuration Storage Options
Cache Administration with Windows PowerShell (AppFabric 1.1)
Application Configuration Settings (AppFabric 1.1 Caching)
Configuring the Cache Cluster
AppFabric Caching Concepts (AppFabric 1.1 Caching)
2012-09-12