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
2
votes
2 answers

Spring Cloud Consul Configuration with SpringBoot

I am configuring Consul with SpringBoot and found a documentation here. Even browsed other resources, no more additional configs or scenarios found. Therefore, I am curious whether only those configurations are available when springboot app is…
Débora
  • 5,816
  • 28
  • 99
  • 171
2
votes
0 answers

Filtering services using 'zone' tags with Spring Cloud Consul Discovery and FeignClient

We have a single Consul cluster in AWS serving all operational environments (dev, qa, uat, prod). When a service registers with Consul, the registered name by default uses spring boot application name. As a result, the same service deployed in dev,…
raffian
  • 31,267
  • 26
  • 103
  • 174
2
votes
1 answer

How to prevent sleuth / zipkin to trace catalog-services-watch?

I've enabled zipkin on my application and it works fine, I see the traces. My application is using Consul service discovery, and I see a lot of traffic being traced in Zipkin. Traces are like have names like "catalog-services_watch" and contain…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
2
votes
1 answer

Reading empty string from consul using spring-cloud-consul

I'm migrating from file based .properties file to consul based configuration in my spring application. I'm using spring-cloud-consul. Earlier in my property file I had a property like following test.key= In spring application class corresponding…
Sudheera
  • 1,727
  • 1
  • 12
  • 28
2
votes
2 answers

How to register a spring cloud app to both Eureka and Consul

In spring cloud v1.1, I can use @EnableDiscoveryClient and @EnableEurekaClient to register a spring cloud app to both Eureka and Consul properly, because I want to use circuit breakers of Eureka/Zuul and key-value configurations of consul. But when…
2
votes
1 answer

Spring Cloud Consul ConfigWatch delay

Following is my bootstrap.yml configuration: spring: application: name: myService cloud: consul: config: enabled: true prefix: config profileSeparator: '@@' watch: wait-time: 10 …
Keith Bennett
  • 733
  • 11
  • 25
2
votes
0 answers

Unable to read Logging configuration from Consul at bootstrap

I'm using logback configuration for my spring boot based RESTful service. Some of my logging configuration properties reside in Consul's KV store (like, smtp host). I'm also using "spring-cloud-starter" in my project for hystrix configuration. For…
Shailesh
  • 61
  • 2
  • 8
2
votes
1 answer

Using Spring Cloud Contract, how can I set up multiple Wiremock stubs for different hosts/ports?

What is the best way to set up multiple Wiremock stubs using Spring Cloud Contract that have different hosts/ports and are both invoked in code exercised by a single @Test method? For example, I want to test ServiceA.doSomething(), and this method…
Keith Bennett
  • 733
  • 11
  • 25
1
vote
2 answers

Spring boot service registry

What is the difference between Consul and Eureka service registry? Is consul capable of load balancing? Is it better to migrate from eureka to consul? If yes what benefits I'll get? I'm trying to migrate my project to springboot 3 , but not sure…
1
vote
0 answers

Spring Cloud Consul Cluster connecting with spring boot

I'm working with spring cloud consul as a config server and service discovery tool in test environment. according to the consul documentation, consul server need to be at least 3 to 5 recommended servers, and consul will automatically choose a…
1
vote
1 answer

HCP Consul with Spring Cloud Consul Discovery - Failing to connect to HCP Consul

I try to connect my spring application to the HCP Consul Discovery Service. Running consul locally in dev mode works well. consul agent -dev application.yml file looks like this: spring: cloud: consul: host: localhost port:…
Alexander Tilkin
  • 149
  • 1
  • 2
  • 13
1
vote
2 answers

How to cache Consul service lookup in a separate Spring Boot application?

Running our spring boot application takes 2-3 minutes to boot. Bulk of the time was spent on connecting to different servers via Spring Cloud Consul Discovery Client. I'm looking for a way to cache service discovery in a separate application like in…
Xegara
  • 103
  • 1
  • 7
  • 18
1
vote
2 answers

Unable to configure Spring Cloud Consul for specific profiles

I'm trying to configure spring cloud consul for a specific profile but when I try to run the application I get the following error: *************************** APPLICATION FAILED TO START *************************** Description: Config data…
1
vote
0 answers

Not able to read consul key value properties into spring boot application

I am very new to the consul. Started with POC, able to establish communication between two services using the consul, but unable to read key/value pairs from consul into spring boot application. Have gone through all the solutions available on the…
1
vote
1 answer

No DiscoveryClient found during Spring bootstrap of cloud-vault-config

I'm using spring-cloud-starter-vault-config to pull secrets from vault. I'm able to get this working just fine with Config First Bootstrap. When I try and enable service discovery so I can get the vault instances from consul, I get an Error: Error…
1 2
3
10 11