Questions tagged [spring-cloud-consul]

Spring Cloud Consul provides Consul integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

Spring Cloud Consul features:

  • Service Discovery: instances can be registered with the Consul agent and clients can discover the instances using Spring-managed beans
  • Supports Ribbon, the client side load-balancer via Spring Cloud Netflix
  • Supports Zuul, a dynamic router and filter via Spring Cloud Netflix
  • Distributed Configuration: using the Consul Key/Value store
  • Control Bus: Distributed control events using Consul Events

https://cloud.spring.io/spring-cloud-consul/

154 questions
0
votes
0 answers

consul - Duplicate call generated during timeout

I have two micro services MS1 and MS2 running on 2 nodes say n1 and n2. When MS1 calls MS2, consul discovers MS2 of node1. However, MS2 of node1 takes longer than the read timeout defined. As soon as the timeout is reached, I see a call coming to…
Guru
  • 16,456
  • 2
  • 33
  • 46
0
votes
2 answers

Spring boot consul health check is failing

I have a consul server running on my local machine in dev mode with ACL enabled. Here is my ACL policy for service named web: service "web" { policy = "write" } And I have a token where I have attached this policy. I am trying to register the…
0
votes
1 answer

Configure Consul Watches with HTTP Endpoint Handler through CLI

I am starting out with Consul, and I was wondering if there is a way to set the HTTP handler configuration(s) (i.e. path, method, etc.) through the CLI command itself (consul watch), without using a configuration file (with -config-file…
0
votes
1 answer

Where to get the microservice registration time in consul

My microservice called user-service and registration in consul.But in consul panel no time show.I would like to get what time the service is registered.Is there any way to achieve? Now the panel show below :
0
votes
0 answers

service get automatically deregister from consul after a period of time

we have implemented Microservice Architecture. When we deploy a service it perfectly register itself over consul. But after some time it gets automatically deregister. No logs in service as well.
0
votes
1 answer

how to get Array of values from consul in Springboot

I have multiple host values according to different markets how to fetch all those in spring-boot to create a bean. I have tried with @value("#{${app.host}}") private String[] host; consul values app: host: hostone: 'localhost:8080' …
0
votes
1 answer

Spring Cloud Consul client does not ignore critical services

I have implemented a Spring Cloud based application that has the following principal architecture. The GatewayService delegates to multiple instances of HelloService. I use Consul for service discovery. GatewayService is implemented in the following…
0
votes
1 answer

Spring boot application registers same instance, multipe times in consul cluster

I am trying to register a spring boot app to a consul cluster. I have 3 node consul cluster 1 master 2 agents. I have a load-balancer in front of 2 consul agents, so that it is HA. In my application.yml. I ask the services to join via…
0
votes
0 answers

Service Discovery using Consul with Path Variable

I am using Consul for Service Discovery. Have a service called core-service where there is an API, which accepts a Path Variable, as - @GetMapping("/records/status/{status}") I need to discovery this API using DiscoveryClient. My code is: URI uri =…
ekansh
  • 716
  • 8
  • 16
0
votes
1 answer

Does the client stores the queries from consul registry in some cache?

As the time taken by the clients to query consul for discovery will be more, does the client itself caches the registry or it queries consul for every request it has to make?
0
votes
1 answer

Inter-Cluster Service Discovery in Bare Metal Kubernetes Machines

I am exploring options for service discovery in my new project. So here is how it is : I have multiple bare metal Kubernetes (Linux) machines, with no cloud providers. I have multiple Kubernetes clusters, for this example lets name them Cluster-1…
0
votes
1 answer

How to register spring-boot app to consul over https?

Can someone please provide the configuration (all the necessary steps) which are needed to make a spring-boot service register to consul over https. I have configured Consul to https port 8501. However, setting up the…
ananda
  • 121
  • 3
  • 9
0
votes
1 answer

Spring Cloud Consul and Consul Clients dockerized

I have 2 applications, both written using spring boot. Both are running in different docker containers. I also have consul running in a different docker container. I have exposed port 8500 for consul using docker-compose.yml file. So, how do I…
0
votes
0 answers

Read Key Value from Consul using XML configuration

Currently, I am trying to work on making my spring boot application to be able to dynamically read the data from Consul KV. At the moment, I have a class: ConsulServiceClientImpl public class ConsulServiceClientImpl implements ConsulServiceClient…
0
votes
1 answer

How to get multiple Consul KVs from different Consul context?

I have these KVs sources store on Consul: config/books/ config/common/ And in my spring boot app application.yml, I have config it as following: spring: application: name: sampleapp cloud: consul: host: localhost …