テーブル・ヒストグラム診断情報の収集

DataStax Enterprise Performance Serviceを使用してテーブル・ヒストグラム診断情報の収集を有効にする手順。

以下のヒストグラム診断テーブルは、テーブル・レベルでヒストグラム・データを収集します。
  • cell_count_histograms

    パーティションあたりのセル・カウント。

  • partition_size_histograms

    パーティション・サイズ。

  • read_latency_histograms

    読み取りレイテンシー。

  • sstables_per_read_histograms

    読み取りあたりのSSTable。

  • write_latency_histograms

    書き込みレイテンシー。

注: これらのテーブルは、一部が、nodetool tablehistogramsユーティリティにより取得した情報と重複しています。主な違いは、tablehistograms出力が最新データであるのに対して、診断テーブルには有効期間データが含まれている点です。さらに、カラム・ファミリーにnodetool tablehistogramsが実行されるたびにヒストグラム値がリセットされるのに対して、診断ヒストグラム・テーブルのデータはリセットされません。

手順

DataStax Enterprise Performance Serviceを使用してテーブル・ヒストグラム・データの収集を有効にするには:

  1. dse.yamlファイルを編集します。
    dse.yamlファイルの場所は、インストールのタイプによって異なります。
    Installer-Services /etc/dse/dse.yaml
    パッケージ・インストール /etc/dse/dse.yaml
    Installer-No Services install_location/resources/dse/conf/dse.yaml
    tarボール・インストール install_location/resources/dse/conf/dse.yaml
  2. dse.yamlファイルで、histogram_data_optionsの有効化オプションをtrueに設定します。
    # Column Family Histogram data tables options
    histogram_data_options:
    enabled:true
    refresh_rate_ms: 10000
    retention_count: 3
  3. (任意)統計を更新する頻度を制御するには、refresh_rate_msパラメーターを増減します。

    refresh_rate_msにサンプリング周期(このデータを更新する頻度)の長さを指定します。

  4. オプション: テーブルに保持する完全なヒストグラムの数を常時制御するには、retention_countパラメーターを変更します。