summaryrefslogtreecommitdiffstats
path: root/src/commands/failover.json
blob: c6948629ae8386c523b3aac775590de7a3685488 (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
52
53
54
{
    "FAILOVER": {
        "summary": "Starts a coordinated failover from a server to one of its replicas.",
        "complexity": "O(1)",
        "group": "server",
        "since": "6.2.0",
        "arity": -1,
        "function": "failoverCommand",
        "command_flags": [
            "ADMIN",
            "NOSCRIPT",
            "STALE"
        ],
        "reply_schema": {
            "const": "OK"
        },
        "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
            }
        ]
    }
}