简体   繁体   中英

How to check application status in Spring Eureka server

In Spring Eureka server is possible to see at status column the application status. Considering this health status is provided by Spring Boot Actuator, the application should add that dependency to support it.

Once my application is started, Eureka Dashboard shows the application as UP, but if I stop the application I still can see in there the same status.

Is there any property to set in Eureka to check if application is still running and remove from there? How does it work in practice?

actually its a feature which is trying to avoid network partition issues, when your eureka cant see servers with services, but client of eureka has connection to them.

This lack of fast de-registration was a pain for me. I was trying to tweak it, but with no luck so I just switch this feature off in eureka config (this is probably not recommended but..) :

eureka:
  server:
    enableSelfPreservation: false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM