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": {
"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'
group 'root'
mode '644'
only_if '{ node["consul"]["manager"]}'
end
execute 'Reload supervisor' do