spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.88k stars 2.44k forks source link

pause endpoint not work with spring cloud bus #3841

Open PogiLong opened 4 years ago

PogiLong commented 4 years ago

Describe the bug when I use compile('org.springframework.cloud:spring-cloud-starter-bus-amqp') in eureka-client, I request /actuator/pause get true but it is also UP in eureka server. It looks like pause not work.

Sample here is my code https://github.com/zhoufeilongjava/eurka-demo.git

spencergibb commented 4 years ago

What are you expecting the eureka client to do when you call pause?

PogiLong commented 4 years ago

It change status UP to DOWN.

spencergibb commented 2 years ago

A PauseHandler could be implemented

heowc commented 1 month ago

As far as I know, spring-cloud-netflix does not implement PauseHandler, but I think it would be very useful if it were implemented.

How about overriding the state to OUT_OF_SERVICE due to pause?