-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update HTTP and gRPC tutorials #65
Conversation
Signed-off-by: Alan Cha <[email protected]>
Signed-off-by: Alan Cha <[email protected]>
3a1bf08
to
a70e39c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Approving; my comments are nice to have but not necessary.
|
||
The [ready](../user-guide/tasks/ready.md) task checks if the `httpbin` deployment exists and is available, and the `httpbin` service exists. | ||
|
||
The [http](../user-guide/tasks/http.md) task sends requests to the cluster-local HTTP service whose URL is `http://httpbin.default/post` with a string payload, and collects [Iter8's built-in HTTP load test metrics](../user-guide/tasks/http.md#metrics). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps include the value of the string (hello
) in the description just to be explicit.
docs/tutorials/load-test-grpc.md
Outdated
|
||
The [ready](../user-guide/tasks/ready.md) task checks if the `routeguide` deployment exists and is available, and the `routeguide` service exists. | ||
|
||
The [grpc](../user-guide/tasks/grpc.md) task sends call requests to the `routeguide.RouteGuide.ListFeatures` method of the cluster-local gRPC service with host address `routeguide.default:50051`, and collects [Iter8's built-in gRPC load test metrics](../user-guide/tasks/grpc.md#metrics). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps restate here that this is a server streaming example. "sends call requests to ... which streams results in response."
Same comment in all examples.
Signed-off-by: Alan Cha <[email protected]>
--set assess.SLOs.upper.http/error-count=0 \ | ||
--set runner=job | ||
``` | ||
=== "Get example" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GET
|
||
This is a [single-loop](concepts.md#iter8-experiment) [Kubernetes experiment](concepts.md#kubernetes-experiments) where all the previously mentioned tasks will run once and the experiment will finish. Hence, its [runner](concepts.md#runners) value is set to `job`. | ||
|
||
=== "Post example" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
POST
docs/tutorials/load-test-grpc.md
Outdated
--set runner=job | ||
``` | ||
|
||
??? note "About this experiment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us combine the "About this experiment" notes across the 4 tabs for gRPC and 2 tabs for HTTP.
docs/tutorials/load-test-grpc.md
Outdated
@@ -16,44 +16,129 @@ Load test a Kubernetes gRPC service and validate its [service-level objectives ( | |||
1. Try [your first experiment](../getting-started/your-first-experiment.md). Understand the main [concepts](../getting-started/concepts.md) behind Iter8 experiments. | |||
2. Deploy the sample gRPC service in the Kubernetes cluster. | |||
```shell | |||
kubectl create deploy hello --image=docker.io/grpc/java-example-hostname:latest --port=50051 | |||
kubectl expose deploy hello --port=50051 | |||
kubectl create deployment routeguide --image=golang --port=50051 -- bash -c "git clone -b v1.52.0 --depth 1 https://github.com/grpc/grpc-go; cd grpc-go/examples/route_guide; go run server/server.go" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps \
new line break before -- bash
?
Signed-off-by: Alan Cha <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.