You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PUT /eureka/v2/apps/appID/instanceID/status?value=OUT_OF_SERVICE
HTTP Code:* 200 on success* 500 on failure
Move instance back into service (remove override)
DELETE /eureka/v2/apps/appID/instanceID/status?value=UP (The value=UP is optional, it is used as a suggestion for the fallback status due to removal of the override)
Activity
walkerzhao commentedon Jan 11, 2019
你搜索example里的demo,可以发现
service-registry/instance-status 这个接口的实现来自ServiceRegistryEndpoint类
较低的版本里,可能没有这个类的实现
所以,我建议,这里摘除服务可以使用https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
我们团队是使用这个接口来操作的
walkerzhao commentedon Jan 12, 2019
重写一下那个enable和disable调用的controller,可能更通用一些.
zypabc1234 commentedon Feb 14, 2019
servStatus () 这个方法重写的是哪个类里面的
walkerzhao commentedon Feb 15, 2019
EurekaClientController
Andyfan322 commentedon May 10, 2019
倒不如用官方的rest API操作。