Main Menu

Search

KUBERNETES (K8S): ETCDCTL Command To Check the Performance and Health of etcd

Below command can be used.

sudo ETCDCTL_API=3 etcdctl   --endpoints=https://127.0.0.1:2379   --cacert=/etc/kubernetes/pki/etcd/ca.crt   --cert=/etc/kubernetes/pki/etcd/server.crt   --key=/etc/kubernetes/pki/etcd/server.key check perf

Above command will run for a minute and then report the response time and health status of etcd whether it is pass. Below is sample output.

sudo ETCDCTL_API=3 etcdctl   --endpoints=https://127.0.0.1:2379   --cacert=/etc/kubernetes/pki/etcd/ca.crt   --cert=/etc/kubernetes/pki/etcd/server.crt   --key=/etc/kubernetes/pki/etcd/server.key check perf

 59 / 60 Booooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooom  !  98.33%PASS: Throughput is 150 writes/s

PASS: Slowest request took 0.015323s

PASS: Stddev is 0.000739s

PASS


No comments:

Post a Comment