Spring-cloud-netflix: How force zuul to get all instance registry info from the eureka server?

Created on 10 Feb 2017  ·  7Comments  ·  Source: spring-cloud/spring-cloud-netflix

I have a project where I use eureka, zuul and several microservices. When I run a new microservice I should wait about 30 seconds until zuul update info from eureka server and only after that I can send request through zuul to new microservice.
How can new microservice force zuul to get all instance registry info from the eureka server?

question

All 7 comments

👍 to the docs that @Aloren pointed to. That is one of the designs of eureka and the eureka client.

In documentation there is nothing about how do it.

And how any service can force to fetch info from eureka server?

There is no way to force a client to poll the Eureka server. What @Aloren is suggesting is that you adjust the interval at which the client fetches the registry information from the server so it happens quicker/more often.

I have the same problem。

The solution is in the documentation, see the links above.

Was this page helpful?
0 / 5 - 0 ratings