Skip to content

Commit

Permalink
loadtest: add README
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Jul 30, 2024
1 parent 88fd605 commit 7c94e29
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions itest/loadtest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Description

This directory (`itest/loadtest`) includes all files and data related to running
the loadtesting suite for taproot assets daemon. These tests use the existing
itest framework to run against real external running daemons.

The configuration file needs to be named `loadtest.conf` and must be placed on
the working directory in order for the loadtest executable to detect it. A
sample configuration can be found in `loadtest-sample.conf` which includes all
the fields that are required for the tests to run successfully. This includes
connection credentials for the tapd & lnd nodes, as well as a bitcoind backend.

For further tracking and metrics, a prometheus gateway is configured and used by
the loadtests in order to submit any desired data in-flight.

## Building

To create the loadtest executable run `make build-loadtest`. This will
create a `loadtest` binary in your working directory which you can run, given
that you have a correct `loadtest.conf` in the same directory.

The executable will consult the appropriate fields of `loadtest.conf` and it's
going to run the defined test case with the respective config.

Example: To run a mint loadtest which mints batches of `450` assets we will
define `test-case="mint"` and `mint-test-batch-size=450` in our `loadtest.conf`.

## Using dev-resources docker setup

You can use any kind of external running daemon, as long as it's reachable. The
easiest way to spin up some nodes from scratch for the purpose of the loadtests
is to run the `dev-resources/docker-regtest` setup and use `alice`,
`alice-tapd`, `bob`, `bob-tapd` and the single `bitcoind` instance.

0 comments on commit 7c94e29

Please sign in to comment.