Home > front end >  How do I get the Spring Api Gateway to check Service Registry more often?
How do I get the Spring Api Gateway to check Service Registry more often?

Time:10-23

My services work through the Spring Api Gateway, if some service is turned off and then turned on, the Gateway "loses" it.

( Release2021.0.x aka Jubilee / Spring boot 2.6.x, 2.7.x (Starting with 2021.0.3)

How can 'Spring Api Gateway' be forced to frequently look into the Eureka Server registry, or can clients be forced to register with Spring Api Gateway or somehow inform it?

Otherwise, you have to restart the 'Spring Api Gateway'.

CodePudding user response:

You can change the property indicating how often(in seconds) to fetch the registry information from the eureka server. The default value is 30s as can be found on the link.

eureka.client.registry-fetch-interval-seconds=30s
  • Related