Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Apache Cassandra 維護工作
私有雲 v4.18.01 的邊緣
反熵維護
Apache Cassandra 環節點需要定期維護,以確保所有節點的一致性。如要執行這項維護作業,請使用 Cassandra「nodetool -h localhostpair」指令。
在單一區域或單一資料中心 Apigee 安裝中,在一個 Cassandra 節點上使用「nodetool -h localhostpair」指令,確保環環中的所有節點保持一致。在多區域或多資料中心的 Apigee 安裝中,應針對環狀中的每個節點 (適用於所有區域或資料中心) 使用「nodetool -h localhost train -pr」。
詳情請參閱下列資源:
記錄檔維護
Cassandra 記錄會儲存在每個節點的 /opt/apigee/var/log/cassandra 目錄中。根據預設,您可以建立最多 50 個記錄檔,每個檔案的大小上限為 20 MB。一旦達到這項限制,之後建立較新的記錄檔,系統就會刪除這些檔案。
如果您發現 Cassandra 記錄檔佔用過多空間,您可以編輯 log4j 設定,修改分配給記錄檔的空間容量。
- 編輯 /opt/apigee/customer/application/cassandra.properties 以設定下列屬性。如果該檔案不存在,請建立該檔案:
conf_log4j-server_log4j.appender.r.maxfilesize=20MB
# 檔案大小上限
conf_log4j-server_log4j.appender.r.maxbackupindex=50 # 開啟檔案大小上限
- 使用下列指令重新啟動 Cassandra:
$
/opt/apigee/apigee-service/bin/apigee-service apigee-cassandra restart
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-02-03 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-02-03 (世界標準時間)。"],[],[]]