Skip to content

Files

Latest commit

 

History

History

examples

Examples

Prerequisites

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.

simple-http-scenario

A simple scenario that send one http request to http://httpbin.org/.

simple-grpc-scenario

A simple scenario that send one grpc request to helloworld service.

three-steps-scenario

An example containing full 3 steps of Lotus: preparer, worker and cleaner.

virtual-user-scenario

An example using virtualuser package to spawn a given number of virtual users on each worker.