Created
September 28, 2018 08:55
-
-
Save canhnt/a7a9f3aacecc6ac6356b90ab5e831aba 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