consul icon indicating copy to clipboard operation
consul copied to clipboard

Service deregistered unexpectedly

Open senabd opened this issue 6 years ago • 3 comments

Hi,

We have few services on consul. The services automatically registers themselves to consul. While everything fine something happining and one or more services deregistered from consul services. When we check logs some one call Consul api to deregister service. The log line here:

2020/02/12 14:41:26 [DEBUG] http: Request PUT /v1/agent/service/deregister/identity (3.9751ms) from=172.22.5.32:51528

Who is making this call and why ?

Consul runs on: 172.22.5.32

senabd avatar Feb 12 '20 12:02 senabd

Hello @senkadir,

thanks for reporting. This is an issue we cannot help you with. It seems like something on your side is deregistering the service. You should check your automation around consul to figure out what is deregistering it and why. Good luck!

hanshasselberg avatar Feb 12 '20 12:02 hanshasselberg

I am currently utilizing Consul version 1.10.3 in conjunction with various microservices built on .NET Core. Occasionally, I encounter an issue where a service deregisters abruptly and then re-registers itself. During these instances of service deregistration, I execute connectivity and probe health check commands between the microservices and Consul, and they appear to be functioning correctly. Is there a configuration setting within the config.json file that dictates the duration of service deregistration?

kkarim1983 avatar Mar 28 '24 07:03 kkarim1983

@hanshasselberg needs your advise and support in this regards.

kkarim1983 avatar Mar 28 '24 07:03 kkarim1983