Calculation Formula for QPS, PV, and number of machines to be deployed)

Source: Internet
Author: User
Terms:
QPS = req/sec = number of requests/second

[Method for Calculating PV and machines in QPS]

QPS statistical method [http_load is generally used for Statistics]
QPS = Total number of requests/(total number of processes * request time)
QPS: Number of successful requests from a single process to the server per second

PV computing per server per day
Formula 1: daily total Pv = QPS * 3600*6
Formula 2: daily total Pv = QPS * 3600*8

Server Computing
Number of servers = Ceil (total PV per day/total PV per day for a single server)

Peak QPS and machine Calculation Formula]

Principle: 80% of accesses are concentrated in 20% of the time every day. The 20% time is called the peak time.
Formula: (total PV count * 80%)/(number of seconds per day * 20%) = number of requests per second during peak time (QPS)
MACHINE: QPS per second during peak time/QPS for a single machine = required Machine

Q: How much QPS does a single machine have 300 PVS per day?
Answer: (3000000*0.8)/(86400*0.2) = 139 (QPS)

Q: If the QPS of one machine is 58, how many machines are needed for support?
Answer: 139/58 = 3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.