發表文章

目前顯示的是 4月, 2018的文章

如何解決Foglight PI 的Page In/Out rate問題

圖片
有時即使 Foglight PI page In/Out rate rule 值設定很低,還是會觸發 Alarm email 告警,這讓管理人員很困擾,還好現在有解法。 步驟一 : 登入 FMS http://<<FMS 主 機 名 稱 或IP>>:8080 ,如下圖所示,在 Dashboard 左邊的 Administration | Rules & Notifications | Rules à 輸入 page à 勾選 Page In/Out Rate à Disable 。 步驟二 : 如下圖所示,點 Page In rate 會出現選項,請點選 Copy 。 步驟三 : 如下圖所示,請自訂名稱,並取消下面兩個勾選,然後確認。 步驟四 : 如下圖所示,在 Condition 下面輸入。 rate = #pageInRate#   (rate > registry("INF_MemoryPageInRateFatal") && thresholdState(rate)?.name == "Fatal") ||    fireAfterNSuccesses(@rulette_data,                        registry("INF_MemoryPageInRateFatalCount"),                       "pageInRate", rate?.value >= registry("INF_MemoryPageInRateFatal")) 步驟五 : 如下圖所示,記得儲存才會生效。 步驟六 : 如下圖所示,點 Page Out Rate ,會出現選項。 步驟七 : 如下圖所示,自訂名稱,和取消兩個勾選。 步驟八 : 如下圖

在Foglight PI for SQL Server 產出Index Fragment Report

圖片
在Foglight PI for SQL Server 產出Index Fragment Report 為了有效管理 SQL Server 目前的 Index Fragment 資訊,可以利用 Foglight Report 功能產出 Index Fragment Report 。 請注意,此報表產出有分 SQL Server 2008 及 SQL Server 2012( 含 ) 之後的 SQL Server 版本。 1. 請依圖示選取 Reports | Run a Report 。 2. 點選 tab All SQL Templates | Index Fragmentation Report 。接著按 Next 繼續。 3. 選定要產出 Index Fragmentation Report 的 instance name. 這邊範例選定 192.168.200.40   4. 接著設定 Minimal Fragmentation % ,這個是設定產出 Index Fragmentation 的百分比, default 30% 。 微軟原廠建議 30% 的判斷標準為需要進行 Rebuild Index 的動作,若是 5%~30% 表示進行 Reorganize Index 動作即可,請依您的實際需求進行設定。 下圖按下 Set 按鈕完成設定。 5 . 下圖其它項目說明。 Minimal Partition Size (MB): 若要產出報表的 Index 有 Partition Index ,還可以設定此項目。 若您要產出報表的 SQL Server 是 2012 或之後的版本,可直接按下 Next 繼續。 若您要產出報表的 SQL Server 是 2008 ,請務必要如下圖設定 Database include list ,如下圖點選項目 Database include list 右邊 Null 旁邊的向下三角形圖示。 在 SQL Server 2008 的版本,一次只能設定產出一個 database 的 Index Fragmentation 報表 , SQL Server 2012 及以上的版本不受限制。 設定 database 完成後,