Before running one of these examples, you have to deploy helloworld
target service to your cluster by running the following command.
kubectl apply -f /helloworld
The implementation of helloworld
server is here helloworld.go
When running this service will start one grpc server for handling rpcs defined in helloworld.proto and one HTTP server for handling incoming HTTP requests.
- Scenario:
pkg/app/example/cmd/simplehttp/scenario.go
- Lotus CRD:
simple-http-scenario.yaml
A simple scenario that send one http request to http://httpbin.org/
.
- Scenario:
/pkg/app/example/cmd/simplegrpc/scenario.go
- Lotus CRD:
simple-grpc-scenario.yaml
A simple scenario that send one grpc request to helloworld
service.
- Scenario:
/pkg/app/example/cmd/threesteps/scenario.go
- Lotus CRD:
three-steps-scenario.yaml
An example containing full 3 steps of Lotus: preparer
, worker
and cleaner
.
- Scenario:
/pkg/app/example/cmd/virtualuser/scenario.go
- Lotus CRD:
virtualuser-scenario.yaml
An example using virtualuser
package to spawn a given number of virtual users on each worker.