Skip to content
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

kube-etcd 容量 大于 2G 导致 etcd数据库 起不来 #526

Open
nangongchengfeng opened this issue Jun 19, 2024 · 0 comments
Open

kube-etcd 容量 大于 2G 导致 etcd数据库 起不来 #526

nangongchengfeng opened this issue Jun 19, 2024 · 0 comments

Comments

@nangongchengfeng
Copy link

nangongchengfeng commented Jun 19, 2024

使用 swr.cn-east-2.myhuaweicloud.com/kuboard/etcd-host:3.4.16-2 版本的etcd 数据库
由于没有设置 ,容量参数,导致 数据大于2G就无法启动。

报错截图:
etcdserver/api/etcdhttp: /health error due to memberID: alarm:NOSPACE
image

解决参数:
--quota-backend-bytes=8589934592#调大到8GB

需要官方在制作镜像进行添加参数

临时办法

1、修改 kube-etcd 监控检测,时间调大点,防止重启

 kubectl edit daemonsets.apps -n kuboard kuboard-etcd 

image

2、执行 下方命令 (不建议使用 127.0.0.1 使用 master 的网卡IP地址)

ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" --write-out=table endpoint status
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" compact $(ETCDCTL_API=3 ./etcdctl --endpoints="http://192.168.102.30:2381" endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9].*')
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" defrag
ETCDCTL_API=3 ./etcdctl  --endpoints="http://192.168.102.30:2381" alarm disarm

恢复正常
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant