Closed pparthenhs closed 5 years ago
@pparthenhs I can't help you with original issue. But it seems you just published the password for your database. I suggest you to rorate it with the new one.
@smith3v thnx for the advice! I changed the password at the same time I published the issue!
consul-api now uses Script
field to create checks, from Consul doc:
Args (array
) - Specifies command arguments to run to update the status of the check. Prior to Consul 1.0, checks used a single Script field to define the command to run, and would always run in a shell. In Consul 1.0, the Args array was added so that checks can be run without a shell. The Script field is deprecated, and you should include the shell in the Args to run under a shell, eg. "args": ["sh", "-c", "..."].
So for Consul > 1.0 consul-api should use Args
parameters
@vgv, do we need compatibility with Consul versions below 1.0?
@pparthenhs
Hi,
You should use setTTL
instead of setInterval
.
This is kinda strange, but this is consul requirement, please see the docs - https://www.consul.io/api/agent/check.html
@aleksandrserbin
Yes, I think I will add support for Args
later
Interval
is also valid option
Created pull-request
Hello to everyone,
I am using the current library (1.4.1) as a maven dependency, also I am using consul version 1.3. But I cannot register script Health check on service.
My code was working on consul version 1.0.7, and using the library version 1.4.0
But now I am getting