Skip to content

Commit

Permalink
fix load docs formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Oct 22, 2020
1 parent 8eaf49b commit a2bed3c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions www/docs/load.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ This is a walkthrough of different load options available to control the rate in
## Constant RPS

```
ghz --insecure --async --proto /protos/helloworld.proto --call helloworld.Greeter/SayHello -d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051 -c 10 -n 10000 --rps 200
ghz --insecure --async \
--proto /protos/helloworld.proto \
--call helloworld.Greeter/SayHello \
-c 10 -n 10000 --rps 200 \
-d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051
Summary:
Count: 10000
Expand Down Expand Up @@ -51,7 +55,11 @@ This will perform a constant load RPS against the server. Graphed, it may look l
## Step Up RPS

```
ghz --insecure --async --proto /protos/helloworld.proto --call helloworld.Greeter/SayHello -d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051 -c 10 -n 10000 --load-schedule=step --load-start=50 --load-end=150 --load-step=10 --load-step-duration=5s
ghz --insecure --async --proto /protos/helloworld.proto \
--call helloworld.Greeter/SayHello \
-c 10 -n 10000 \
--load-schedule=step --load-start=50 --load-end=150 --load-step=10 --load-step-duration=5s \
-d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051
Summary:
Count: 10000
Expand Down Expand Up @@ -94,7 +102,11 @@ Performs step load starting at `50` RPS and inscreasing by `10` RPS every `5s` u
## Step Down RPS

```
ghz --insecure --async --proto /protos/helloworld.proto --call helloworld.Greeter/SayHello -d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051 -c 10 -n 10000 --load-schedule=step --load-start=200 --load-step=-10 --load-step-duration=5s --load-max-duration=40s
ghz --insecure --async --proto /protos/helloworld.proto \
--call helloworld.Greeter/SayHello \
-c 10 -n 10000 \
--load-schedule=step --load-start=200 --load-step=-10 --load-step-duration=5s --load-max-duration=40s \
-d '{"name":"{{.WorkerID}}"}' 0.0.0.0:50051
Summary:
Count: 10000
Expand Down

0 comments on commit a2bed3c

Please sign in to comment.