summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-failover.json
blob: e7daf241cb95354f926c956d0284030699116397 (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
{
    "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"
                    }
                ]
            }
        ]
    }
}