メインコンテンツまでスキップ
バージョン: 4.x

file_cache_statistics

概要

各BEノード上のデータキャッシュに関連するメトリック情報を表示するために使用されます。メトリック情報は、BEのデータキャッシュに関連する監視メトリックから取得されます。

Tip

このシステムTableはバージョン2.1.6および3.0.2からサポートされています。

データベース

information_schema

Table情報

Column Nameタイプデスクリプション
BE_IDBIGINTBEノードID
BE_IPVARCHAR(256)BEノードIP
CACHE_PATHVARCHAR(256)BEノードキャッシュパス
METRIC_NAMEVARCHAR(256)メトリック名
METRIC_VALUEDOUBLEメトリック値
Note

Dorisの異なるバージョンでは、メトリックが異なる場合があります

2.1.x Metrics

重要なメトリックのみがリストされています。

  • normal_queue_curr_elements

    現在キャッシュ内にあるFile Blocksの数。

  • normal_queue_max_elements

    キャッシュで許可されるFile Blocksの最大数。

  • normal_queue_curr_size

    現在のキャッシュサイズ。

  • normal_queue_max_size

    許可される最大キャッシュサイズ。

  • hits_ratio

    BE起動以降の全体的なキャッシュヒット率。範囲0-1。

  • hits_ratio_5m

    過去5分間のキャッシュヒット率。範囲0-1。

  • hits_ratio_1h

    過去1時間のキャッシュヒット率。範囲0-1。

3.0.x Metrics

TODO

  1. すべてのキャッシュメトリックを照会

    mysql> select * from information_schema.file_cache_statistics;
    +-------+---------------+----------------------------+----------------------------+--------------------+
    | BE_ID | BE_IP | CACHE_PATH | METRIC_NAME | METRIC_VALUE |
    +-------+---------------+----------------------------+----------------------------+--------------------+
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | normal_queue_curr_elements | 1392 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | normal_queue_curr_size | 248922234 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | normal_queue_max_elements | 102400 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | normal_queue_max_size | 21474836480 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | hits_ratio | 0.8539634687001242 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | hits_ratio_1h | 0 |
    | 10003 | 172.20.32.136 | /mnt/output/be/file_cache/ | hits_ratio_5m | 0 |
    +-------+---------------+----------------------------+----------------------------+--------------------+
  2. クエリキャッシュのヒット率とヒット率による並び替え

    select * from information_schema.file_cache_statistics where METRIC_NAME = "hits_ratio" order by METRIC_VALUE desc;