This StackStorm Cassandra pack provides integrations for Apache Cassandra.
nodetool
- StackStorm nodetool wrapper that simply executes nodetool command on a remote host (Connects to remote host via SSH and runs the nodetool command).
is_seed_node
- Check if a supplied node_id
is part of seeds
in Cassandra config file. Prints True/False as output. Requires pyyaml to be installed on the remote box running Cassandra. This is a remote script action i.e. StackStorm uses SSH to connect to remote box and executes the script.
list_seed_nodes
- Prints all the seed nodes from all seed providers in Cassandra config file. Prints a comma separated list of nodes as output (delimiter can be changed by supplying a param to action). This is a remote script action i.e. StackStorm uses SSH to connect to remote box and executes the script. Requires pyyaml to be installed on the remote box running Cassandra.
clear_cass_data
- Removes Cassandra data dir on remote box. Dangerous!!!
stop_dse
- Stops DSE cassandra service on an ubuntu box (uses upstart).
start_dse
- Stops DSE cassandra service on an ubuntu box (uses upstart).
get_dse_status
- Gets DSE cassandra service status from an ubuntu box (uses upstart).
replace_host
- Workflow that replaces a given dead_node
with a replacement_node
.
append_replace_address_env_file
- Appends JVM_OPT -Dcassandra.replace_address=${dead_node_ip}
in cassandra startup env file.
remove_replace_address_env_file
- Removes -Dcassandra.replace_address
from cassandra startup env file.
wait_for_port_open
- Wait until specified port opens, sleeps for specified interval and constantly tries to connect to server + port combo.
remove_gossip_peer_info
- Removes cassandra gossip peer info from disk.