summaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 15:55:40 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-28 15:55:40 -0700
commite3d811b04b7fb04981d65a85d9042e2bd31798b7 (patch)
treec2847ade5ecf06aa7b98d4a916fd3acf51a05dc3 /tests/http
parentcabb8752cb9d9c85dc2aa2cac22a4ad101614577 (diff)
downloadinfinitytier-e3d811b04b7fb04981d65a85d9042e2bd31798b7.tar.gz
infinitytier-e3d811b04b7fb04981d65a85d9042e2bd31798b7.zip
docs
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/http/README.md b/tests/http/README.md
index 7852ac16..ab4827ec 100644
--- a/tests/http/README.md
+++ b/tests/http/README.md
@@ -3,6 +3,8 @@ HTTP one-to-all test
This code can be deployed across a large number of VMs or containers to test and benchmark HTTP traffic within a virtual network at scale. The agent acts as a server and can query other agents, while the server collects agent data and tells agents about each other. It's designed to use RFC4193-based ZeroTier IPv6 addresses within the cluster, which allows the easy provisioning of a large cluster without IP conflicts.
-A Dockerfile is also included which will build a simple Docker image that runs the agent. The image must be launched with "--device=/dev/net/tun --privileged" to permit it to open a tun/tap device within the container.
-
Before using this code you will want to edit agent.js to change SERVER_HOST to the IP address of where you will run server.js. This should typically be an open Internet IP, since this makes reporting not dependent upon the thing being tested. Also note that this thing does no security of any kind. It's designed for one-off tests run over a short period of time, not to be anything that runs permanently.
+
+A Dockerfile is also included which will build a simple Docker image that runs the agent. The image must be launched with "--device=/dev/net/tun --privileged" to permit it to open a tun/tap device within the container. You can run a bunch with a command like:
+
+ for ((n=0;n<10;n++)); do docker run --device=/dev/net/tun --privileged -d zerotier/http-test; done