mantl / mesos-consul

Mesos to Consul bridge for service discovery
Apache License 2.0
338 stars 95 forks source link

Add TCP health checking #104

Closed cpredmann closed 7 years ago

cpredmann commented 7 years ago

This is just a minor change to parse 'check_tcp' and generate the resulting Consul TCP Health Check

gena01 commented 7 years ago

Are the various check labels documented somewhere?

kainz commented 7 years ago

The check labels are currently not documented in-tree anywhere. In reading through, it seems that some of the variants of labeling don't quite cover what's needed if you are running a multiple port service either, but its a start.

If you wanted to take a stab at documenting the labelling process, it processes/parses labels from DiscoveryPorts in per-task records from the mesos state.json. Most of that logic appears in mesos/register.go @ L102ish.