Here is how to run the load test locally. Make sure that you have installed go and git clone the repo
- 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.
- Run the load test binary locally.
export KUBECONFIG=xxxxx
go run hack/loadtest/main.go -max-current-placement 10 -crp-file test-crp.yaml
- Manually check the metrics against the load test.
curl http://localhost:4848/metrics | grep workload
- Use a local prometheus to draw graphs. Download prometheus binary for your local machine. Start the prometheus.
./prometheus --config.file=hack/loadtest/prometheus.yml