big-test-kill.sh 483 B

123456789101112131415161718
  1. #!/bin/bash
  2. # Edit as needed -- note that >1000 per host is likely problematic due to Linux kernel limits
  3. NUM_CONTAINERS=100
  4. CONTAINER_IMAGE=zerotier/http-test
  5. #
  6. # This script is designed to be run on Docker hosts to run NUM_CONTAINERS
  7. #
  8. # It can then be run on each Docker host via pssh or similar to run very
  9. # large scale tests.
  10. #
  11. export PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin
  12. pssh -h big-test-hosts -i -t 128 -p 256 "docker ps -aq | xargs -r docker rm -f"
  13. exit 0