loadtest

command
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 18 Imported by: 0

README

Here is how to run the load test locally. Make sure that you have installed go and git clone the repo

  1. Build a fleet.

You can use any Kubernetes clusters you have and install the fleet agents on those clusters. In this example, we built a fleet with four member clusters, namely, cluster-1 to cluster-4. Please remember to save the kubeconfig file pointing to the hub cluster of the fleet.

  1. Run the load test binary locally.
export KUBECONFIG=xxxxx
go run hack/loadtest/main.go -max-current-placement 10 --cluster cluster-1 --cluster cluster-2 --cluster cluster-3 --cluster cluster-4 
  1. Manually check the metrics against the load test.
curl http://localhost:4848/metrics | grep workload 
  1. Use a local prometheus to draw graphs. Download prometheus binary for your local machine. Start the prometheus.
./prometheus --config.file=hack/loadtest/prometheus.yml 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL