Added deregister_critical_service_after=5s opt
This commit is contained in:
parent
179dd3d850
commit
660e58d36a
@ -65,6 +65,7 @@ func (s *Service) Register() error {
|
|||||||
Tags: s.getTags(),
|
Tags: s.getTags(),
|
||||||
Check: &consul.AgentServiceCheck{
|
Check: &consul.AgentServiceCheck{
|
||||||
TTL: s.ttl.String(),
|
TTL: s.ttl.String(),
|
||||||
|
DeregisterCriticalServiceAfter: "5s",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user