summaryrefslogtreecommitdiffstats
path: root/src/commands/failover.json
blob: dd2e2951ff1282567fbc25193b8fa2554ccaab68 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
{
    "FAILOVER": {
        "summary": "Start a coordinated failover between this server and one of its replicas.",
        "complexity": "O(1)",
        "group": "server",
        "since": "6.2.0",
        "arity": -1,
        "function": "failoverCommand",
        "command_flags": [
            "ADMIN",
            "NOSCRIPT",
            "STALE"
        ],
        "arguments": [
            {
                "name": "target",
                "token": "TO",
                "type": "block",
                "optional": true,
                "arguments": [
                    {
                        "name": "host",
                        "type": "string"
                    },
                    {
                        "name": "port",
                        "type": "integer"
                    },
                    {
                        "token": "FORCE",
                        "name": "force",
                        "type": "pure-token",
                        "optional": true
                    }
                ]
            },
            {
                "token": "ABORT",
                "name": "abort",
                "type": "pure-token",
                "optional": true
            },
            {
                "token": "TIMEOUT",
                "name": "milliseconds",
                "type": "integer",
                "optional": true
            }
        ]
    }
}