From 3b54fb431a536435f62d015b77ad2fea7a640d56 Mon Sep 17 00:00:00 2001 From: "Sahdev P. Zala" Date: Tue, 2 Jan 2018 13:10:43 -0500 Subject: [PATCH] Create doc for check perf command Create a doc for check commands with perf subcommand. Fixes #9072 --- etcdctl/README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/etcdctl/README.md b/etcdctl/README.md index adffd92900e1..7f2e856dbcf5 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -1440,6 +1440,43 @@ Prints etcd version and API version. # API version: 3.1 ``` +### CHECK \ + +CHECK provides commands for checking properties of the etcd cluster. + +### CHECK PERF [options] + +CHECK PERF checks the performance of the etcd cluster for 60 seconds. + +RPC: CheckPerf + +#### Options + +- load -- the performance check's workload model. Accepted workloads: s(small), m(medium), l(large), xl(xLarge) + +- prefix -- the prefix for writing the performance check's keys. + +#### Output + +Prints the result of performance check on different criteria like throughput. Also prints an overall status of the check as pass or fail. + +#### Examples + +```bash +./etcdctl check perf --load="s" +# 60 / 60 Booooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo! 100.00%1m0s +# PASS: Throughput is 150 writes/s +# PASS: Slowest request took 0.087509s +# PASS: Stddev is 0.011084s +# PASS +./etcdctl check perf --load="l" +# 60 / 60 Booooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo! 100.00%1m0s +# FAIL: Throughput too low: 6808 writes/s +# PASS: Slowest request took 0.228191s +# PASS: Stddev is 0.033547s +# FAIL +``` + ## Exit codes For all commands, a successful execution return a zero exit code. All failures will return non-zero exit codes.