diff --git a/consul/discovery.go b/consul/discovery.go index 928cd56..51b9a3e 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -64,7 +64,8 @@ func (s *Service) Register() error { Port: s.port, Tags: s.getTags(), Check: &consul.AgentServiceCheck{ - TTL: s.ttl.String(), + TTL: s.ttl.String(), + DeregisterCriticalServiceAfter: "5s", }, }