actionElastiCache

test_failover

Tests automatic failover on a single shard (also known as node groups)

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.elasticache.actions
Nametest_failover
Returnlist

You can only invoke test_failover for no more than 5 shards in any rolling 24-hour period.

Usage

JSON

{
  "name": "test-failover",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elasticache.actions",
    "func": "test_failover",
    "arguments": {
      "replication_group_id": "",
      "node_group_id": ""
    }
  }
}

YAML

name: test-failover
provider:
  arguments:
    node_group_id: ""
    replication_group_id: ""
  func: test_failover
  module: chaosaws.elasticache.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
replication_group_idstringYesReplication Group IDGroup/cluster targetted
node_group_idstringYesNode Group IDNode group/shard within the replication group

Signature

def test_failover(
        replication_group_id: str,
        node_group_id: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass