Skip to content
Snippets Groups Projects
Commit 31c60a67 authored by Erik Reid's avatar Erik Reid
Browse files

added 'socket_timeout' param to redis/sentinel config schema

parent c4203334
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,11 @@ CONFIG_SCHEMA = { ...@@ -16,7 +16,11 @@ CONFIG_SCHEMA = {
}, },
"required": ["hostname", "dbname", "username", "password"], "required": ["hostname", "dbname", "username", "password"],
"additionalProperties": False "additionalProperties": False
},
"timeout": {
"type": "number",
"maximum": 10, # sanity
"exclusiveMinimum": 0
} }
}, },
...@@ -37,7 +41,8 @@ CONFIG_SCHEMA = { ...@@ -37,7 +41,8 @@ CONFIG_SCHEMA = {
"type": "object", "type": "object",
"properties": { "properties": {
"hostname": {"type": "string"}, "hostname": {"type": "string"},
"port": {"type": "integer"} "port": {"type": "integer"},
"socket_timeout": {"$ref": "#/definitions/timeout"}
}, },
"required": ["hostname", "port"], "required": ["hostname", "port"],
"additionalProperties": False "additionalProperties": False
...@@ -47,7 +52,8 @@ CONFIG_SCHEMA = { ...@@ -47,7 +52,8 @@ CONFIG_SCHEMA = {
"properties": { "properties": {
"hostname": {"type": "string"}, "hostname": {"type": "string"},
"port": {"type": "integer"}, "port": {"type": "integer"},
"name": {"type": "string"} "name": {"type": "string"},
"socket_timeout": {"$ref": "#/definitions/timeout"}
}, },
"required": ["hostname", "port", "name"], "required": ["hostname", "port", "name"],
"additionalProperties": False "additionalProperties": False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment