首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >有没有办法来确定工人的体重?

有没有办法来确定工人的体重?
EN

Stack Overflow用户
提问于 2022-07-28 04:02:43
回答 1查看 54关注 0票数 0

我有两台机器要做负载测试。一台机器的CPU性能较差。当用户数不断增加时,机器将达到较高的CPU使用率,而另一台机器的CPU使用率仍然较低。蝗虫抱怨:

代码语言:javascript
运行
复制
[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性能较差的机器设置较低的重量。有办法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-07-28 07:36:30

您可以在弱机器上运行更少的工作进程。如果有必要,您可以在强大的机器上每个核心运行多个进程,这仅仅是为了让它需要更多的用户。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73147145

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档