update
This commit is contained in:
@@ -69,7 +69,7 @@ func (c *Consul) Register(service *myregistry.ServiceInfo) error {
|
|||||||
|
|
||||||
check := &api.AgentServiceCheck{
|
check := &api.AgentServiceCheck{
|
||||||
CheckID: serviceId,
|
CheckID: serviceId,
|
||||||
TTL: (checkTime*2 + time.Second*5).String(),
|
TTL: (checkTime*2 + time.Second*10).String(),
|
||||||
//TCP: fmt.Sprintf("%s:%d", service.Ip, service.Port),
|
//TCP: fmt.Sprintf("%s:%d", service.Ip, service.Port),
|
||||||
//Timeout: "5s", // 超时时间
|
//Timeout: "5s", // 超时时间
|
||||||
//Interval: "30s", // 运行检查的频率
|
//Interval: "30s", // 运行检查的频率
|
||||||
|
|||||||
Reference in New Issue
Block a user