A simple command line tool for etcd defragmentation
Usage:
etcd-defrag [flags]
Flags:
--auto-disalarm automatically disalarm NOSPACE alarms after successful defragmentation
--cacert string verify certificates of TLS-enabled secure servers using this CA bundle
--cert string identify secure client using this TLS certificate file
--cluster use all endpoints from the cluster member list
--command-timeout duration command timeout (excluding dial timeout) (default 30s)
--compaction whether execute compaction before the defragmentation (defaults to true) (default true)
--continue-on-error whether continue to defragment next endpoint if current one fails (default true)
--defrag-rule string defragmentation rule (etcd-defrag will run defragmentation if the rule is empty or it is evaluated to true)
--dial-timeout duration dial timeout for client connections (default 2s)
--disalarm-threshold float threshold ratio for automatic alarm clearing (db size / quota) (default 0.9)
-d, --discovery-srv string domain name to query for SRV records describing cluster endpoints
--discovery-srv-name string service name to query when using DNS discovery
--dry-run evaluate whether or not endpoints require defragmentation, but don't actually perform it
--endpoints strings comma separated etcd endpoints (default [127.0.0.1:2379])
--etcd-storage-quota-bytes int etcd storage quota in bytes (the value passed to etcd instance by flag --quota-backend-bytes) (default 2147483648)
--exclude-localhost whether to exclude localhost endpoints
-h, --help help for etcd-defrag
--insecure-discovery accept insecure SRV records describing cluster endpoints (default true)
--insecure-skip-tls-verify skip server certificate verification (CAUTION: this option should be enabled only for testing purposes)
--insecure-transport disable transport security for client connections (default true)
--keepalive-time duration keepalive time for client connections (default 2s)
--keepalive-timeout duration keepalive timeout for client connections (default 6s)
--key string identify secure client using this TLS key file
--move-leader whether to move the leadership before performing defragmentation on the leader
--password string password for authentication (if this option is used, --user option shouldn't include password)
--skip-healthcheck-cluster-endpoints skip cluster endpoint discovery during health check and only check the endpoints provided via --endpoints
--user string username[:password] for authentication (prompt if password is not supplied)
--version print the version and exit
--wait-between-defrags duration wait time between consecutive defragmentation runs or after a leader movement (if --move-leader is enabled). Defaults to 0s (no wait)
Options (29)
| Option | Description | Source |
|---|---|---|
--auto-disalarm | automatically disalarm NOSPACE alarms after successful defragmentation | help |
--cacert string | verify certificates of TLS-enabled secure servers using this CA bundle | help |
--cert string | identify secure client using this TLS certificate file | help |
--cluster | use all endpoints from the cluster member list | help |
--command-timeout duration | command timeout (excluding dial timeout) (default 30s) | help |
--compaction | whether execute compaction before the defragmentation (defaults to true) (default true) | help |
--continue-on-error | whether continue to defragment next endpoint if current one fails (default true) | help |
--defrag-rule string | defragmentation rule (etcd-defrag will run defragmentation if the rule is empty or it is evaluated to true) | help |
--dial-timeout duration | dial timeout for client connections (default 2s) | help |
--disalarm-threshold float | threshold ratio for automatic alarm clearing (db size / quota) (default 0.9) | help |
-d, --discovery-srv string | domain name to query for SRV records describing cluster endpoints | help |
--discovery-srv-name string | service name to query when using DNS discovery | help |
--dry-run | evaluate whether or not endpoints require defragmentation, but don't actually perform it | help |
--endpoints strings | comma separated etcd endpoints (default [127.0.0.1:2379]) | help |
--etcd-storage-quota-bytes int | etcd storage quota in bytes (the value passed to etcd instance by flag --quota-backend-bytes) (default 2147483648) | help |
--exclude-localhost | whether to exclude localhost endpoints | help |
-h, --help | help for etcd-defrag | help |
--insecure-discovery | accept insecure SRV records describing cluster endpoints (default true) | help |
--insecure-skip-tls-verify | skip server certificate verification (CAUTION: this option should be enabled only for testing purposes) | help |
--insecure-transport | disable transport security for client connections (default true) | help |
--keepalive-time duration | keepalive time for client connections (default 2s) | help |
--keepalive-timeout duration | keepalive timeout for client connections (default 6s) | help |
--key string | identify secure client using this TLS key file | help |
--move-leader | whether to move the leadership before performing defragmentation on the leader | help |
--password string | password for authentication (if this option is used, --user option shouldn't include password) | help |
--skip-healthcheck-cluster-endpoints | skip cluster endpoint discovery during health check and only check the endpoints provided via --endpoints | help |
--user string | username[:password] for authentication (prompt if password is not supplied) | help |
--version | print the version and exit | help |
--wait-between-defrags duration | wait time between consecutive defragmentation runs or after a leader movement (if --move-leader is enabled). | help |