Closed git-yww closed 1 year ago
The workaround for now is to remove the learner from the --endpoints
. Eventually the learner will be promoted to a voting member, right?
The workaround for now is to remove the learner from the
--endpoints
. Eventually the learner will be promoted to a voting member, right?
This did not work during our tests. Health check will still request all members in cluster regardless of what --endpoints
specifies.
Thanks for raising this issue. Learner members can only serve statusRequest and serializable read requests. Refer to util.go#L141-L150
So the solution is to programmatically remove learner members from the endpoint list. Would you be interested in delivering a PR?
Sure, i’ll take care of it.
Sure, i’ll take care of it.
Thanks. Assigned to you.
Will release a new version today.
FYI. https://github.com/ahrtr/etcd-defrag/releases/tag/v0.7.0
docker pull ghcr.io/ahrtr/etcd-defrag:v0.7.0
Currently, we tried to use etcd-defrag to implement defragmentations on our etcd clusters, and we found it failed quickly due to that the learner node in cluster did not support health check.
Here is the execution log:
So is this an ongoing issue?