spring-cloud-samples / feign-eureka

Example of using feign with eureka
236 stars 165 forks source link

When app start up, DynamicServerListLoadBalancer list of Servers is always null #4

Open micheal-xudb opened 7 years ago

micheal-xudb commented 7 years ago

I use feignclient with eureka, server A need to call service B use feign , when service A start up, the first call to service B is always fail. I find that the loadbalancer has no server, and then "Using serverListUpdater PollingServerListUpdater", I think it is better to pollingserver list when Server A start up .

micheal-xudb commented 7 years ago

related with https://github.com/spring-cloud/spring-cloud-netflix/issues/384 So the hytrix config will help and the warmup is better Sorry for the noise.

spencergibb commented 7 years ago

can we close this?

jsotogt commented 7 years ago

@spencergibb we are also having problems with this. Basically, the lazy initialization of the DynamicServerListLoadBalancer(s) gives us problems on the first request after a deployment or service restart.

Should I follow this thread or https://github.com/spring-cloud/spring-cloud-netflix/issues/384 instead?

Thanks!

spencergibb commented 7 years ago

@jsotogt that is specific to feign. Is your issue with feign?