ZeroTierOne/tests/http
Adam Ierymenko e3d811b04b docs
2015-10-28 15:55:40 -07:00
..
agent.js Test need a more recent version of NodeJS so update Dockerfile. 2015-10-28 15:08:00 -07:00
docker-main.sh Test need a more recent version of NodeJS so update Dockerfile. 2015-10-28 15:08:00 -07:00
Dockerfile Test need a more recent version of NodeJS so update Dockerfile. 2015-10-28 15:08:00 -07:00
nodesource-el.repo Test need a more recent version of NodeJS so update Dockerfile. 2015-10-28 15:08:00 -07:00
package.json HTTP test code. 2015-10-28 12:50:48 -07:00
README.md docs 2015-10-28 15:55:40 -07:00
server.js More tweaks to tests... just about ready to run at scale. 2015-10-28 14:24:54 -07:00

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.

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