Healthcheck for `consul`.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-17 14:16:44 +09:00
parent ccc4f90bac
commit 6315dc759e
2 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,12 @@
{ {
"service": { "service": {
"name": "consul", "name": "consul",
"port": 8600 "port": 8600,
"check":{
"tcp": "localhost:8600",
"interval": "60s",
"timeout": "1s",
"success_before_passing": 3
}
} }
} }

View File

@ -21,8 +21,6 @@ remote_file '/etc/consul.d/service-consul.json' do
owner 'root' owner 'root'
group 'root' group 'root'
mode '644' mode '644'
only_if '{ node["consul"]["manager"]}'
end end
execute 'Reload supervisor' do execute 'Reload supervisor' do