When a new instance comes online, the server can see that the instance has been registered, but the newly registered service cannot be found on other clients

Comment From: spencergibb

How long did you wait?

Comment From: zhanglei-1987

How long did you wait?

I set it to 5 seconds, but the other services never found the new instance

Comment From: spencergibb

What did you set to 5 seconds?

Comment From: zhanglei-1987

What did you set to 5 seconds?

What did you set to 5 seconds?

eureka.client.registry-fetch-interval-seconds = 5 eureka.instance.lease-expiration-duration-in-seconds = 5 eureka.instance.lease-renewal-interval-in-seconds = 5

Comment From: zhanglei-1987

After I redefined EurekaDiscoveryClient, this problem was solved

` @Bean public EurekaDiscoveryClient discoveryClient(EurekaClient client, EurekaClientConfig clientConfig) {

 return new EurekaDiscoveryClient(client, clientConfig);

} `