Questions tagged [spring-cloud-loadbalancer]

50 questions
1
vote
0 answers

FeignClient specified configuration class does not take effect

I'm a novice at Stack Overflow. I really don't know why 'Ask Question' doesn't indicate the location to be formatted. I can only use Blackquote to wrap most non code segments. Maybe Stack Overflow can make questions friendly? I use Nacos service…
1
vote
0 answers

'LoadBalancerBeanPostProcessorAutoConfiguration' is not eligible for getting processed by all BeanPostProcessors

Does anyone know how to resolve this issue? I get this warning by simply adding 'spring-cloud-loadbalancer' in the classpath. Logs: 022-09-20 14:38:15,199 INFO [main] o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker: Bean…
1
vote
0 answers

Feign, Spring Cloud Load Balancer wiring for @SpringBootTest?

I am trying to write a simple SpringBootTest to validate a single Feign client method using a Spring Cloud load balancer configuration defined in application.properties. I suspect I am not constructing the app. context correctly for the test as I…
1
vote
1 answer

more than one 'primary' service instance suppliers found during load balancing (spring boot/cloud)

I'm currently updating from Spring boot 2.2.x to 2.6.x + legacy code, it's a big jump so there were multiple changes. I'm now running into a problem with load balancing through an api-gateway. I'll apologize in advance for the wall of code to come.…
1
vote
1 answer

org.springframework.web.reactive.function.client.WebClientResponseException$ServiceUnavailable: 503 Service Unavailable from UNKNOWN

I am developing Spring Boot (v.2.7.0) and Spring Cloud to discover the services. The below error causing me the issue org.springframework.web.reactive.function.client.WebClientResponseException$ServiceUnavailable: 503 Service Unavailable from…
PAA
  • 1
  • 46
  • 174
  • 282
1
vote
0 answers

Does spring cloud gateway/loadbalancer keep the connection alive?

I have set up a Docker Swarm with the whoami service that is replicated 20 times. From the gateway container when I do wget -qO - whoami or the wget -qO - 10.0.x.x IP address I get random whoami replicas. However, when I do a similar thing on…
1
vote
2 answers

Load balancing problems with Spring Cloud Kubernetes

We have Spring Boot services running in Kubernetes and are using the Spring Cloud Kubernetes Load Balancer functionality with RestTemplate to make calls to other Spring Boot services. One of the main reasons we have this in place is historical - in…
1
vote
0 answers

Client side load balancing algorithm

I have two microservices of B that's been replicated as B1 and B2, I want to send first 100 requests to microservice B1 and next 100 requests to microservice B2 from microservice A [Spring load balancer microservice application], So which client…
1
vote
0 answers

Multiple Configuration for Spring Cloud Load Balancer

Similar question asked in Spring Cloud Load Balancer multiple configurations. I want to use health-check and same-instance-preference configurations for spring cloud load balancer at the same time. Unable to give mutiple configurations. I am using…
1
vote
0 answers

Error while using custom loadbalancer for spring cloud loadbalancer with healthcheck configuration

I am using a static list (SimpleDiscoveryClient) to loadbalance using spring cloud loadbalancer. Using StickySession Loadbalancer rule in…
1
vote
0 answers

LoadBalance Failed after add CorsConfiguration

environment: Spring cloud version: 2020.0.2, Spring-cloud-starter-alibaba-nacos version: 2021.1 I have already exclude the netflix-ribbon and import spring-cloude-starter-loadbalancer in pom.xml, and use "lb://url" formate in gateway…
1
vote
1 answer

com.netflix.client.ClientException: Load balancer does not have available server for client: mail-service

I want to implement 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…
1
vote
0 answers

How to contact spring-cloud-loadbalancer team?

How can someone report issue/get attention for spring-cloud-loadbalancer project? Jira/forum/mailing list/whatever? If they are under spring-cloud how to contact them? There does not seem to be any contact made public anywhere...
Martin Mucha
  • 2,385
  • 1
  • 29
  • 49
1
vote
1 answer

Does Spring Cloud LoadBalancer have a timeout like Netflix Ribbon?

I am trying to make the switch to LoadBalancer. When using Ribbon, I could set these properties to override the default 1000 ms timeouts: ribbon.ReadTimeout=5000 ribbon.ConnectTimeout=5000 I don't see anything similar in the LoadBalancer…
1
vote
1 answer

Error "FeignException$ServiceUnavailable: Load balancer does not contain an instance for the service ..." while using Spring Cloud Load Balancer

Migrating from Ribbon, i am trying to use spring cloud load balancer but faced below error. 2021-01-06 00:42:10.251 ERROR 12948 --- [nio-8100-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in…
Ash
  • 137
  • 1
  • 3
  • 12