Skip to content

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.

  1. Assuming this workstation project folder layout:

    Terminal window
    ├── pepr
    ├── hack
    ├── load.cli.ts
    ├── [...]
    ├── pepr-excellent-examples
    ├── hello-pepr-load
    ├── [...]
  2. Move into Pepr project directory:

    Terminal window
    cd <pepr project dir>
  3. Prepare Pepr artifacts for test:

    Terminal window
    npx ts-node hack/load.cli.ts prep ./
  4. Bring up test cluster:

    Terminal window
    npx ts-node hack/load.cli.ts cluster up
  5. 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
  6. Run load test against test cluster (using configmap.yaml load):

    Terminal window
    npx ts-node hack/load.cli.ts run ../pepr-excellent-examples/hello-pepr-load capabilities/configmap.yaml
  7. Post-process load test data and generate summary:

    Terminal window
    npx ts-node hack/load.cli.ts post
  8. Create a graph of post-processed load test data:

    Terminal window
    npx ts-node hack/load.cli.ts graph
  9. Bring down test cluster:

    Terminal window
    npx ts-node hack/load.cli.ts cluster down