When running the demo server, it registers itself in consul, being listed by consul as healthy.
$ curl http://localhost:8500/v1/catalog/services
{"consul":[],"consul-server-8500":[],"fabio":[],"fabio-9998":[],"fabio-9999":[],"svc-a":["urlprefix-domain.com/foo"]}
$ curl http://localhost:8500/v1/catalog/service/svc-a
[{"Node":"74bd1b630c8d","Address":"172.17.0.2","ServiceID":"svc-a-172.17.0.1:5000","ServiceName":"svc-a","ServiceTags":["urlprefix-domain.com/foo"],"ServiceAddress":"172.17.0.1","ServicePort":5000}]
Fabio also correctly adds the route to routing table, also listed in fabio web gui.
1 svc-a domain.com /foo http://172.17.0.1:5000/ 100%
When the demo server is shut down (Ctrl+c), it reports that it deregistered itself in consul:
2015/12/07 18:35:16 Deregistered service "svc-a" in consul
And indeed, consul doesn't list the demo server anymore:
$ curl http://localhost:8500/v1/catalog/services
{"consul":[],"consul-server-8500":[],"fabio":[],"fabio-9998":[],"fabio-9999":[]}
$ curl http://localhost:8500/v1/catalog/service/svc-a
[]
However, in fabio web gui, the route is still listed:
1 svc-a domain.com /foo http://172.17.0.1:5000/ 100%
When running the demo server, it registers itself in consul, being listed by consul as healthy.
Fabio also correctly adds the route to routing table, also listed in fabio web gui.
When the demo server is shut down (Ctrl+c), it reports that it deregistered itself in consul:
And indeed, consul doesn't list the demo server anymore:
However, in fabio web gui, the route is still listed: