cassandra_invalidatecache -- Invalidates the various caches on the Cassandra node.

Synopsis

Invalidates the various caches on the Cassandra node.

Invalidates the Counter, Key and Row caches.

Requirements

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

Parameters

cache (True, str, None)
The cache to clear.
debug (optional, bool, False)
Add additional debug output.
fake_counter (optional, bool, False)

Fake the counter results so the module wil execute the appropriate invalid cache command.

Intended for internal testing use only.

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.

Examples

- name: Invalidate the counter cache
  community.cassandra.cassandra_invalidatecache:
    cache: counter

- name: Invalidate the key cache
  community.cassandra.cassandra_invalidatecache:
    cache: key

- name: Invalidate the row cache
  community.cassandra.cassandra_invalidatecache:
    cache: row

Return Values

msg (success, str, )
A short description of what happened.

Status

Authors

  • Rhys Campbell (@rhysmeister)