简体   繁体   English

蝗虫中的真实rps是什么

[英]What is true rps in locust

I'm curious how many actual requests per second my service is getting while locust load test.我很好奇在蝗虫负载测试时我的服务每秒收到多少实际请求。

If it has 50 users and shows 6 RPS, does it mean I'm getting 50*6=300 requests per second?如果它有 50 个用户并显示 6 RPS,是否意味着我每秒收到 50*6=300 个请求?

If you are monitoring from locust UI 6 rps means 6 requests per second regardless of user count.如果您从 Locust UI 进行监控,6 rps 意味着每秒 6 个请求,无论用户数量如何。 Web UI shows the total rps generated from all workers. Web UI 显示所有 worker 生成的总 rps。

It's total number of RPS which Locust is able to achieve.它是 Locust 能够达到的 RPS 总数。

If you look at Getting Started page of Locust documentation :如果您查看Locust 文档的入门页面

There is "Number of Users"有“用户数”

在此处输入图像描述

and "Total Requests per Second"和“每秒总请求数”

在此处输入图像描述

as you can see RPS stopped growing around 40th second of the test and remains the same and users are being added for another minute.如您所见,RPS 在测试的第 40 秒左右停止增长并保持不变,并且用户正在添加一分钟。 Ideally RPS should increase as the load increases, Locust documentation shows classic bottleneck理想情况下,RPS 应该随着负载的增加而增加,Locust 文档显示了典型的瓶颈

So unless you artificially slowing down Locust using wait() function and not capable of getting more than 6 RPS with 50 users - most probably your server needs some optimization.因此,除非您使用wait() function人为地减慢 Locust 的速度,并且在 50 个用户的情况下无法获得超过 6 个 RPS - 很可能您的服务器需要一些优化。

Also double check your Locustfile , maybe your load profile differs from your expectations and you don't have 50 concurrent users at the single moment.还要仔细检查您的Locustfile ,也许您的负载配置文件与您的预期不同,并且您同时没有 50 个并发用户。

More information:更多信息:

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

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