salt.modules.cassandra

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
salt.modules.cassandra.column_families(keyspace=None)

Return existing column families for all keyspaces or just the provided one.

CLI 范例:

salt '*' cassandra.column_families
salt '*' cassandra.column_families <keyspace>
salt.modules.cassandra.column_family_definition(keyspace, column_family)

Return a dictionary of column family definitions for the given keyspace/column_family

CLI 范例:

salt '*' cassandra.column_family_definition <keyspace> <column_family>
salt.modules.cassandra.compactionstats()

Return compactionstats info

CLI 范例:

salt '*' cassandra.compactionstats
salt.modules.cassandra.info()

Return cassandra node info

CLI 范例:

salt '*' cassandra.info
salt.modules.cassandra.keyspaces()

Return existing keyspaces

CLI 范例:

salt '*' cassandra.keyspaces
salt.modules.cassandra.netstats()

Return netstats info

CLI 范例:

salt '*' cassandra.netstats
salt.modules.cassandra.ring()

Return cassandra ring info

CLI 范例:

salt '*' cassandra.ring
salt.modules.cassandra.tpstats()

Return tpstats info

CLI 范例:

salt '*' cassandra.tpstats
salt.modules.cassandra.version()

Return the cassandra version

CLI 范例:

salt '*' cassandra.version