-
-
Save therevoman/cf3b02b7577d5328c750f5c993fdce89 to your computer and use it in GitHub Desktop.
Compact and defrag etcd cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ref https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/maintenance.md#space-quota | |
export ETCDCTL_API=3 | |
etcdctl endpoint status --write-out="json" | |
etcdctl endpoint status --write-out="table" | |
etcdctl compact $rev | |
etcdctl defrag | |
etcdctl endpoint status --write-out="table" | |
etcdctl alarm list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment