Example of locust cluster for Google Container Engine
Shell Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
script
test
.gitignore
Dockerfile
LICENSE
README.md

README.md

docker-locust-gke

Sample of locust cluster for Google Container Engine using hakober/locust image.

Push image

First, you should push image into your private repository.

$ export IMAGE_ID=locust-gke
$ ./script/cluster push

Cluster management

Set common environment value

$ export GKE_CLUSTER=<your-cluster>
$ export GKE_ZONE=<your-zone>

Start cluster

$ IMAGE_ID=locust-gke \
  GKE_NETWORK=<your-network> ]
  TARGET_URL=<your-load-test-target-url> \
  LOCUST_SLAVE_COUNT=2 \
  ./script/cluster start

Stop cluster

$ ./script/cluster stop

Show cluster status

$ ./script/cluster status

Open kubernetes web console

$ ./script/cluster open-kubernetes

Open locust web console

$ ./script/cluster open-locust