-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etcd snapshot cannot runnning successfully #44
Comments
Hi @damuji8, thank you for this feedback. We forked the bitnami etcd docker image https://github.com/milvus-io/bitnami-docker-etcd to solve its problem when occasional initialization failure and to solve scale out problem. We didn't use or test other functions than running or scaling, so they are very likely to be broken. We forked the repo at the tag |
And for this paticular case, I believe the bitnami's way of handling this is way too complicated. So I removed all the logics in I checked the template, and my test release, I'm sure the You may add it by setting env vars in helm release values. |
in your etcd.you have env ETCD_INITIAL_CLUSTER? i set this env in etcd helm template by myself. |
@damuji8 Yes, ETCD_INITIAL_CLUSTER is included in the statefulset template |
in cronjob yaml. is not included ETCD_INITIAL_CLUSTER env . |
without this env.can not take snapshot successfully |
using milvus helm 4.1.9 etcd image is 3.5.5-r2.
in this image /opt/bitnami/scripts/etcd/snapshot.sh
/opt/bitnami/scripts/libetcd.sh
etcdctl_get_endpoints() {
echo "$ETCD_INITIAL_CLUSTER" | sed 's/^[^=]+=http/http/g' |sed 's/,[^=]+=/,/g'
}
i need to add env ETCD_INITIAL_CLUSTER in cronjob.
without this env . will show error "all etcd endpoints are unhealthy!"
in etcd etcd:3.5.5-debian-11-r23
/opt/bitnami/scripts/libetcd.sh
etcdctl_get_endpoints() {
local only_others=${1:-false}
local -a endpoints=()
local host domain port
}
bitnami helm template has the env ETCD_CLUSTER_DOMAIN and MY_STS_NAME. So we can running snapshot successfully.
i think this is problem.
The text was updated successfully, but these errors were encountered: