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
1 answer

Spring boot 1.5 consul health check 406 error (HttpMediaTypeNotAcceptableException)

I use spring cloud and register my microservice in Consul. The microservice should work with JSON and XML accept types. Therefore the following 2 marshallers were added. However, when these 2 beans were implemented the consul health check start…
Bizon4ik
  • 2,604
  • 4
  • 20
  • 46
0
votes
1 answer

How to watch services in spring-cloud-consul?

Consul has watches to monitor service update. Is this feature supported in spring-cloud-consul? I can't find it in the documentation.
Haojin
  • 304
  • 3
  • 11
0
votes
1 answer

Restart server on node failure with Consul

Newbie to Microservices here. I have been looking into develop a microservice with spring actuator while having Consul for service discovery and fail recovery. I have configured a cluster as explained in Consul documentation. Now what I'm trying…
Chrishan
  • 4,076
  • 7
  • 48
  • 67
0
votes
1 answer

How to configure Feign client to work without Consul

Can someone help to find out why I can't setup locally FeignClient using application.properties and without running consul? client: @FeignClient(value = "my-service", configuration = FeignConfig.class) { …
Taras K
  • 85
  • 2
  • 9
0
votes
1 answer

Can Spring Cloud Consul replace consul-client?

I'm learning Consul.Got confused by relation between Spring Cloud Consul and Consul Client. I found that, in Spring boot applications, we can use @EnableDiscoveryClient to contact to a Consul Agent. But if I want to election a leader of my own…
lulijun
  • 415
  • 3
  • 22
0
votes
1 answer

Consul configuration

I am new to consul configuration. My objective is to move the properties from application.properties to a consul server. I have tried multiple methods, but cannot seem to get it right. Is there a particular folder structure that I need to…
Deepak Poonia
  • 71
  • 2
  • 7
0
votes
1 answer

Spring Cloud Consul causes deregistration of ServletContext

Giving in a spring boot application I have a WebMvc configuration which extends WebMvcConfigurationSupport. When I add a dependency to: org.springframework.cloud:spring-cloud-starter-consul-discovery:1.2.1.RELEASE Then I get: Factory method…
Ask4Gilles
  • 61
  • 1
  • 10
0
votes
1 answer

Feign + Consul: Enable only discovery (client), not registration (service)

Quoting the docs: @EnableDiscoveryClient make the app into both a Consul "service" (i.e. it registers itself) and a "client" (i.e. it can query Consul to locate other services). How can I configure a Spring Boot application that uses Feign as…
user3105453
  • 1,881
  • 5
  • 32
  • 55
0
votes
1 answer

How to correctly register Spring Boot app (deployed to Cloud Foundry) in Consul

I followed this documentation: http://cloud.spring.io/spring-cloud-consul/1.0.x/index.html and configured my Spring Boot application as following: spring: cloud: consul: enabled: true host: consul.domain.tld port: 443 …
user3105453
  • 1,881
  • 5
  • 32
  • 55
0
votes
1 answer

spring cloud consul will replace . to - before registering

I'm using spring cloud consul to register my service, but it will always replace the . to - before registering, like this: My application name: com.test.app The name in consul: com-test-app I tried the spring.application.name &…
Pansion
  • 1
  • 1
0
votes
0 answers

Output all Key-Value data / obtained Environment properties from Spring Cloud Consul

I use Spring Cloud Config with Consul and have a setup for http://cloud.spring.io/spring-cloud-static/spring-cloud-consul/1.2.1.RELEASE/ -> Distributed Configuraion with Consul. I like to know what environment properties were set by Consul config,…
onkami
  • 8,791
  • 17
  • 90
  • 176
0
votes
1 answer

Spring Cloud Consul - register another service

I have 2 services A and B service A is a legecy code wrapped in jar that I cant touch . Service B is spring boot application with Spring Cloud Consul attached . I would like to register them both using service B , it's possible ? Notice I can…
yoav.str
  • 1,547
  • 6
  • 33
  • 73
0
votes
1 answer

spring boot logback rolling file append-er not working

I am developing a spring boot application, where I am reading the logback configuration from a YML file which is in Consul . Following are the configuration I have used in the YML file. logging: file: ./logs/application.log pattern: console:…
Arpan Das
  • 1,015
  • 3
  • 24
  • 57
0
votes
1 answer

Config server not getting discovered in a consul first setup

I am using a consul first setup. For this ,I am using a consul docker image with port 8500 mapped to 8500 so I can successfully use it on local set up.I can access consul at http://localhost:8500 . I have the following configuration for the config…
0
votes
1 answer

New Spring Cloud ServiceRegistry in Dalston

I was reviewing the new features in Dalston. I was curious how to appropriately use the ServiceRegistry for Consul. In both the register and deregister methods, it uses a ConsulRegistration object. Where do I get this object to us in the…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
1 2 3
10
11