cassandra_decommission -- Deactivates a node by streaming its data to another node.

Synopsis

Deactivates a node by streaming its data to another node.

Uses the nodetool ring command to determine if the node is still in the cluster.

To ensure correct function of this module please use the ip address of the node in the host parameter.

Requirements

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

Parameters

debug (optional, bool, False)
Add additional debug to module output.
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: Decommission a node
  community.cassandra.cassandra_decommission:

Return Values

msg (on failure, bool, )
A message indicating what has happened.
rc (always, int, )
Return code of the executed command.

Status

Authors

  • Rhys Campbell (@rhysmeister)