Website traffic analysis and performance indicators

Website traffic analysis and performance indicators

1. IP Internet Protocol address (Internet Protocol Address)

Is the IP address to each computer connected to the Internet is assigned a 32-bit or 64-bit address ipv6 ipv4 address.

2. UV unique visitors (Unique Visitor)

Visit your site to a client computer a visitor (the number of different IP addresses). On the same day 00: 00-24: 00 within the same client is only counted once.

3. UIP independent IP (Unique IP)

Refers to the number of visitors to a site or click on a different IP address of the news.

In the same day, uv only record the first time into the visitor has an independent IP site, visit the site again in the same day is not counted. Independent IP offers visitors a number of different audiences statistical indicators within a certain time, and does not reflect the overall activities of the site.

4. PV views (Page View)

Page views or hits, is an important measure of a website. Users refresh once or address immediate access is calculated once plus one.

Single daily PV server computing
Equation 1: Total daily PV = QPS * 3600 * 6
Equation 2: total daily PV = QPS * 3600 * 8

5. VV Visits (Visit View)

PV is the sum of all visitors to the statistical time period.

6. PR Web page level technology (PageRank)

Level technology page, or website weight or popularity. Indicate the importance of a web page. Level from 1 to 10, 10 10. The higher the PR value of the more popular web page.

7. RT response time (the ResponseTime)

Response Time (RT) refers to from the client a request start time, returned to the client receives a response result from the server end of the elapsed time, the response time from the transmission time of the request, the network server processing time and transmission time of three parts composition.

8. QPS query rate per second (Query Per Second)

Response requests per second, that is, the maximum throughput.

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

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

And a machine to calculate the peak QPS :
Principle: 80% of visits per day of 20% concentrated in the time, which time is called the peak time 20% of
the formula :( total number of PV * 80%) / (number of seconds per day * 20%) = peak time the number of requests per second (QPS)
machine: peak time per QPS / single machine QPS = desired machine

Calculating the number of servers : server number = ceil (total daily PV / single server total daily PV)

Q: Every day 100w PV on a single machine, the machine how much QPS need?
A :( 1000000 * 0.8) / (86400 * 0.2) = 46 (QPS)

Q: If a machine QPS is 18, need several machines to support?
A: 46/18 = 3

9. TPS transactions per second (Transactions Per Second)

A transaction is the process of a client sends a request to the server and then the server to respond. The client requests the transmission start timing, end timing after receiving the server response, in order to calculate the time of use and the number of transactions completed.

As dml operations performed, then the corresponding tps increase.

QPS and TPS difference and understand :

1, TPS i.e., the number of transactions per second, comprising: "a user requests the server", "server's own internal processing", "server returns to the user", these three processes, to complete the N second of these three processes, the TPS that is 3;

2, the TPS QPS substantially similar, but the difference is, for the first visit to a page, a form the TPS; but a page request may result in multiple requests to the server, the server these requests can be counted among the QPS .

3, in general, the number of performance evaluation system are completed technology transactions per second to measure. The system as a whole depends on the processing power of the minimum TPS value processing power module.

4, QPS corresponds fetches / sec, i.e., in response to requests per second, that is, the maximum throughput.

For chestnut : If a big eater can eat 10 buns one second, 0.1 seconds a girl eat a bun, then they are not the same? The answer is no, because this girl can not eat 10 buns in a second, she could eat for a long time. This time the big eaters equivalent of TPS, but this girl is the QPS. Although very similar, but in fact it is different.

Requests (Request Per Second) 10. RPS per second

Service system is the ability to respond to the request.

RPS = number of concurrent / average response time

Concurrent average response time = RPS *

11. Concurrent

Refers to the number of concurrent users using the user's normal system functions of the system can be simultaneously carried

12. Throughput

Throughput refers to the number system of processing requests per unit time

A system throughput (pressure capacity) closely associated with the request CPU consumption, external interface, IO and so on. Reqeust higher consumption of a single CPU, the external system interface, the slower impact speed IO, the lower the system throughput, whereas higher.

System throughput several important parameters: QPS (TPS), concurrent, response time

Per request / number of transactions: QPS (TPS)

Concurrent: request system simultaneously processed / number of transactions

Response time: generally the average response time

(Many people will often confuse concurrent and understanding TPS)

Once you understand the meaning of the above three elements, you can figure out the relationship between them:

QPS (TPS) = number of concurrent / average response time

tps: number of responses transactions per second example: Lynx double eleven, the number of orders for one second to complete
qps: in response to the number of requests per second for example:
Throughput (throughput) (qps): How much time in concurrency, qps site is how
QPS (TPS) = number of concurrent / average response time

Guess you like

Origin blog.csdn.net/weixin_33827731/article/details/90947639