Commit 72935b9d authored by Vitaly Arbuzov's avatar Vitaly Arbuzov
Browse files

Merge branch 'unstable' into dict-split-by-slot

parents 6baf20af 6948daca
......@@ -17,6 +17,9 @@
"command_tips": [
"REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:ONE_SUCCEEDED"
]
],
"reply_schema": {
"const": "OK"
}
}
}
......@@ -23,6 +23,10 @@
"name": "script",
"type": "string"
}
]
],
"reply_schema": {
"description": "The SHA1 digest of the script added into the script cache",
"type": "string"
}
}
}
......@@ -35,6 +35,14 @@
}
}
],
"reply_schema": {
"type": "array",
"description": "List with the members of the resulting set.",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"arguments": [
{
"name": "key",
......
......@@ -51,6 +51,11 @@
}
}
],
"reply_schema": {
"description": "Number of the elements in the resulting set.",
"type": "integer",
"minimum": 0
},
"arguments": [
{
"name": "destination",
......
......@@ -14,6 +14,9 @@
"acl_categories": [
"CONNECTION"
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "index",
......
......@@ -11,6 +11,11 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "string",
"description": "Returns OK if the current Sentinel configuration is able to reach the quorum needed to failover a master, and the majority needed to authorize the failover.",
"pattern": "OK"
},
"arguments": [
{
"name": "master-name",
......
......@@ -12,6 +12,72 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"oneOf": [
{
"type": "object",
"description": "When 'SENTINEL-CONFIG GET' is called, returns a map.",
"properties": {
"resolve-hostnames": {
"oneOf": [
{
"const": "yes"
},
{
"const": "no"
}
]
},
"announce-hostnames": {
"oneOf": [
{
"const": "yes"
},
{
"const": "no"
}
]
},
"announce-ip": {
"type": "string"
},
"announce-port": {
"type": "integer"
},
"sentinel-user": {
"type": "string"
},
"sentinel-pass": {
"type": "string"
},
"loglevel": {
"oneOf": [
{
"const": "debug"
},
{
"const": "verbose"
},
{
"const": "notice"
},
{
"const": "warning"
},
{
"const": "unknown"
}
]
}
},
"additionalProperties": false
},
{
"const": "OK",
"description": "When 'SENTINEL-CONFIG SET' is called, returns OK on success."
}
]
},
"arguments": [
{
"name":"action",
......
......@@ -11,6 +11,10 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"const": "OK",
"description": "Force a fail over as if the master was not reachable, and without asking for agreement to other Sentinels."
},
"arguments": [
{
"name": "master-name",
......
......@@ -11,6 +11,10 @@
"ADMIN",
"SENTINEL",
"ONLY_SENTINEL"
]
],
"reply_schema": {
"const": "OK",
"description": "Force Sentinel to rewrite its configuration on disk, including the current Sentinel state."
}
}
}
......@@ -12,6 +12,22 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"type": "string",
"description": "IP addr or hostname."
},
{
"type": "string",
"description": "Port.",
"pattern": "[0-9]+"
}
]
},
"arguments": [
{
"name": "master-name",
......
......@@ -12,6 +12,13 @@
"STALE",
"SENTINEL",
"ONLY_SENTINEL"
]
],
"reply_schema": {
"type": "array",
"description": "Helpful text about subcommands.",
"items": {
"type": "string"
}
}
}
}
......@@ -12,6 +12,33 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{
"oneOf": [
{
"const": 0,
"description": "Master is up."
},
{
"const": 1,
"description": "Master is down."
}
]
},
{
"type": "string",
"description": "Sentinel address."
},
{
"type": "integer",
"description": "Port."
}
]
},
"arguments": [
{
"name": "ip",
......
......@@ -12,6 +12,13 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "object",
"description": "The state and info of the specified master.",
"additionalProperties": {
"type": "string"
}
},
"arguments": [
{
"name": "master-name",
......
......@@ -12,6 +12,9 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "name",
......
......@@ -12,6 +12,9 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "master-name",
......
......@@ -12,6 +12,16 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"type": "array",
"description": "List of replicas for this master, and their state.",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"arguments": [
{
"name": "master-name",
......
......@@ -12,6 +12,9 @@
"SENTINEL",
"ONLY_SENTINEL"
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "master-name",
......
......@@ -55,6 +55,26 @@
}
}
],
"reply_schema": {
"anyOf":[
{
"description": "`GET` not given: Operation was aborted (conflict with one of the `XX`/`NX` options).",
"type": "null"
},
{
"description": "`GET` not given: The key was set.",
"const": "OK"
},
{
"description": "`GET` given: The key didn't exist before the `SET`",
"type": "null"
},
{
"description": "`GET` given: The previous value of the key",
"type": "string"
}
]
},
"arguments": [
{
"name": "key",
......
......@@ -34,6 +34,17 @@
}
}
],
"reply_schema": {
"description": "The original bit value stored at offset.",
"oneOf": [
{
"const": 0
},
{
"const": 1
}
]
},
"arguments": [
{
"name": "key",
......
......@@ -38,6 +38,9 @@
}
}
],
"reply_schema": {
"const": "OK"
},
"arguments": [
{
"name": "key",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment