summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-failover.json
blob: f58fd562a7e2417d9c0fa7b8d2a48753c7f6517d (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
38
{
    "FAILOVER": {
        "summary": "Forces a replica to perform a manual failover of its master.",
        "complexity": "O(1)",
        "group": "cluster",
        "since": "3.0.0",
        "arity": -2,
        "container": "CLUSTER",
        "function": "clusterCommand",
        "command_flags": [
            "NO_ASYNC_LOADING",
            "ADMIN",
            "STALE"
        ],
        "arguments": [
            {
                "name": "options",
                "type": "oneof",
                "optional": true,
                "arguments": [
                    {
                        "name": "force",
                        "type": "pure-token",
                        "token": "FORCE"
                    },
                    {
                        "name": "takeover",
                        "type": "pure-token",
                        "token": "TAKEOVER"
                    }
                ]
            }
        ],
        "reply_schema": {
            "const": "OK"
        }
    }
}