You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: plugins/plugin-client-common/src/components/Content/Markdown/components/code/remark-codeblocks-topmatter.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ function isCode(node: Node): node is Code {
28
28
/** Scan and process the `codeblocks` schema of the given `frontmatter` */
@@ -13,8 +35,6 @@ release velocity and business value with their apps/ML models while
13
35
protecting end-user experience. Use Iter8 for SLO validation, A/B
14
36
testing and progressive rollouts of K8s apps/ML models.
15
37
16
-
---
17
-
18
38
## Introduction
19
39
20
40
This tutorial uses an [Iter8 experiment](concepts.md#what-is-an-iter8-experiment) to load test https://example.com and validate latency and error-related service level objectives (SLOs).
@@ -23,130 +43,4 @@ This tutorial uses an [Iter8 experiment](concepts.md#what-is-an-iter8-experiment
23
43
>
24
44
> An Iter8 experiment is a sequence of tasks that produce metrics-driven insights for your app/ML model versions, validates them, and optionally performs a rollout. Iter8 provides a set of pre-defined and customizable tasks.
25
45
26
-
---
27
-
28
-
## Install the CLI: The iter8 CLI gives you an easy way to manage your experiments
29
-
30
-
=== "Mac"
31
-
32
-
On macOS, [Homebrew](https://brew.sh) makes it easy to install the `iter8` CLI.
33
-
34
-
```shell
35
-
---
36
-
id: install-iter8-cli
37
-
validate: brew info iter8
38
-
---
39
-
brew tap iter8-tools/iter8
40
-
brew install iter8
41
-
```
42
-
43
-
=== "Go 1.16+"
44
-
Install Iter8 using [Go 1.16+](https://golang.org/) as follows.
45
-
46
-
```shell
47
-
---
48
-
id: install-iter8-cli
49
-
before: export PATH=~/${GOPATH-~/go}/bin:$PATH
50
-
validate: iter8 -v
51
-
---
52
-
go install github.com/iter8-tools/iter8@latest
53
-
```
54
-
55
-
=== "Binaries"
56
-
Pre-compiled Iter8 binaries for many platforms are available [here](https://github.com/iter8-tools/iter8/releases). Uncompress the iter8-X-Y.tar.gz archive for your platform, and move the iter8 binary to any folder in your PATH.
57
-
58
-
---
59
-
60
-
## Download experiment: You may craft an experiment by hand, or, as we do here, you may use iter8 to download a previously constructed experiment definition
61
-
62
-
Download the `load-test` experiment folder from [Iter8 hub](../user-guide/topics/iter8hub.md) as follows.
## Run experiment: Run load against the application, and monitor error rate and response time
76
-
77
-
[Iter8 experiments](concepts.md#what-is-an-iter8-experiment) are specified using the `experiment.yaml` file. The `iter8 run` command reads this file, runs the specified experiment, and writes the results of the experiment into the `result.yaml` file.
78
-
79
-
Run the experiment you downloaded above as follows.
cd /tmp/load-test && iter8 run --set url=https://example.com
87
-
```
88
-
89
-
??? note "Look inside experiment.yaml"
90
-
91
-
This experiment contains the [`gen-load-and-collect-metrics` task](../user-guide/tasks/collect.md) for generating load and collecting metrics, and the [`assess-app-versions` task](../user-guide/tasks/assess.md) for validating SLOs.
92
-
93
-
```yaml
94
-
# task 1: generate HTTP requests for https://example.com and
95
-
# collect Iter8's built-in latency and error-related metrics
96
-
- task: gen-load-and-collect-metrics
97
-
with:
98
-
versionInfo:
99
-
- url: https://example.com
100
-
# task 2: validate if the app (hosted at https://example.com) satisfies
101
-
# service level objectives (SLOs)
102
-
# this task uses the built-in metrics collected by task 1 for validation
103
-
- task: assess-app-versions
104
-
with:
105
-
SLOs:
106
-
# error rate must be 0
107
-
- metric: built-in/error-rate
108
-
upperLimit: 0
109
-
# 95th percentile latency must be under 100 msec
110
-
- metric: built-in/p95.0
111
-
upperLimit: 100
112
-
```
113
-
114
-
??? note "Iter8 and Helm"
115
-
116
-
If you are familiar with Helm, you probably noticed that the load-test folder resembles a Helm chart. This is because, Iter8 experiment charts are Helm charts under the covers. The iter8 run command used above combines the experiment chart with values to generate the experiments.yaml file, much like how Helm charts can be combined with values to produce Kubernetes manifests.
117
-
118
-
## Assert outcomes
119
-
120
-
Assert that the experiment completed without any failures and SLOs are satisfied
0 commit comments