Cassandra 문제

현재 Apigee Edge 문서가 표시되고 있습니다.
Apigee X 문서로 이동
정보

진단 정보

이 섹션에서는 프라이빗 클라우드 설정에서 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*