Unable to deregister service if multiple nodes available #9415
Labels
theme/catalog
Relating to the catalog of nodes, services, and checks
type/question
Not an "enhancement" or "bug". Please post on discuss.hashicorp
We have consul with multiple nodes in our environment.
I'm using
spring-cloud-starter-consul-discovery
do register my app instances as a services. And I faced a problem when deregistering services. I'm getting an error:I tried to repeat the same request with a
curl
and got the same error.Command I execute:
What I noticed is that repeating the request multiple times results in success service deregistration.
I guess that what happens is some round-robin behavior, and each time the request is falling in a different node.
I don't know if this is an expected behavior, but maybe it's possible to find some workaround for this issue.
What I need is to deregister my service automatically when stopping/rebooting the application.
The text was updated successfully, but these errors were encountered: