How do I disable autocompaction in `cassandra.yaml

2019-08-23 23:44发布

问题:

https://stackoverflow.com/a/47837940/260805 hints that it should be possible. I would like to disable it for a longer period of times (~2 days) when enabling incremental repairs.

回答1:

(Disclaimer: I'm a ScyllaDB employee)

As far as I know you can disable autocompaction in the following ways:

  1. For a column family (Table), by setting its strategy to NullCompactionStrategy. (I think this one is supported only in Scylla, but not in Cassandra)
  2. Using nodetool: $ nodetool <options> disableautocompaction -- <keyspace> <table> ... (I think this one is supported only in Cassandra, but not in Scylla)