AWS
reboot_cache_clusters
Reboots one or more nodes in a cache cluster
Returns the number of cache nodes associated to the cluster
Below are the details and signature of the activity Python module.
Type | probe |
Module | chaosaws.elasticache.probes |
Name | get_cache_node_count |
Return | integer |
Usage
JSON
{
"name": "get-cache-node-count",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosaws.elasticache.probes",
"func": "get_cache_node_count",
"arguments": {
"cluster_id": ""
}
}
}
YAML
name: get-cache-node-count
provider:
arguments:
cluster_id: ""
func: get_cache_node_count
module: chaosaws.elasticache.probes
type: python
type: probe
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
cluster_id | list | Yes | Cluster ID | Cluster identifier |
example
{
"type": "probe",
"name": "validate cache node count",
"tolerance": 3,
"provider": {
"type": "python",
"module": "chaosaws.elasticache.probes",
"func": "get_cache_node_count",
"arguments": {
"cluster_id": "MyTestCluster"
}
}
}
Signature
def get_cache_node_count(cluster_id: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> int:
pass