Load Test Module
Source: hello-pepr-load
This module isn’t intended as a Module Author example: it has been designed to act as a load generator for use in Pepr Load Testing.
-
Assuming this workstation project folder layout:
Terminal window ├── pepr│ ├── hack│ │ ├── load.cli.ts│ ├── [...]├── pepr-excellent-examples│ ├── hello-pepr-load│ ├── [...] -
Move into Pepr project directory:
Terminal window cd <pepr project dir> -
Prepare Pepr artifacts for test:
Terminal window npx ts-node hack/load.cli.ts prep ./ -
Bring up test cluster:
Terminal window npx ts-node hack/load.cli.ts cluster up -
Deploy Pepr artifacts to test cluster:
Terminal window npx ts-node hack/load.cli.ts deploy ./pepr-0.0.0-development.tgz ./pepr-dev.tar ../pepr-excellent-examples/hello-pepr-load -
Run load test against test cluster (using
configmap.yamlload):Terminal window npx ts-node hack/load.cli.ts run ../pepr-excellent-examples/hello-pepr-load capabilities/configmap.yaml -
Post-process load test data and generate summary:
Terminal window npx ts-node hack/load.cli.ts post -
Create a graph of post-processed load test data:
Terminal window npx ts-node hack/load.cli.ts graph -
Bring down test cluster:
Terminal window npx ts-node hack/load.cli.ts cluster down