计算网站上的峰值并发用户数
我正在考虑设置一些网站负载测试脚本,并需要一些帮助来找到一个公式来估计有多少并发用户在高峰时间浏览网站,基于常见指标,例如访问量、每次访问的平均页面浏览量和平均访问量期间。
例如:
每小时峰值访问者:1,000
每个访问者的平均页面浏览量:3
每次访问的平均时间:5 分钟
我是否应该考虑任何其他统计数据?提前致谢!
I am looking at setting up some website load testing scripts and need some help in finding a formula to estimate how many concurrent users are browsing a website at peak times, based on common metrics such as visits, average page views per visit, and average visit duration.
For example:
Peak visitors per hour: 1,000
Average page views per visitor: 3
Average time per visit: 5 minutes
Should I be considering at any other stats? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,由于网络流量非常变化,平均一个小时内的高峰访问者可能包括前半个小时的大部分访问者。根据您计算峰值的方式,您可能需要为其添加裕度。
最简单的方法是计算每秒的峰值页面请求,并据此对访问者进行反向工程。
此外,峰值请求可能是由某些事件发起的,例如带有特定链接或类似内容的电子邮件发出,这种情况下的场景可能与正常流量(例如单页面访问)有很大不同。
考虑不同的测试场景可能是值得的。
在内容编辑网站中需要考虑的另一件事是编辑者在正常流量期间使用该网站的效果,因此将编辑器场景添加到测试组合中将提供有关这些操作如何影响页面响应的反馈。
Yeah, because web traffic is very variable, an average of peak visitors over an hour may include most of them in the first half of the hour. Depending on how you calculated the peak, you may want to add a margin for that.
The easiest way is to calculate peak page requests/second and reverse engineer your visitors based on that.
Also, peak requests may be initiated by some event, such as an email going out with a particular link or similar, the scenario in this case may be quite different from your normal traffic flows (e.g. single page visits).
It may pay to think about different test scenarios.
Another thing to think about in a content edited website is the effect of editors using the site during normal traffic, so adding an editor scenario to the test mix will give feedback on how these actions affect page responses.