cassandra_concurrency -- Manage concurrency parameters on the Cassandra node.

Synopsis

Manage concurrency parameters on the Cassandra node.

Set maximum concurrency for processing stage.

Set number of concurrent compactors.

Set the number of concurrent view builders in the system.

Requirements

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

Parameters

concurrency_type (optional, str, default)
Type of concurrency to manage.
concurrency_stage (optional, str, None)

The processing stage

Only relevent when concurrency_type is default

value (True, int, None)
Number of threads / maximum concurrency.
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: Set concurrency for read processing stage
  community.cassandra.cassandra_concurrency:
    concurrency_stage: "ReadStage"
    value: 8

- name: Set concurrency for compactors
  community.cassandra.cassandra_concurrency:
    concurrency_type: "compactors"
    value: 2

- name: Set concurrency for view builders
  community.cassandra.cassandra_concurrency:
    concurrency_type: "viewbuilders"
    value: 1

Return Values

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

Status

Authors

  • Rhys Campbell (@rhysmeister)