You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/17 03:29:26 UTC
[GitHub] [apisix] anjia0532 edited a comment on issue #6124: request help: Etcd node high cpu and memory leak
anjia0532 edited a comment on issue #6124:
URL: https://github.com/apache/apisix/issues/6124#issuecomment-1014106055
Thanks wechat group `孙冉-小电`

Thanks wechat group `For GG`
ref blog https://www.cnblogs.com/pier2/p/etcd_production.html
```
# 获取当前版本号
$ rev=$(ETCDCTL_API=3 etcdctl --endpoints=:2379 endpoint status --write-out="json" | egrep -o '"revision":[0-9]*' | egrep -o '[0-9]*')
# 压缩所有旧版本
$ ETCDCTL_API=3 etcdctl compact $rev
# 去碎片化
$ ETCDCTL_API=3 etcdctl defrag
# 取消警报
$ ETCDCTL_API=3 etcdctl alarm disarm
# 测试通过
$ ETCDCTL_API=3 etcdctl put newkey 123
# 清理碎片
$ etcdctl defrag
```
cpu is down
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org