使用带有 Locust 的多 CPU 平台

2024-02-27

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?enter image description here


See https://docs.locust.io/en/stable/running-locust-distributed.html https://docs.locust.io/en/stable/running-locust-distributed.html

这适用于在多台机器上分布式运行或仅在多个内核上运行。

为了充分利用机器,每个核心需要一个工作进程。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

使用带有 Locust 的多 CPU 平台 的相关文章

  • matplotlib 中的 3D 离散热图

    我在 python 中有一个包含 3 维数据的元组列表 其中每个元组的形式为 x y z data value 即 我在每个 x y z 坐标处都有数据值 我想制作一个 3D 离散热图 其中颜色代表元组列表中 data values 的值
  • 使用 Asp.Net 连接到 Heroku Postgres 数据库

    我正在寻找从外部应用程序连接到 Heroku Postgres 数据库的最佳方法 该应用程序位于 asp net 中 我正在尝试使用 NpgSQL 但收到证书未知错误 有人这样做过吗 你有什么指点吗 我用它来将 DATABASE URL 翻

随机推荐