-
Notifications
You must be signed in to change notification settings - Fork 95
Question about health checks #65
Comments
There appears to be some health check functionality in mesos-consul based on tags submitted in marathon, but I can't get it to work :( |
Could you point to the code ? |
https://github.com/CiscoCloud/mesos-consul/blob/master/mesos/state.go#L23 Seems to imply it will generate checks based on labels? |
indeed, thanks @rncry I'll test when I have the chance |
I recently tested this feature and it does work. Here is a very simple example for an app in marathon:
Note that you will need the latest release (v0.3.2) for it to properly find the labels. |
Ah ha!! Upgrading from 0.3 to 0.3.2 made this work.. thanks @ryane ! |
From what I see in the code, Docker checks are not supported yet. Does anyone know whether this is in the pipeline ? |
Can I add checks for mesos-consul itself using this? We deploy mesos-consul as a marathon application I added in our marathon json, but I dont see the health-checks added in consul. |
The version of mesos-consul i am using is 0.4.0 |
@gusnuf - can you post a sample marathon setup for mesas-consul, please? |
@mohamedhaleem This feels slightly off-topic but I've provided my mesos-consul Marathon JSON below. I think you should start a new thread if you need further or more general help. Notice that the mesos-consul container is providing health checks both for Marathon to monitor it (via the "healthChecks" section) but also for Consul (via "labels", which is this thread's topic). FYI, I've removed my private docker registry information for how my docker engines find my own build of mesos-consul.
|
sorry about that @gusnuf - just wanted to get a working health check configuration. ty |
TCP checks are also missing. Any reason for that? |
I have the same question here. Do we have any news about tcp check ?
But consul keeps returning the failed status when our service ( simple redis instance in this case ) is still running well. we're using: |
The latest image on docker hub is not correct somehow ( though the binary version still shows 0.4.0 ). I build a docker image myself from Dockerfile here ( needed to modify a bit to 's/CiscoCloud/mantl/g' ) and it works well. JFYI |
I'd like to register health checks on services declared by mesos-consul. This will avoid to rely on the aliveness (and speed) of mesos-consul to clean dead instances and would leverage consul health checking instead.
Mesos already have some health checks (command health check) and might have http health checks (https://reviews.apache.org/r/36816) but I don't know in which endpoint we could see them.
Do other users do that ? Would it be possible to register healthchecks ?
The text was updated successfully, but these errors were encountered: