Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delay Eureka client registration with Eureka Server?

I have a Spring Boot application which is also a Eureka client. The normal behavior of the application is to register with Eureka server on start up as UP. I have a requirement that the application shouldn't register with the Eureka server until smoke testing is completed during deployment.

Is there a way to delay the registration with Eureka Server or register as OUT_OF_SERVICE with some type of configuration changes? I am aware of the Eureka REST endpoints to register, unregister, and change status.

like image 870
Indra Basak Avatar asked Jan 29 '26 06:01

Indra Basak


1 Answers

Setting eureka.instance.initial-status=OUT_OF_SERVICE will register the service with that status.

like image 105
spencergibb Avatar answered Jan 30 '26 21:01

spencergibb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!