Questions tagged [spring-cloud-loadbalancer]

50 questions
5
votes
3 answers

No servers available for service: while routing in Netflix ribbon

I had below working code in spring boot 2.3.4 public Route.AsyncBuilder apply(PredicateSpec route) { return route .path("/api/external/**") .filters(f -> f .removeRequestHeader("Cookie") …
4
votes
2 answers

Spring cloud loadbalancer - Feign + SimpleDiscoveryClient with healthcheck/retry

I'm struggling to switch from Ribbon to Spring Cloud Loadbalancer after upgrading spring cloud versions. Setting up the SimpleDiscoveryClient with Feign was easy. But the simplediscovery client is 'too simple'. I want to add at least a healthcheck…
4
votes
1 answer

Load balancer does not contain an instance for the service

I want to use Eureka client with spring-cloud-starter-loadbalancer. But when I added configuration I get error. When I remove @LoadBalancerClient(name = "mail-service", configuration = LoadBalancerConfiguration.class) and LoadBalancerConfiguration…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
3
votes
1 answer

When to use spring cloud like Eureka discovery,Ribbon etc if we have the same while we deployed the application in K8s?

We have load balancing, discovery, etc in the Spring cloud. But the same load balancing, discovery is available in Kubernetes as well. So just wanted to know when we should go with Spring cloud (load balancing or discovery) and when to use…
3
votes
1 answer

spring webclient load balance

Never used webclient with load balancing before and I fallowed https://spring.io/guides/gs/spring-cloud-loadbalancer/ and implemented webclient load balancer, now I am trying to use helthchecks and having problem. @Bean @Primary …
ozkanpakdil
  • 3,199
  • 31
  • 48
3
votes
1 answer

Change Configuration from Ribbon to Spring Cloud Load Balancer in spring cloud gateway

I have below configuration for spring cloud gateway with ribbon server: port: 8080 spring: cloud: gateway: routes: - id: UserModule uri: lb://load-balanced-service-user predicates: -…
2
votes
0 answers

Reactive Discovery Client is only called once

I have implemented a ReactiveDiscoveryClient discovery class in a Spring Cloud Gateway. How do I get it to refresh? In the POC code below it only logs once inside the Flux.defer statement (in the real code this will call another service to get…
2
votes
1 answer

Spring Cloud Kubernetes Loadbalancer issue with Spring Boot 2.6.6

I am using spring boot 2.6.6 and spring cloud 2021.0.2 version with spring cloud kubernetes loadbalancer and spring cloud kubernetes all. But I am getting error Application failed to start below are the dependencies
2
votes
1 answer

How to configure Spring Cloud LoadBalancer with SpringCloudOpenFeign

Changing a work project's version to java 17 resulted in the need to increase the spring-cloud-starter-openfeign to 3.0.6 (part of the 2020.0.0 Spring Cloud release train). Since Spring Cloud Netflix Ribbon has been deprecated and is not included in…
2
votes
0 answers

Spring Cloud OpenFeign vs WebClient

For Spring Boot based microservices communicating with each other via load-balanced clients (with Spring Cloud LoadBalancer) which client should be used, WebClient or OpenFeign? From what I’ve read they both support Spring Cloud LoadBalancer. I…
2
votes
1 answer

Is it not recommended to use Spring Cloud LoadBalancer's default cache on production?

Spring Boot version 2.5.2 spring-cloud version 2020.0.3 WARNING at the time of application startup -- 2021-07-10 12:30:58.286 WARN 21316 --- [ main] iguration$LoadBalancerCaffeineWarnLogger : Spring Cloud LoadBalancer is currently working…
Kanad
  • 1,008
  • 1
  • 11
  • 14
2
votes
2 answers

Update Service status when service instance is shutdown

I implemented request using Spring Cloud Feign client. I tried this: Feign client: @FeignClient(name = "mail-service") public interface EmailClient { @RequestMapping(method = RequestMethod.POST, value = "/register") void…
2
votes
2 answers

Change spring cloud loadbalancer default RoundRobin Algorithm

I'm trying to migrate from Ribbon to Spring Cloud LoadBalancer because Ribbon is now in maintenance mode, and I can't add ribbon dependency in spring initialize using the default spring-boot 2.4.2 version. I'm currently using OpenFeign and I'm doing…
2
votes
0 answers

High CPU utilization in Spring Cloud Loadbalancer application

after the redeploy operation of my application the cpu rises to 100%. So I have to restart Tomcat to free the cpu. The the thread that consumes all the cpu is: "reactor-http-epoll-1" #1569412 daemon prio=5 os_prio=0 tid=0x00007f53c010b000…
1
2 3 4