DB 記憶體最佳化資料檔案群組容器空間 (積存)

Microsoft.SQLServer.2016.DependencyMonitor.DBFileGroupFx.ContainerFreeSpacePercentRollUp (DependencyMonitor)

所有記憶體最佳化資料檔案群組容器的可用磁碟空間,低於警告臨界值設定 (以記憶體最佳化資料檔案群組容器大小加上磁碟可用空間總和的百分比表示) 時,此監視器會回報警告。此監視器是相依性 (積存) 監視器。

Knowledge Base article:

摘要

注意: 此監視器是相依性 (積存) 監視器。此監視器的健全狀況狀態取決於任何成員監視器的最佳狀態。另請參閱相關單位監視器的知識庫文章。

所有記憶體最佳化資料檔案群組容器的可用磁碟空間,低於警告臨界值設定 (以記憶體最佳化資料檔案群組容器大小加上磁碟可用空間總和的百分比表示) 時,此監視器會回報警告。

因為會將更多資料加入記憶體最佳化資料的資料表,所以記憶體最佳化資料檔案群組容器資料夾一般來說會隨著時間變大。因此,管理員會希望能夠進行監視,以確定容器資料夾的儲存位置中能有足夠的剩餘空間。

原因

在其中設定資料庫儲存體位置的磁碟機上可用磁碟空間太低時,可能會失敗,進而無法成功處理資料、延遲使用者查詢,或影響其他共用相同磁碟空間配置的應用程式。

對持續性記憶體最佳化資料表進行 DML 作業時,會配置儲存體。最多需要設定持續性記憶體最佳化資料表的記憶體最佳化資料大小 4 倍的儲存體。如果儲存體設定正確,但可用儲存體空間仍然不足,則可能是容器支援的 IOPS 無法支援工作負載的需求。對於容器一般會建議要支援 3 倍資料產生率的 IOPS,以說明資料/差異檔案的初始母體擴展,以及需要讀取來源資料/差異檔案後,將它們合併至目標 CFP 的自動合併作業。

解決方式

可用空間不足的解決方法取決於根本原因,必須在發生這問題時於每種情況下調查。此狀況可透過任何可能方式之一予以減輕:

可覆寫的參數

名稱

描述

預設值

警示優先程式

定義警示優先順序。

一般

警示嚴重性

定義警示嚴重性。

MatchMonitorHealth

已啟用

啟用或停用該工作流程。

產生警示

定義工作流程是否會產生警示。

Element properties:

TargetMicrosoft.SQLServer.2016.DBFileGroupFx
Parent MonitorMicrosoft.SQLServer.2016.AggregateMonitor.DBFileGroupFx.SpaceMonitor
AlgorithmBestOf
Source MonitorMicrosoft.SQLServer.2016.Monitor.Container.FreeSpacePercent
RelationshipMicrosoft.SQLServer.2016.DBFileGroupFxHostsContainer
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2016: 記憶體最佳化資料檔案群組容器空間即將用盡
電腦 "{3}" 上 SQL 執行個體 "{2}" 中資料庫 "{1}" 的記憶體最佳化資料檔案群組 "{0}",即將用盡空間。請檢閱單元監視的狀態,以判斷根本原因。
如需詳細資料,請參閱<知識>一節。

Source Code:

<DependencyMonitor ID="Microsoft.SQLServer.2016.DependencyMonitor.DBFileGroupFx.ContainerFreeSpacePercentRollUp" Accessibility="Public" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.DBFileGroupFx" ParentMonitorID="Microsoft.SQLServer.2016.AggregateMonitor.DBFileGroupFx.SpaceMonitor" Remotable="true" Priority="Normal" RelationshipType="SQL2016Core!Microsoft.SQLServer.2016.DBFileGroupFxHostsContainer" MemberMonitor="Microsoft.SQLServer.2016.Monitor.Container.FreeSpacePercent">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2016.DependencyMonitor.DBFileGroupFx.ContainerFreeSpacePercentRollUp.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.FileGroup"]/GroupName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Database"]/DatabaseName$</AlertParameter2>
<AlertParameter3>$Target/Host/Host/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$</AlertParameter3>
<AlertParameter4>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<Algorithm>BestOf</Algorithm>
<MemberUnAvailable>Error</MemberUnAvailable>
</DependencyMonitor>