Cassandra の問題

現在、Apigee Edge のドキュメントを表示しています。
Apigee X のドキュメントをご確認ください
情報

診断情報

このセクションでは、Private Cloud の設定で Cassandra の問題で収集する必要がある診断情報について説明します。

診断情報 この情報はどこで収集できますか? 情報を収集するにはどうすればよいですか?
Cassandra の構成ファイル Cassandra
cp /opt/apigee/apigee-cassandra/conf/cassandra-topology.properties /tmp/cassandra_topology_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).properties
cp /opt/apigee/apigee-cassandra/conf/cassandra-env.sh /tmp/cassandra_envsh_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).sh
cp /opt/apigee/apigee-cassandra/conf/cassandra.yaml /tmp/cassandra_conf_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).yaml
Nodetool コマンド出力 Cassandra
alias nodetool=/opt/apigee/apigee-cassandra/bin/nodetool

Cassandra の現在のバージョンを取得します。

nodetool version 2>&1 | tee /tmp/nodetool_version_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

Cassandra データセンターの現在のステータスを取得します。

nodetool status 2>&1 | tee /tmp/nodetool_status_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

データセンター全体の現在のリング/トークンのステータスを取得します。

nodetool ring 2>&1 | tee /tmp/nodetool_ring_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

ヒープ使用量、稼働時間、例外などに関する詳細情報を取得します。

nodetool info 2>&1 | tee /tmp/nodetool_info_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

ゴシップ情報を調べる:

nodetool gossipinfo 2>&1 | tee /tmp/nodetool_gossipinfo_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

現在の Cassandra オペレーションのステータスを取得します。

nodetool compactionstats -H 2>&1 | tee /tmp/nodetool_compactionstats_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
nodetool tpstats 2>&1 | tee /tmp/nodetool_tpstats_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
nodetool netstats -H 2>&1 | tee /tmp/nodetool_netstats_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
nodetool cfstats -H 2>&1 | tee /tmp/nodetool_cfstats_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt

プロキシのヒストグラムを取得(コーディネーターによって記録された完全なリクエスト レイテンシを表示):

nodetool proxyhistograms 2>&1 | tee /tmp/nodetool_proxyhistograms_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
Cassandra のログ Cassandra
tar cvzf /tmp/cassandra_logs_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).tar.gz /opt/apigee/var/log/apigee-cassandra/system* /opt/apigee/var/log/apigee-cassandra/config*
tail -2000 /opt/apigee/var/log/apigee-cassandra/apigee-cassandra.log > /tmp/cassandra_apigee-cassandra_log_$(hostname)_$(date +%Y.%m.%d_%H.%M.%S).log
コンポーネントのバージョンとステータス Cassandra
apigee-all version 2>&1 | tee /tmp/apigee_all_version_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
apigee-all status 2>&1 | tee /tmp/apigee_all_status_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
すべての診断データを圧縮する Cassandra
tar -cvzf /tmp/data_CASE#_$(hostname).tar.gz /tmp/nodetool* /tmp/cassandra_* /tmp/apigee_all*