Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (32 loc) · 1 KB

README.md

File metadata and controls

41 lines (32 loc) · 1 KB

LoadTester

Run:

Chaperon.run_load_test(LoadTester.Runner); nil

What I wished Chaperon (or I) could do

  • Specify a different output folder
  • Output folder resides in the sub-app, not at the umbrella app
  • Easier way to inspect the latest session state
  • More readable way to process the result rather than :with_result option

Usage

  1. Spin up a pair of machines with the eWallet app installed
  2. Migrate and seed the target machine, e.g. ewallet-loadtest-server, with:
$ mix ecto.create
$ mix ecto.migrate
$ E2E_ENABLED=true \
  [email protected] \
  E2E_TEST_ADMIN_PASSWORD=loadtesting \
  mix seed --test --yes
  1. Run the load test from another server with:
$ LOADTEST_TOTAL_REQUESTS=180000 \
  LOADTEST_DURATION_SECONDS=6000 \
  LOADTEST_PROTOCOL=http \
  LOADTEST_HOST=localhost \
  LOADTEST_PORT=4000 \
  [email protected] \
  LOADTEST_PASSWORD=loadtesting \
  mix run -e 'Chaperon.run_load_test(LoadTester.Runner)'