Spring Loadbalancer Configuration without a discovery server
Asked Answered
F

0

8

I am currently working on a POC about client side load balancing. 

I thought to use Spring Cloud Loadbalancer for that. But unlike Netflix Ribbon, I could not find a way to configure Spring Cloud Loadbalancer to work without a discovery server such as Eureka. 

Please could you let me know if there is a way to configure it to work without a discovery server (just by giving a list of ip addresses) .

Thanks

Formwork answered 1/7, 2020 at 6:47 Comment(8)
Yes, by setting values in spring.cloud.discovery.client.simple.instances. Will look for a sample.Larena
github.com/spring-cloud/spring-cloud-commons/blob/…Larena
You might also want to read up on cloud.spring.io/spring-cloud-commons/2.2.x/reference/html/… for this usecase.Amigo
I tried didn't work, got No such host is knownRolandrolanda
@HimanshuBhardwaj, Any thing worked for you?Quixotic
I was successful by following the comments of @LarenaFormwork
@SAtahAhmedKhan - I ended up hard-coding hostname when testing without Eureka.Rolandrolanda
@Formwork - A minimal example in github can be very useful.Rolandrolanda

© 2022 - 2024 — McMap. All rights reserved.