The basic concept of concurrency
Concurrent concepts:
The number refers to the website accessible at the same time, the larger the number, the higher instantaneous bandwidth requirements.
Concurrent server volume is divided into:
1. The service number of concurrent users; 2. Maximum number of concurrent access; 3. the number of system users; 4 concurrent users;
Formulas used to estimate traffic concurrency of:
C = nL / T
C ^ = C +. 3 × (C square root)
where: C is the average service number of concurrent users, n being login number of session, L is the login average length of the session, T refers to the length of the period of investigation, C ^ refers to the peak number of users concurrent services.
Examples of analysis
Suppose there are 1000 users OA system, users send 400 a day visit, each logon to exit the average time of 2 hours, the system user only within 8 hours in a one day period. The average and maximum concurrent concurrency follows:
C = 2 × 400/100. 8 =
C ^ + = 100. 3 × (the square root of 100) = 100 + 3 × 10 = 130
Also, if you know the average user requests from the number of u, the system throughput can be estimated as u × C.
Pressure server computing (reprint: https://www.cnblogs.com/ylcms/p/7738692.html )
What is PV:
Computing model:
each server of the number of requests per second = ((80% * PV total amount) / (24 hours * 60 minutes * 60 seconds * 40%)) / number of servers.
The key parameter is 80%, 40%. 80% indicating a day of request occurs in 40% of the time of day. 40% 24 hours 9.6 hours 9.6 hours a day among 80% of requests occur (for Internet applications is, multiple requests during the day, at night request less).
((80% * 5,000,000) / (24 hours * 60 minutes * 60 seconds * 40%)) / 2 = 115.7 request / sec
((80% * 1,000,000) / (24 hours * 60 minute * 60 seconds * 40%)) / 2 = 23.1 requests / second
preliminary conclusion:
now we are doing stress testing, there is a standard, if your server can handle 115.7 one second request, can withstand 5 million PV / day. If your server can handle 23.1 request one second, can withstand one million PV / day.
-------------------------------------------- -------------------------------------------
basic concepts:
throughput (throughput ): according to conventional understanding network throughput in unit time represents the amount of data of the card and which comprises an amount of data that is sent to the card of the present machine also includes an amount of data received by the NIC native. A 100Mb (bit) duplex card, the maximum transmission data rate is 12.5M bytes / s, the maximum speed is 12.5M received data bytes / s, can simultaneously send and receive data.
Number of concurrent users: simultaneously user operation is performed (number of threads).
Response time: the response is received to the time it takes emitted from the request.
QPS - Queries Per Second the number of queries processed per second (if it is a database, the equivalent of reading)
TPS - Transactions Per Second Number of transactions processed per second (if a database is equivalent to write, modify)
IOPS, per second the disk I / O operation times
for example, a database test, and separate the two measured QPS TPS.
QPS (read) is always higher than the value of TPS (write, change), and there magnification relationship, because:
1, the database may have cached query.
2, the mechanical hard disk read or SSD drive is faster than writing.
-------------------------------------------------- -------------------------------------
the JMeter test parameters Description:
the Label: the name of each test unit .
#Samples: represents a test unit issued a total number of requests.
Average: Average response time - the default is the average response time of a single Request, the Controller Transaction when used, may be displayed in units of Transaction Average response time. ,unimportant.
Median: median, i.e. 50% of the user response time, if the response time of the ascending sort order, then the 50% response time of requests within this range. important.
90% Line: 90% of the user response time, if the response time of the ascending sort order, then the response time of 90% of the requests within this range. important.
Min: minimum response time is not important.
Max: maximum response time, the odds of just a thousandth or even a million, is not important.
Error%: bad requests according to the number of test
Throughput: Throughput - the default number of completed requests per second (Request per Second) represents a case where, when the Transaction Controller, may also represent a similar Transaction per LoadRunner second number
KB / Sec: (just received) per the amount of data received at the server, corresponding to the LoadRunner Throughput / Sec
--------------------- -------------------------------------------------- ----------------
LoadRunner test parameters:
response time: take the value of 90%, if the response time of the ascending sort order, then the response time of 90% of the requests in this range within. important.
Hits per second : hits per Second, the number of requests per second submitted to the server.
The TPS: the Transaction per Second, the number of transactions per second, a transaction is a client sends a request to the server and the server responding process
Throughput (throughput): Loadrunner Throughput record is returned by the server receives the number of all bytes and, regardless of the number of bytes sent to the local.
Throughput / Sec: per second throughput.
BS architecture for general analysis of response time, click-through rate, throughput, TPS (transactions per second).
CS architecture for general analysis TPS (transactions per second)