Closed Pryz closed 5 years ago
@rjenkins I think this PR is ready for review. This is not a high priority thing since we are still in the process of designing the best approach for Segment with Cloudflare.
The health check system is now part of the Resolver interface.
+1 to merge whenever you're ready.
This PR introduces the Resolver interface and implement the DockerResolver. I've also added an example of usage in
examples/docker_resolver
.There are a couple of new types introduced but the main one is
Resolver
which gives us an API to plug other resolvers. Right now we only doConsul
andDocker
but we can also introduceKubernetes
and others.Docker Resolver
The idea of this resolver is to be able to discover local
tracking-api
tasks running on an EC2 instance and load balance traffic between those. The resolver uses Docker Label to find out which containers to send traffic to.examples/docker_resolver
To run this example, you should just need to run
make up
.