2015-10-30 20:05:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-11-03 22:39:44 +00:00
|
|
|
# More than 500 container seems to result in a lot of sporadic failures, probably due to Linux kernel scaling issues with virtual network ports
|
|
|
|
# 250 with a 16GB RAM VM like Amazon m4.xlarge seems good
|
|
|
|
NUM_CONTAINERS=250
|
2015-10-30 20:05:34 +00:00
|
|
|
CONTAINER_IMAGE=zerotier/http-test
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin
|
|
|
|
|
2015-11-06 02:06:04 +00:00
|
|
|
pssh -h big-test-hosts -x '-t -t' -i -OUserKnownHostsFile=/dev/null -OStrictHostKeyChecking=no -t 600 -p 256 "sysctl -w net.netfilter.nf_conntrack_max=262144 ; for ((n=0;n<$NUM_CONTAINERS;n++)); do sudo docker run --device=/dev/net/tun --privileged -d $CONTAINER_IMAGE; sleep 0.1; done"
|
2015-10-30 20:05:34 +00:00
|
|
|
|
|
|
|
exit 0
|