cassandra_compactionthreshold -- Sets the compaction threshold.

Synopsis

Sets the compaction threshold.

Requirements

The below requirements are needed on the host that executes this module.

Parameters

keyspace (True, str, None)
The keyspace to adjust compaction thresholds for.
table (True, str, None)
The table to adjust compaction thresholds for.
min (True, int, None)
Sets the minimum number of SSTables to trigger a minor compaction when using SizeTieredCompactionStrategy or DateTieredCompactionStrategy.
max (True, int, None)
Sets the maximum number of SSTables to allow in a minor compaction when using SizeTieredCompactionStrategy or DateTieredCompactionStrategy.
host (optional, str, 127.0.0.1)
The hostname.
port (optional, int, 7199)
The Cassandra TCP port.
password (optional, str, None)
The password to authenticate with.
password_file (optional, str, None)
Path to a file containing the password.
username (optional, str, None)
The username to authenticate with.
nodetool_path (optional, str, None)
The path to nodetool.
nodetool_flags (optional, str, -Dcom.sun.jndi.rmiURLParsing=legacy)
Flags to pass to nodetool.
debug (optional, bool, False)
Enable additional debug output.

Examples

- name: Adjust compactionthreshold with module
  community.cassandra.cassandra_compactionthreshold:
    keyspace: system
    table: local
    min: 8
    max: 64

Return Values

cassandra_compactionthreshold (success, str, )
The return state of the executed command.

Status

Authors

  • Rhys Campbell (@rhysmeister)