Questions tagged [consul]

Consul is a tool for discovering and configuring services in the infrastructure.

Consul is a tool for discovering and configuring services in your infrastructure.

Questions that are about:

can have this tag.

A distinguishing feature is the usage of gossip protocol for propagating the data between cluster nodes which makes it decentralized and scalable. Do notice that provides additional features like the support for multiple datacenters. Unless those questions have a programming related edge, those question are better fitted for ServerFault.

Adapted from the Introduction page of the Consul website.

1162 questions
50
votes
3 answers

How can I 'join' two metrics in a Prometheus query?

I am using the consul exporter to ingest the health and status of my services into Prometheus. I'd like to fire alerts when the status of services and nodes in Consul is critical and then use tags extracted from Consul when routing those alerts. I…
Rob Best
  • 501
  • 1
  • 4
  • 3
32
votes
6 answers

How to access externally to consul UI

How can I access to consul UI externally? I want to access consul UI writing :8500 I have try doing a ssh tunnel to acces: ssh -N -f -L 8500:localhost:8500 root@172.16.8.194 Then if I access http://localhost:8500 It…
Asier Gomez
  • 6,034
  • 18
  • 52
  • 105
29
votes
2 answers

Kubernetes - Container image already present on machine

So I have 2 similar deployments on k8s that pulls the same image from GitLab. Apparently this resulted in my second deployment to go on a CrashLoopBackOff error and I can't seem to connect to the port to check on the /healthz of my pod. Logging the…
AlphaCR
  • 806
  • 2
  • 9
  • 23
26
votes
2 answers

Different ports used by consul

What are the different ports used by consul? What is the purpose of each port? Is there any way to configure consul to run using different ports?
eldos
  • 3,132
  • 3
  • 29
  • 32
23
votes
2 answers

Why bother with service discovery when message oriented middleware does the job?

I get the problem that etcd/consul/$whatever are trying to solve. Service consumers need to talk to service providers, a hugely fluid distributed system needs a mechanism to marry the two. However, the problem of "where do service consumers go with…
Susan Barr
  • 331
  • 1
  • 4
20
votes
3 answers

What is the conceptual difference between Service Discovery tools and Load Balancers that check node health?

Recently several service discovery tools have become popular/"mainstream", and I’m wondering under what primary use cases one should employ them instead of traditional load balancers. With LBs, you cluster a bunch of nodes behind the balancer, and…
20
votes
3 answers

Does Consul persist the Key Value store?

I'm evaluating a few distributed key-value stores, and etcd and Consul looks both very promising. I am interested in service discovery, health monitoring and config services. I like the extra features that Consul gives, but I cannot determine…
Pieter
  • 2,143
  • 3
  • 14
  • 13
18
votes
4 answers

ASP.NET Core 2.1 get current web hostname and port in Startup.cs

I want to register my WebAPI to Consul service discovery and for that I should provide URL of my WebAPI (for example: http://service1.com) and health check endpoint (http://service1.com/health/check). How can I get that URL? I found this piece of…
Greedy
  • 181
  • 1
  • 1
  • 4
16
votes
6 answers

Recovering from Consul "No Cluster leader" state

I have: one mesos-master in which I configured a consul server; one mesos-slave in which I configure consul client, and; one bootstrap server for consul. When I hit start I am seeing the following error: 2016/04/21 19:31:31 [ERR] agent: failed to…
deen
  • 2,185
  • 7
  • 29
  • 53
15
votes
1 answer

Auto-Proxy services with Consul Service Discovery

I am attempting to move from Eureka to Consul for service discovery and am having an issue - my gateway service registers and my customer-service registers, but the gateway service will not route requests to the customer-service automatically. …
Gandalf
  • 9,648
  • 8
  • 53
  • 88
14
votes
1 answer

Dial tcp 127.0.0.1:8500: getsockopt: connection refused in consul

I am getting this error when I am running any "consul members" on consul server and clients. The port is in LISTENING state and I made sure there is no firewall blocking. I get this error when in run the same in the consul client: Error retrieving…
Preethi Jahnavi
  • 187
  • 1
  • 1
  • 10
14
votes
2 answers

Docker container with status "Dead" after consul healthcheck runs

I am using consul's healthcheck feature, and I keep getting these these "dead" containers: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS …
Giovanni Caporaletti
  • 5,426
  • 2
  • 26
  • 39
13
votes
3 answers

How to define optional variables in Terraform with default values defined in Consul

I have a Terraform script with some variables populated from Consul. I want to use this script in two different scenarios: Scenario 1. Everything goes right using default values from Consul. Scenario 2. I need to override some variables. I've…
Maksym Demidas
  • 7,707
  • 1
  • 29
  • 36
13
votes
3 answers

Can (or should) 2 docker containers interact with each other via localhost?

We're dockerizing our micro services app, and I ran into some discovery issues. The app is configured as follows: When the a service is started in 'non-local' mode, it uses Consul as its Discovery registry. When a service is started in 'local' mode,…
13
votes
6 answers

Consul not deregistering zombie services

I am deploying a simple hello world nginx container with marathon, and everything seems to work well, except that I have 6 containers that will not deregister from consul. docker ps shows none of the containers are running. I tried using the…
Peter Klipfel
  • 4,958
  • 5
  • 29
  • 44
1
2 3
77 78