I am running htop on the same machine where locust is running. during the tests I have been running this morning, I see one CPU (of 4) hit 100% while the other CPUs are largely idle. I have also observed up to 8 locust tasks running. This is not running distributed. How does locust implement threading and multiprocessing to maximize the available capabilities of the machine?
See https://docs.locust.io/en/stable/running-locust-distributed.html https://docs.locust.io/en/stable/running-locust-distributed.html
这适用于在多台机器上分布式运行或仅在多个内核上运行。
为了充分利用机器,每个核心需要一个工作进程。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)