Spring Cloud Eureka注册中心服务状态变更

剔除服务:OUT_OF_SERVICE

put请求:http://127.0.0.1:8000/eureka/apps/SERVICE-APPBLOG/192.168.0.1:service-appblog:8080/status?value=OUT_OF_SERVICE

恢复服务:UP

put请求:http://127.0.0.1:8000/eureka/apps/SERVICE-APPBLOG/192.168.0.1:service-appblog:8080/status?value=UP

说明:

1) 127.0.0.1:8000为eureka的ip和端口
2) SERVICE-APPBLOG为服务名称(eureka后台页面查看)
3) 192.168.0.1:service-appblog:8080为想要剔除/恢复的实例(eureka后台页面查看)
4) PUT请求的header设置Authorization:xxx(登录eureka F12查看)

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :