query Rate per second QPS: a measure of how much traffic is handled by a particular query server over a specified time, that is, the number of requests per second, which is the maximum ability to talk.
concurrency number: concurrency and QPS are different concepts, generally say that the QPS will say how many concurrent users under the QPS, when the QPS, the greater the number of concurrent users, the better the site concurrency processing power. When the number of concurrent users is too large, it causes the process (thread) to switch frequently, but the amount of time that is actually used to process the request is less, the number of requests per second can be processed less, and the user's request waiting time will also become larger. Finding the optimal number of threads can make your web system more stable and more efficient.
Deploy server stations with QPS and PV calculations:
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 formulas
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
Several concepts of "go" in Web performance testing