Khi thử nghiệm với Cassandra Tôi đã quan sát thấy rằng Cassandra ghi vào các tập tin sau đây:Cấu trúc tệp Cassandra - các tệp được sử dụng như thế nào?
/.../cassandra/commitlog/CommitLog-<id>.log
/.../cassandra/data/Keyspace1/Standard1-1-Data.db
/.../cassandra/data/Keyspace1/Standard1-1-Filter.db
/.../cassandra/data/Keyspace1/Standard1-1-Index.db
/.../cassandra/data/system/LocationInfo-1-Data.db
/.../cassandra/data/system/LocationInfo-1-Filter.db
/.../cassandra/data/system/LocationInfo-1-Index.db
/.../cassandra/data/system/LocationInfo-2-Data.db
/.../cassandra/data/system/LocationInfo-2-Filter.db
/.../cassandra/data/system/LocationInfo-2-Index.db
/.../cassandra/data/system/LocationInfo-3-Data.db
/.../cassandra/data/system/LocationInfo-3-Filter.db
/.../cassandra/data/system/LocationInfo-3-Index.db
/.../cassandra/system.log
Cấu trúc chung có vẻ là:
/.../cassandra/commitlog/CommitLog-ID.log
/.../cassandra/data/KEYSPACE/COLUMN_FAMILY-N-Data.db
/.../cassandra/data/KEYSPACE/COLUMN_FAMILY-N-Filter.db
/.../cassandra/data/KEYSPACE/COLUMN_FAMILY-N-Index.db
/.../cassandra/system.log
cấu trúc tập tin Cassandra là gì? Cụ thể hơn, các thư mục data
, commitlog
được sử dụng như thế nào và cấu trúc của tệp trong thư mục data
là gì (Data
/Filter
/Index
)?
Way lặn trong và hiểu những gì đang xảy ra dưới mui xe trong Cassandra! – Brian