问题
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:
- For a column family (Table), by setting its strategy to NullCompactionStrategy. (I think this one is supported only in Scylla, but not in Cassandra)
- Using nodetool:
$ nodetool <options> disableautocompaction -- <keyspace> <table> ...
(I think this one is supported only in Cassandra, but not in Scylla)
来源:https://stackoverflow.com/questions/47866555/how-do-i-disable-autocompaction-in-cassandra-yaml