修改运行状况服务设置

适用于:Azure Stack HCI 版本 23H2 和 22H2;Windows Server 2022、Windows Server 2019 Windows Server 2016

运行状况服务首次是在 Windows Server 2016 中发布的,它可改进运行存储空间直通的群集的日常监视和操作体验。

许多控制运行状况服务行为的参数都以设置的形式公开。 可修改这些设置,来调整错误或操作的攻击性、打开/关闭某些行为等等。

请使用以下 PowerShell cmdlet 来设置或修改这些设置。

使用情况

Get-StorageSubSystem Cluster* | Set-StorageHealthSetting -Name <SettingName> -Value <Value>

示例

Get-StorageSubSystem Cluster* | Set-StorageHealthSetting -Name "System.Storage.Volume.CapacityThreshold.Warning" -Value 70

通用设置

下面列出了一些经常修改的设置及其默认值。

卷容量阈值

"System.Storage.Volume.CapacityThreshold.Enabled"  = True
"System.Storage.Volume.CapacityThreshold.Warning"  = 80
"System.Storage.Volume.CapacityThreshold.Critical" = 90

池保留容量阈值

"System.Storage.StoragePool.CheckPoolReserveCapacity.Enabled" = True

物理磁盘生命周期

"System.Storage.PhysicalDisk.AutoPool.Enabled"                             = True
"System.Storage.PhysicalDisk.AutoRetire.OnLostCommunication.Enabled"       = True
"System.Storage.PhysicalDisk.AutoRetire.OnUnresponsive.Enabled"            = True
"System.Storage.PhysicalDisk.AutoRetire.DelayMs"                           = 900000 (i.e. 15 minutes)
"System.Storage.PhysicalDisk.Unresponsive.Reset.CountResetIntervalSeconds" = 3600 (i.e. 60 minutes)
"System.Storage.PhysicalDisk.Unresponsive.Reset.CountAllowed"              = 3

可用内存阈值

"Microsoft.Health.Setting.Node.AvailableToSystemMemoryLimit" = 0.100

支持的组件文档

运行状况服务提供了一种强制机制,用于将存储空间直通所使用的组件限制为管理员或解决方案供应商提供的受支持的组件文档中的组件。 有关详细信息,请参阅受支持的组件文档

固件推出

"System.Storage.PhysicalDisk.AutoFirmwareUpdate.SingleDrive.Enabled"       = True
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.Enabled"           = True
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.LongDelaySeconds"  = 604800 (i.e. 7 days)
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.ShortDelaySeconds" = 86400 (i.e. 1 day)
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.LongDelayCount"    = 1
"System.Storage.PhysicalDisk.AutoFirmwareUpdate.RollOut.FailureTolerance"  = 3

平台/静置

"Platform.Quiescence.MinDelaySeconds" = 120 (i.e. 2 minutes)
"Platform.Quiescence.MaxDelaySeconds" = 420 (i.e. 7 minutes)

指标

"System.Reports.ReportingPeriodSeconds" = 1

调试

"System.LogLevel" = 4

后续步骤