Load tester applications¶
The load tester app is a sample application made to test the Tutorial sample. It’s composed of a Node.js application and a Python script. You can customize this app to test your project.
Node.js test app¶
This app is written in TypeScript and uses a modified version of the Genvid API to run in Node.js.
This application is composed of 3 files.
- config.ts: Retrieves the configuration and initializes the Genvid API.
- session.ts: Used to test one connection to the Genvid service. It:
- creates a Genvid client and connects to system,
- sends events, and
- gathers metrics and sends them to statsd.
- index.ts: Entry point to the system. It queries the web site for join requests and creates sessions at regular intervals.
Python app¶
The Python app configures the cluster running the load test. The
configurations are in the config/loadtester.hcl
file.
The important configurations are:
- connections: The number of connections.
- interval: The time interval at which the sessions are created.