Home> Common Problem> body text

What does QPS mean?

青灯夜游
Release: 2020-12-22 10:34:32
Original
37069 people have browsed it

QPS (Queries-per-second) is the query rate per second, which is a measure of the traffic processed by a specific query server within a specified time; on the Internet, the machine that serves as a domain name system server Performance is often measured as query rate per second.

What does QPS mean?

Related recommendations: "Programming Video"

QPS

QPS, the query rate per second, is a measure of how much traffic a specific query server handles within a specified period of time.

Query rate per second

On the Internet, the query rate per second is often used to measure the performance of the domain name system server machine, which is QPS.

Corresponds to fetches/sec, which is the number of response requests per second, which is the maximum throughput capacity.

Calculation relationship:

  • QPS = Concurrency / Average response time

  • Concurrency = QPS * Average response time

Principle: 80% of daily visits are concentrated in 20% of the time, and this 20% of time is called the peak time.

Formula: (Total PV * 80%) / (Seconds per day * 20%) = Requests per second (QPS) at peak time.

Machine: Peak time QPS per second / QPS of a single machine = required machine.

What does QPS mean?

Case analysis:

With 300w PV per day on a single machine, how many QPS does this machine require?

(3000000 * 0.8) / (86400 * 0.2) = 139 (QPS).

Generally it needs to reach 139QPS because it is the peak value.

Q: If the QPS of a machine is 58, how many machines are needed to support it?

Answer: 139 / 58 = 3

For more related articles, please visitPHP Chinese website! !

The above is the detailed content of What does QPS mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
qps
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!