summaryrefslogtreecommitdiffstats
path: root/src/commands/sentinel-simulate-failure.json
blob: 4912a8b7091b5f179b6a09d7eb12ee7ce0b8b217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
    "SIMULATE-FAILURE": {
        "summary": "Simulate failover scenarios",
        "group": "sentinel",
        "since": "3.2.0",
        "arity": -3,
        "container": "SENTINEL",
        "function": "sentinelCommand",
        "command_flags": [
            "ADMIN",
            "SENTINEL",
            "ONLY_SENTINEL"
        ],
        "arguments": [
            {
                "name": "mode",
                "type": "oneof",
                "optional":true,
                "multiple":true,
                "arguments": [
                    {
                        "name": "crash-after-election",
                        "type": "pure-token"
                    },
                    {
                        "name": "crash-after-promotion",
                        "type": "pure-token"
                    },
                    {
                        "name": "help",
                        "type": "pure-token"
                    }
                ]
            }            
        ]
    }
}