重新配置缓存群集设置(Windows Server AppFabric 缓存)
缓存群集配置设置控制整个缓存群集的行为。 这包括诸如组成群集的缓存主机之类的属性(其中一些主机是主要主机)以及用于群集的安全模型。 使用 Export-CacheClusterConfig
Windows PowerShell 命令查看当前的缓存群集设置。
Export-CacheClusterConfig -File "c:\CacheClusterConfig.xml"
对配置进行任何必要的更改之后,可以使用 Import-CacheClusterConfig
命令应用更改。
Import-CacheClusterConfig -File "C:\CacheClusterConfig.xml"
缓存群集配置文件并不总是显示保持默认值的设置。 例如,如果您使用默认的安全设置,则您可能没有包含 securityProperties
子元素的 advancedProperties
元素。 但是如果您使用 Set-CacheClusterSecurity
命令禁用安全,则您会看到配置文件中显示的以下非默认值:
<advancedProperties>
<securityProperties mode="None" protectionLevel="None" />
</advancedProperties>
请注意,某些设置(如缓存群集的大小)只能使用 Export-CacheClusterConfig
和 Import-CacheClusterConfig
命令进行设置。 使用特定的 Windows PowerShell 命令也可以修改其他缓存群集设置(如安全)。
备注
群集级别的更改需要整个缓存群集停机一段时间。 在使用 Import-CacheClusterConfig
命令之前,您必须首先使用 Stop-CacheCluster
命令停止缓存群集。
有关详细信息,请参阅配置缓存群集。
另请参阅
概念
常规缓存群集管理任务(Windows Server AppFabric 缓存)
2011-12-05