consul-template

Unable to load balance using Docker, Consul and nginx

*爱你&永不变心* 提交于 2019-12-12 04:23:31
问题 What I want to achive is load balancing using this stack: Docker, Docker Compose, Registrator, Consul, Consul Template, NGINX and, finally, a tiny service that prints out "Hello world" in browser. So, at this moment I have a docker-compose.yml file. It looks like so: version: '2' services: accent: build: context: ./accent image: accent container_name: accent restart: always ports: - 80 consul: image: gliderlabs/consul-server:latest container_name: consul hostname: ${MYHOST} restart: always

Consul deregister 'failing' services

∥☆過路亽.° 提交于 2019-12-08 02:23:40
问题 I have consul running on Consul v0.5.2 version & services running in Mesos. Services keep moving from 1 server to another. Is there way to deregister services in consul that are in 'failing' state? I am able to get the list of services in failing state using this curl curl http://localhost:8500/v1/health/state/critical Issue that we are seeing is over a period of time in consul UI we have stale data & making the whole UI unusable 回答1: Consul by default do not deregister unhealthy services