summaryrefslogtreecommitdiff
path: root/tests/http/README.md
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-30 10:55:05 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-30 10:55:05 -0700
commit80e62ad29180800fd1669aa68515876f0e8add54 (patch)
tree6413925daf973b29d2b82c9b69932d10afb6f32b /tests/http/README.md
parente2fc20876d1f171b1d3f1bfabb9fc23fb8455a5a (diff)
downloadinfinitytier-80e62ad29180800fd1669aa68515876f0e8add54.tar.gz
infinitytier-80e62ad29180800fd1669aa68515876f0e8add54.zip
docs
Diffstat (limited to 'tests/http/README.md')
-rw-r--r--tests/http/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/http/README.md b/tests/http/README.md
index ab4827ec..58d4a989 100644
--- a/tests/http/README.md
+++ b/tests/http/README.md
@@ -3,8 +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.
-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.
+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. You will also want to edit the Dockerfile if you want to build containers and change the network ID to the network you want to run tests over.
-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:
+The Dockerfile builds an image that launches the agent. The image must be "docker run" with "--device=/dev/net/tun --privileged" to permit it to open a tun/tap device within the container. (Unfortunately CAP_NET_ADMIN may not work due to a bug in Docker and/or Linux.) 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