2017-01-17 7 views
0

起こりません〜1 million 3)Ran ./nodetool compact keyspace_name table_nameカサンドラnodetoolコンパクトなものは、私は次の手順がなかった特定のテーブル</p> <p>から行を大量に削除したい

ただし、nodetool compact(手順3)を実行しても何も起こりません。圧縮を開始しません。墓石の数が多いため、私の要求のほとんどがタイムアウトになりました。

テーブルには、次の設定があります。

AND bloom_filter_fp_chance = 0.001 
    AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' 
    AND comment = '' 
    AND compaction = {'tombstone_threshold': '0.2', 'tombstone_compaction_interval': '86400', 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'} 
    AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} 
    AND dclocal_read_repair_chance = 0.1 
    AND default_time_to_live = 0 
    AND gc_grace_seconds = 0 
    AND max_index_interval = 2048 
    AND memtable_flush_period_in_ms = 0 
    AND min_index_interval = 128 
    AND read_repair_chance = 0.0 
    AND speculative_retry = '99.0PERCENTILE'; 

私は私が実際に不要なデータを取り除くことができるように圧縮し墓石を取り除くことを望みます。

レプリケーションファクタ2のクラスタに2つのノードがあります。 削除を行ったので、2つのノード間のサイズの差が大きくなりました。約700MBの違いがあります。私はDSC-カサンドラ-2.1.10

を使用しています cfstatsが

Keyspace: keyspace1 
     Read Count: 16316 
     Read Latency: 12.23892982348615 ms. 
     Write Count: 11078808 
     Write Latency: 0.6955001765532899 ms. 
     Pending Flushes: 0 
       Table: table1 
       SSTable count: 92 
       SSTables in each level: [1, 4, 38, 49, 0, 0, 0, 0, 0] 
       Space used (live): 38247164244 
       Space used (total): 38247164244 
       Space used by snapshots (total): 26692664189 
       Off heap memory used (total): 14695952 
       SSTable Compression Ratio: 0.32499125289530584 
       Number of keys (estimate): 2788 
       Memtable cell count: 16632 
       Memtable data size: 1839846 
       Memtable off heap memory used: 0 
       Memtable switch count: 93 
       Local read count: 16316 
       Local read latency: 12.239 ms 
       Local write count: 11078808 
       Local write latency: 0.696 ms 
       Pending flushes: 0 
       Bloom filter false positives: 331 
       Bloom filter false ratio: 0.00000 
       Bloom filter space used: 10960 
       Bloom filter off heap memory used: 10224 
       Index summary off heap memory used: 3672 
       Compression metadata off heap memory used: 14682056 
       Compacted partition minimum bytes: 216 
       Compacted partition maximum bytes: 3449259151 
       Compacted partition mean bytes: 25823653 
       Average live cells per slice (last five minutes): 405.3014160485502 
       Maximum live cells per slice (last five minutes): 5002.0 
       Average tombstones per slice (last five minutes): 0.0 
       Maximum tombstones per slice (last five minutes): 0.0 

答えて

0

固め戦略の下に表示されnodetoolコンパクトの行動を指示し、バージョン間のAPIに微妙な違いがあります

http://docs.datastax.com/en/archived/cassandra/3.x/cassandra/tools/toolsCompact.html vs https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsCompact.html

データと墓石を削除するには

  1. スイッチSizeTieredComapctionに圧密戦略
  2. 走行1 sstableバックLeveledCompaction

から

  • スイッチコンパクション実行(つまり、墓石でカバー墓石/データを保持しています)が生成されます主要な圧縮大きな圧縮と圧縮戦略の切り替えはIO集中的な操作です。その点を考慮してください。

  • 関連する問題

     関連する問題