Added deregister_critical_service_after=5s opt
This commit is contained in:
parent
179dd3d850
commit
660e58d36a
@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user