A normal system, in the process of continuous pressurization, should go through the following five stages:
- Stage 1:As the number of concurrent users increases, the TPs of the system (the number of transactions processed per second) increases gradually until the maximum value is reached, and the response time of the transactions in this phase will not change much and will be very stable;
- Stage 2:The number of concurrent users continues to increase, and the TPS remains unchanged at the maximum value, but the response time will gradually become longer.
- Stage 3:As the number of concurrent users continues to increase, the TPS will decrease in a small amount (within 20%), but the response time will continue to grow. In this phase, services can be rejected, but services cannot be down.
- Stage 4:The number of concurrent users decreases gradually, and the system processing capability starts to be restored. The TPS can be gradually restored to the previous maximum value, and the response time starts to decrease;
- Stage 5:The pressure is gradually reduced to zero, TPS continues to decrease, response time continues to become faster, and all CPU/memory/IO resources occupied are released.