salt.modules.cassandra_mod
Cassandra NoSQL Database Module
- depends
-
pycassa Cassandra Python adapter
- configuration
-
The location of the 'nodetool' command, host, and thrift port needs to be specified via pillar:
cassandra.nodetool: /usr/local/bin/nodetool cassandra.host: localhost cassandra.thrift_port: 9160
-
Return existing column families for all keyspaces or just the provided one.
CLI Example:
salt '*' cassandra.column_families salt '*' cassandra.column_families <keyspace>
salt.modules.cassandra_mod.column_families(keyspace=None)
-
Return a dictionary of column family definitions for the given keyspace/column_family
CLI Example:
salt '*' cassandra.column_family_definition <keyspace> <column_family>
salt.modules.cassandra_mod.column_family_definition(keyspace, column_family)
-
Return compactionstats info
CLI Example:
salt '*' cassandra.compactionstats
salt.modules.cassandra_mod.compactionstats()
-
Return cassandra node info
CLI Example:
salt '*' cassandra.info
salt.modules.cassandra_mod.info()
-
Return existing keyspaces
CLI Example:
salt '*' cassandra.keyspaces
salt.modules.cassandra_mod.keyspaces()
-
Return netstats info
CLI Example:
salt '*' cassandra.netstats
salt.modules.cassandra_mod.netstats()
-
Return cassandra ring info
CLI Example:
salt '*' cassandra.ring
salt.modules.cassandra_mod.ring()
-
Return tpstats info
CLI Example:
salt '*' cassandra.tpstats
salt.modules.cassandra_mod.tpstats()
-
Return the cassandra version
CLI Example:
salt '*' cassandra.version
salt.modules.cassandra_mod.version()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.cassandra_mod.html