We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The text was updated successfully, but these errors were encountered:
pip install locustio
Sorry, something went wrong.
术语说明: QPS = req/sec = 请求数/秒 【QPS计算PV和机器的方式】 QPS统计方式 [一般使用 http_load 进行统计] QPS = 总请求数 / ( 进程总数 * 请求时间 ) QPS: 单个进程每秒请求服务器的成功次数 单台服务器每天PV计算: 公式1:每天总PV = QPS * 3600 * 6 公式2:每天总PV = QPS * 3600 * 8 服务器计算: 服务器数量 = ceil( 每天总PV / 单台服务器每天总PV ) 【峰值QPS和机器计算公式】 原理:每天80%的访问集中在20%的时间里,这20%时间叫做峰值时间公式:( 总PV数 * 80% ) / ( 每天秒数 * 20% ) = 峰值时间每秒请求数(QPS) 机器:峰值时间每秒QPS / 单台机器的QPS = 需要的机器问:每天300w PV 的在单台机器上,这台机器需要多少QPS?答:( 3000000 * 0.8 ) / (86400 * 0.2 ) = 139 (QPS) 问:如果一台机器的QPS是58,需要几台机器来支持? 答:139 / 58 = 3
测试机器:四核,4GB内存 系统环境:Ubuntu 14.04 LTS 测试环境:django 测试工具:apache ab 测试参数:1000个并发 1000~10000个请求
No branches or pull requests
性能测试工具:
The text was updated successfully, but these errors were encountered: