titan db (v0.5.4) を使用してアプリケーションを実行している 3 ノードの cassandra (2.1.8) クラスターがあります。データの量は非常に少ない (20 MB 未満) ですが、私のユース ケースでは時々削除が必要になるため、既にトゥームストーンに問題があります。すでに作成された墓石を取り除くことはできません。私が試した解決策は次のとおりです。
- 指定されたグラフインデックス テーブルのgc_graceを 60 秒に下げる
- nodetool フラッシュを実行する
- ノードツールの修復を実行する
- titan.graphindex テーブルでは、圧縮オプションを {'class': 'SizeTieredCompactionStrategy', 'unchecked_tombstone_compaction': 'true', 'tombstone_compaction_interval': '0', 'tombstone_threshold': '0.1'} として設定します。
- jmx から forceUserDefinedCompaction を実行しています。
その結果、統計は少し低下しましたが、スライスあたりの平均廃棄数とスライスあたりの最大廃棄数はまだ満足のいくものではありません。
Table: graphindex
**SSTable count: 1**
Space used (live): 661873
Space used (total): 661873
Space used by snapshots (total): 0
Off heap memory used (total): 6544
SSTable Compression Ratio: 0.6139286819777781
Number of keys (estimate): 4082
Memtable cell count: 0
Memtable data size: 0
Memtable off heap memory used: 0
Memtable switch count: 15
Local read count: 25983
Local read latency: 0.931 ms
Local write count: 23610
Local write latency: 0.057 ms
Pending flushes: 0
Bloom filter false positives: 0
Bloom filter false ratio: 0.00000
Bloom filter space used: 5208
Bloom filter off heap memory used: 5200
Index summary off heap memory used: 1248
Compression metadata off heap memory used: 96
Compacted partition minimum bytes: 43
Compacted partition maximum bytes: 152321
Compacted partition mean bytes: 203
Average live cells per slice (last five minutes): 728.4188892737559
Maximum live cells per slice (last five minutes): 4025.0
**Average tombstones per slice (last five minutes): 317.34938228841935**
**Maximum tombstones per slice (last five minutes): 8031.0**
すべての墓石を削除するオプションはありますか? ご提案いただきありがとうございます。