Several concepts of "go" in Web performance testing

Source: Internet
Author: User

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

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.