简体   繁体   English

如何解读蝗虫的指标?

[英]How to interpret the metrics of Locust?

I found no detail about the Number of users to simulate and Hatch rate in the locust documentation. 我在蝗虫文档中没有找到关于模拟用户数Hatch率的详细信息。

What is the relation between the two parameters? 这两个参数之间有什么关系?

If I have 20 clients, of each will post 1000 requests/second to the server, how should I set the two parameters to test the server? 如果我有20个客户端,每个客户端将向服务器发送1000个请求/秒,我应该如何设置这两个参数来测试服务器?

"Hatch rate" is how quickly you want to spawn the users. “Hatch rate”是您想要产生用户的速度。

Example: 例:

"Number of users to simulate" = 20

"Hatch rate" (user spawned / second) = 2

When you start the load test with this configuration, locust will spawn 2 new users for every second until it fulfils the total number of users to simulate (which is 20 in this case). 当您使用此配置启动负载测试时,蝗虫将每秒产生2个新用户,直到它满足要模拟的用户总数(在这种情况下为20)。 After 10 seconds, you will have a swarm of 20 simulated users. 10秒后,您将拥有一群20个模拟用户。

To control the no. 控制没有。 of request per second, you will need to set the max_wait accordingly. 每秒请求数,您需要相应地设置max_wait

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM