Cassandra-Probleme

Sie sehen die Dokumentation zu Apigee Edge.
Zur Apigee X-Dokumentation
weitere Informationen

Diagnosedaten

In diesem Abschnitt werden die Diagnoseinformationen erläutert, die bei Cassandra-Problemen in der Private Cloud-Einrichtung erfasst werden müssen.

Diagnosedaten Wo erhalte ich diese Informationen? Wie erhalte ich diese Informationen?
Cassandra-Konfigurationsdateien 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
Ausgabe der Nodetool-Befehle Cassandra
alias nodetool=/opt/apigee/apigee-cassandra/bin/nodetool

Rufen Sie die aktuelle Cassandra-Version ab:

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

Rufen Sie den aktuellen Status des Cassandra-Rechenzentrums ab:

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

Rufen Sie den aktuellen Ring-/Token-Status über das Rechenzentrum ab:

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

Rufen Sie weitere Informationen zur Heap-Nutzung, Betriebszeit, Ausnahmen usw. ab:

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

Informationen zu Gerüchten einholen:

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

Rufen Sie den Status der aktuellen Cassandra-Vorgänge ab:

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

Proxy-Histogramme abrufen (zeigt die vollständige Anfragelatenz an, die vom Koordinator aufgezeichnet wurde):

nodetool proxyhistograms 2>&1 | tee /tmp/nodetool_proxyhistograms_$(hostname)-$(date +%Y.%m.%d_%H.%M.%S).txt
Cassandra-Logs 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
Version und Status der Komponenten 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
Alle Diagnosedaten komprimieren Cassandra
tar -cvzf /tmp/data_CASE#_$(hostname).tar.gz /tmp/nodetool* /tmp/cassandra_* /tmp/apigee_all*