We are using client side rest end point '/actuator/service-registry/instance-status' to do blue/green deployment. Before we shutdown our service we make following request to acknowledge other services.
curl -X POST -H 'Content-Type: application/json' -d 'OUT_OF_SERVICE' "http://localhost:8080/internal/actuator/service-registry/instance-status"
When trying upgrade to Hoxton.SR5, the end point not working any more.
{"timestamp":"2020-06-24T14:20:55.013+08:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/service-registry/instance-status"}
So what should we do?
Comment From: hatzhang
can use the following instead:
curl 'localhost:8080/internal/actuator/service-registry' -X POST -H 'Content-Type: application/json' -d '{"status":"UP"}'
Service-registry endpoint
Comment From: dpzain
I have a similar problem. i`ve customed implements the registry by etcd; But ServiceRegistryEndpoint ( '/service-registry/instance-status') is not work! always 404.what reason?