Skip to content
Snippets Groups Projects
Commit 839e09ef authored by Mergen Imeev's avatar Mergen Imeev Committed by Alexander Turenko
Browse files

config: introduce config.etcd.watchers options

These options are needed to properly set up reconnection of etcd
watchers.

Needed for https://github.com/tarantool/tarantool-ee/issues/647

NO_DOC=will be added in EE
parent 3fcd83ea
No related branches found
No related tags found
No related merge requests found
## feature/config
* Added new `config.etcd` options `watchers.reconnect_timeout` and
`watchers.reconnect_max_attempts` (ghe-647).
......@@ -493,6 +493,20 @@ return schema.new('instance_config', schema.record({
}),
}),
}),
watchers = schema.record({
reconnect_timeout = schema.scalar({
type = 'number',
-- default = 1.0 is applied right in the
-- etcd source. See a comment above
-- regarding defaults in config.etcd.
}),
reconnect_max_attempts = schema.scalar({
type = 'integer',
-- default = 10 is applied right in the
-- etcd source. See a comment above
-- regarding defaults in config.etcd.
}),
}),
ssl = schema.record({
ssl_key = schema.scalar({
type = 'string',
......
......@@ -94,6 +94,10 @@ g.test_config_enterprise = function()
unix_socket = 'six',
}
},
watchers = {
reconnect_timeout = 2,
reconnect_max_attempts = 3,
},
ssl = {
ssl_key = 'seven',
ca_path = 'eight',
......
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