PV, TPS, QPS is how calculated? (Reproduced)

QPS = req / sec = requests / sec

[QPS manner calculated PV] and the machine

QPS statistical methods [http_load generally used for statistical]

QPS = Total / (total number of processes * Request Time) request

QPS: the number of successful requests per second, a single process server

PV single server per day

Equation 1: Total daily PV = QPS * 3600 * 6

Equation 2: total daily PV = QPS * 3600 * 8

Server computing

The number of servers = ceil (total daily PV / single server total daily PV)

[Peak machine and QPS formula]

Principle: 80% of the daily visit focused on the 20% of the time, this time called the peak time 20%

Formula :( Total PV * 80%) / (number of seconds * 20%) = peak time requests per day (QPS) per second

Machine: QPS second peak time / single machine QPS = desired machine

Q: every day on a single machine, the machine number of QPS needs 300w PV?

A :( 3000000 * 0.8) / (86400 * 0.2) = 139 (QPS)

Q: If a machine QPS is 58, need several machines to support?

A: 139/58 = 3

Guess you like

Origin www.cnblogs.com/QaStudy/p/11514819.html