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

Spring boot application health status down due to Consul

My spring boot application's health check status is shown below. I am not able to debug or generate stack trace. I tried looking for solutions all over the Internet but I found nothing substantial. Please help. { "status": "DOWN", …
0
votes
0 answers

Questions about developing spring-cloud-sdk,converging all develop dependencies

I developed a sdk that integrates the consul and actuator dependencies of the microservices, but there is a problem. If the actuator dependency exists, it always reports an error, the consul injection configuration fails. and the actuator is removed…
0
votes
1 answer

How can I discover my Service(Spring Boot application) in legecy(Spring web-mvc) code

I have my legacy spring application (not spring boot). Now I have moved some code which I thought can be work separately as a service, I was able to move code cleanly and able to run as a separate service (spring boot application). Now I want to…
0
votes
1 answer

Positive and negative sides of YAML and PROPERTIES config formats

I'm working on spring cloud app and can not decide which way of storing config in consul kv would be better: whole YAML or single parameters? What positive and negative sides has each way?
0
votes
2 answers

Unable to deregister service(Spring boot app) from consul

Unable to deregister the service from Consul. Basically Consul official page said that it will deregister service automatically but in my case it won't work like said. https://www.consul.io/docs/agent/basics.html Hi Referring to the consul…
0
votes
1 answer

Consul for authentication in microservices architecture

can anyone please help me understand how does consul authenticate micro-services in a micro-services architecture and can we replace the micro-service authentication (which is using oauth2) with consul ?
kmar akrout
  • 355
  • 1
  • 6
  • 16
0
votes
2 answers

API Gateway using Spring Cloud + Zuul + Consul : dynamic routing not working when using HTTPS

I'm currently working on an API Gateway to centralize calls to REST APIs. We are using Spring Cloud (Edgware.SR3 version), with Zuul (1.3.0) to handle service discovery and Consul as service registry. In a first version, routes to each service was…
Wirby
  • 1
  • 3
0
votes
0 answers

Consul with Spring Cloud Gateway - Inter Service Communication

The setup: I have a set of Spring Boot based microservices that are fronted by Spring Cloud Gateway, meaning every request that comes from UI or external API client first comes to Spring Cloud Gateway and is then forwarded to appropriate…
0
votes
1 answer

Implement Load Balancing using Ribbon

I am new to spring cloud and microservices. I am planning to implement load balancing on an independent micro service and need understand how to implement load Balancing using zuul api gateway without using feign client and hard coding list of end…
0
votes
1 answer

How to change consitency mode to Stale in Spring Cloud consul config

Consul supports consistency mode param in http . As per consul documentation it can have DEFAULT,CONSISTENT,STALE . I want to change the consistency mode from default ot STALE in one of my application. I didn't find any way in the provided spring…
SHM
  • 182
  • 1
  • 2
  • 15
0
votes
1 answer

my spring-cloud-consul demo not register to consul server

I am learning spring cloud with consul as service discovery implementation, I followed a tutorial on internet. I am using eclipse and maven. The pom file is generated by Spring Initializr. From spring official documentation, they says…
WestFarmer
  • 669
  • 8
  • 27
0
votes
0 answers

spring cloud ribbon connect to server which doesn't have the service

I have two restful service server(node1 and node2) with same application name, both of the producer have restful service A. Then I added a new restful service B, after I deploy the new service to node1. Now, when consumer request service B,…
Raysen Jia
  • 369
  • 4
  • 16
0
votes
1 answer

Property placeholder resolution precedence when using vault and consul

I have question about placeholder resolution priority when using consul-config and vault-config I created simple app using this information My dependencies are: dependencies…
Joe
  • 3
  • 2
0
votes
1 answer

Which all ports spring cloud consul config app uses for communicating with consul?

As per my understanding the spring cloud consul config is using only port 8500 by default for communicating with consul. If this is correct, Won't this application participate in gossip protocol? If yes, how is it being done?
SHM
  • 182
  • 1
  • 2
  • 15
0
votes
1 answer

Disable Spring-Cloud-Consul Health Indicator via properties

Can you configure the property management.health.consul.enabled via a property source that is loaded after bootstrap.yml?.
Michael McFadyen
  • 2,675
  • 11
  • 25