我有两台机器要做负载测试。一台机器的CPU性能较差。当用户数不断增加时,机器将达到较高的CPU使用率,而另一台机器的CPU使用率仍然较低。蝗虫抱怨:
[2022-07-28 11:22:15,529] PF1YW96X-MUO/WARNING/root: CPU usage above 90%! This may constrain your throughput and may even give inconsistent response time measurements! See https://docs.locust.io/en/stable/running-locust-distributed.html for how to distribute the load over multiple CPU cores or machines
[2022-07-28 11:25:06,766] PF1YW96X-MUO/WARNING/locust.runners: CPU usage was too high at some point during the test! See https://docs.locust.io/en/stable/running-distributed.html for how to distribute the load over multiple CPU cores or machines我想为CPU性能较差的机器设置较低的重量。有办法吗?
发布于 2022-07-28 07:36:30
您可以在弱机器上运行更少的工作进程。如果有必要,您可以在强大的机器上每个核心运行多个进程,这仅仅是为了让它需要更多的用户。
https://stackoverflow.com/questions/73147145
复制相似问题