Skip to content

Commit 8246745

Browse files
committed
(doc): revert to siege for Load test
- added note in build for deleting the builds - updated setup to repalce hey with siege - other typo fixes Fix #60,#61
1 parent a5cd3d2 commit 8246745

3 files changed

Lines changed: 28 additions & 13 deletions

File tree

documentation/modules/ROOT/pages/03scaling.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,16 @@ watch oc get pods -n knativetutorial
339339
[#scaling-load-service]
340340
=== Load the service
341341

342-
We will now send some load to the greeter service. The command below sends 50 concurrent requests (`-c 50`) for the next 10s (`-z 10s`) with no connection timeout(`-t 0`)
342+
We will now send some load to the greeter service. The command below sends 50 concurrent requests (`-c 50`) for the next 10s (`-z 10s`) and test will run for 30 seconds (`-t 30S`)
343343

344344
[source,bash,subs="+macros,+attributes",linenums]
345345
----
346-
hey -z 10s -c 50 -t 0 \
347-
-host "greeter.knativetutorial.example.com" \
346+
seige -r 1 -c 50 -t 30S -d 2 \
347+
-H "Host: greeter.knativetutorial.example.com" \
348348
"http://pass:[${IP_ADDRESS}]"
349349
----
350350

351-
After youÄ've successfully run this small load test, you will notice the number of greeter service pods will have scaled to 5 automatically. You can also view the same via OpenShift dashboard as shown below:
351+
After you've successfully run this small load test, you will notice the number of greeter service pods will have scaled to 5 automatically. You can also view the same via OpenShift dashboard as shown below:
352352

353353
image::greeter-00001-scaled.png[Greeter Service]
354354

documentation/modules/ROOT/pages/04build/build.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,26 @@ oc apply -n knativetutorial -f docker-build.yaml
249249
=== build
250250
include::partial$knative-objects.adoc[tag=knative-build]
251251

252+
[NOTE]
253+
====
254+
The builds right now can't be started from the step where it has failed, you always need to start a new build by deleting the existing build followed by creating a new one again.
255+
256+
e.g.
257+
[source,bash,subs="+macros,+attributes"]
258+
----
259+
kubectl delete -n knativetutorial -f docker-build.yaml
260+
kubectl apply -n knativetutorial -f docker-build.yaml
261+
----
262+
263+
.(OR)
264+
265+
[source,bash,subs="+macros,+attributes"]
266+
----
267+
oc delete -n knativetutorial -f docker-build.yaml
268+
oc apply -n knativetutorial -f docker-build.yaml
269+
----
270+
====
271+
252272
[#build-watching-logs]
253273
== Watching logs
254274
include::partial$watching-build-logs.adoc[]

documentation/modules/ROOT/pages/setup.adoc

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,11 @@ The following CLI tools are required for running the exercises in this tutorial.
4444
| `dnf install httpie`
4545
|
4646

47-
| https://golang.org[go]
48-
| `brew install golang`
49-
| https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz
47+
| https://github.com/JoeDog/siege[siege]
48+
| `brew install siege`
49+
| https://github.com/JoeDog/siege
5050
|
5151

52-
| https://github.com/rakyll/hey[hey]
53-
| `go get -u github.com/rakyll/hey`
54-
| `go get -u github.com/rakyll/hey`
55-
| Add `hey` to the path using the command `export PATH=$HOME/go/bin:$PATH`
56-
5752
| https://jsonnet.org/
5853
|`brew install jsonnet`
5954
| https://github.com/google/jsonnet
@@ -193,7 +188,7 @@ webhook-6d9568d-htxlt 1/1 Running 0 6h33m
193188

194189
[source,bash,subs="+macros,+attributes"]
195190
----
196-
kubectl apply --filename {knative-build-repo}/{knative-version}/build.yaml
191+
kubectl apply --filename {knative-build-repo}/{knative-version}/release.yaml
197192
----
198193

199194
[NOTE]

0 commit comments

Comments
 (0)