1. QPS
Queries per second means "Query Rate/sec", which is the number of queries per second that a server can respond to, and is a measure of how much traffic is handled by a particular query server over a specified time period.
"The way the QPS calculates PV and machines"
QPS statistics [general use of http_load statistics]
QPS = Total Requests/(total number of processes * Request time)
QPS: Number of successful requests per second of a single process server
Single server PV calculation per day
Equation 1: Total PV per day = QPS * 3600 * 6
Equation 2: Total PV per day = QPS * 3600 * 8
Server computing
Number of servers = Ceil (total PV per day/single server total PV per day)
"Peak QPS and machine calculation formula"
Principle: 80% of visits per day are concentrated in 20% of the time, 20% times called peak time
Formula: (Total PV number * 80%)/(number of seconds per day * 20%) = Peak Time requests per second (QPS)
Machine: Peak time per second QPS/single machine for QPS = Required machine
Q: How much QPS does this machine need per day for 300w PV on a single machine?
Answer: (3000000 * 0.8)/(86400 * 0.2) = 139 (QPS)
Q: If the QPS for a machine is 58, how many machines are needed to support it?
Answer: 139/58 = 3
2. TPS
Transactions per Second is the number of transactions per second, which is the number of transactions that a database server processes within a unit of time.
Internet common noun explanation