Closed cookeem closed 7 years ago
我设置的UpdateIntervalInSec是1秒
rplugin := &plugin.EtcdV3RegisterPlugin{
ServiceAddress: "tcp@" + *addr,
EtcdServers: []string{*e},
BasePath: "/rpcx",
Metrics: metrics.NewRegistry(),
UpdateIntervalInSec: 1,
}
为什么debug输出TTL是21秒?
2017/08/11 10:58:46 etcdv3_register.go:95: DEBUG: TTL value is 21
2017/08/11 10:58:48 etcdv3_register.go:95: DEBUG: TTL value is 21
added ExtraTimeInSec for EtcdV3RegisterPlugin which is used to add extra time for TTL
运行rpcx-examples2/etcdv3_registry,我开启了多个server,但是关闭其中一个server之后,client会出现部分任务提交异常,etcd registry不是能够自动发现server down掉,自动从server list中清除吗?为什么client还是继续向down掉得server提交任务?
例如我启动了两个server:
关掉其中一个server,启动client向服务器提交任务,就会有部分任务 connection refused。