Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-lab/node-loadtesting

Stress test for M-Lab Kubernetes nodes
https://github.com/m-lab/node-loadtesting

Last synced: about 1 month ago
JSON representation

Stress test for M-Lab Kubernetes nodes

Awesome Lists containing this project

README

        

# NDT Load Test

## Pre-Requisites

* Access to at least one M-Lab sandbox node from which you will launch the
load test.
* **IMPORTANT**: disable the TxController of the target ndt-server. If you do
not do this, the load testing will not work. One easy way to do this is to
manually edit the `ndt` DaemonSet in the mlab-sandbox cluster (`kubectl
edit ds ndt`) and set `-txcontroller.max-rate=0`. This will affect all
ndt-servers in the mlab-sandbox cluster, so don't forget to undo this
change when you are done.

## Running tests

On the M-Lab sandbox node, run something like the following:

```
# docker run --rm --workdir=/root/bin --net=host --tty \
measurementlab/node-loadtesting:v1.0.0 ./run.sh 50 250 10
```

run.sh accepts five arguments, the first three of which are required:

```
./run.sh
```

Option descriptions:

* _\_: The initial/starting number of concurrent NDT clients to launch
against _server_.
* _\_: The maximum number of concurrent tests to launch against _server_.
* _\_: Increments the number of concurrent tests against _\_ by
this amount each _\_ from _\_ until _\_ count is reached.
* _\_: The target server to run the tests against.
Default: mlab3v4-lga0t.mlab-sandbox.measurement-lab.org.
* _\_: The amount of time to run each incremental number of concurrent
tests before adding _\_ more concurrent tests.