rpcxio / rpcx-etcd

etcd plugin for rpcx
Apache License 2.0
29 stars 24 forks source link

give a choice to set etcd AutoSyncInterval #17

Closed hunterhug closed 3 years ago

hunterhug commented 3 years ago

I deploy etcd clusters in docker they will err:

 {"level":"warn","ts":"2021-09-07T15:28:43.618+0800","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0001a9500/#initially=[172.17.0.1:12378;172.17.0.1:22378;172.17.0.1:32378]","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = \"transport: Error while dialing dial tcp: lookup naetcd2: Try again\""}

you know, give a choice to set AutoSyncInterval = 0 when not hope sync.

hunterhug commented 3 years ago

we have many micro-services use rpcx, Thanks a lot.