====== locust ====== > An open source load testing tool. > > Define user behaviour with Python code, and swarm your system with millions of simultaneous users. http://locust.io/ http://docs.locust.io/en/latest/index.html https://github.com/locustio/locust/ ===== Install ===== pip install locustio pyzmq ===== Usage ===== ==== Master / Slave ==== [root@adm01 ~]# locust -f locustfile.py -H http://www.example.com --master [root@adm02 ~]# locust -f locustfile.py --slave --master-host=adm01 ===== Tips ===== ==== pkg_resources.DistributionNotFound ==== # locust -f locustfile.py -H http://www.example.com Traceback (most recent call last): File "/usr/bin/locust", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in working_set.require(__requires__) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: requests>=2.4.1 # easy_install --upgrade pip # pip install --upgrade setuptools easy_install は不要かも。