Iter8ctl is iter8's command line utility for service operators to understand and diagnose their iter8 experiments. Iter8ctl can be used with iter8-kfserving experiments.
GO111MODULE=on GOBIN=/usr/local/bin go get github.com/iter8-tools/[email protected]
The above command installs iter8ctl under the /usr/local/bin
directory. To install under a different directory, change the value of GOBIN
above.
Describe an iter8 experiment resource object present in your Kubernetes cluster.
kubectl get experiment sklearn-iris-experiment-1 -n kfserving-test -o yaml > experiment.yaml
iter8ctl describe -f experiment.yaml
Supply experiment YAML using console input.
kubectl get experiment sklearn-iris-experiment-1 -n kfserving-test -o yaml > experiment.yaml
cat experiment.yaml | iter8ctl describe -f -
Periodically fetch an iter8 experiment resource object present in your Kubernetes cluster and describe it. You can change the frequency by adjusting the sleep interval below.
while clear; do
kubectl get experiment sklearn-iris-experiment-1 -n kfserving-test -o yaml | iter8ctl describe -f -
sleep 10.0
done
The following sample output produced by iter8ctl is from the experiment used in quick start instructions.
******
Experiment name: experiment-1
Experiment namespace: default
Experiment target: default/my-model
******
Number of completed iterations: 10
******
Winning version: canary
******
Objectives
+--------------------------+---------+--------+
| OBJECTIVE | DEFAULT | CANARY |
+--------------------------+---------+--------+
| mean-latency <= 1000.000 | true | true |
+--------------------------+---------+--------+
| error-rate <= 0.010 | true | true |
+--------------------------+---------+--------+
******
Metrics
+--------------------------------+---------+---------+
| METRIC | DEFAULT | CANARY |
+--------------------------------+---------+---------+
| request-count | 132.294 | 73.254 |
+--------------------------------+---------+---------+
| 95th-percentile-tail-latency | 298.582 | 294.597 |
| (milliseconds) | | |
+--------------------------------+---------+---------+
| mean-latency (milliseconds) | 229.529 | 230.090 |
+--------------------------------+---------+---------+
| error-rate | 0.000 | 0.000 |
+--------------------------------+---------+---------+
rm <path-to-install-directory>/iter8ctl