Test steps

更新时间:
复制 MD 格式

This topic describes the test steps using Performance Testing (PTS) as an example.

1. Deploy the application

Pull the code from the Demo code repository and use Helm to deploy it to an ACK managed cluster. If you test in an Alibaba Cloud VPC, create a VPC Service for the SpringCloudGateway Deployment.

2. Test the application performance baseline

Without attaching the MSE Java agent, use PTS to prefetch the application at 100 QPS for 3 minutes, as described in the previous solution. Then, run three rounds of tests. In each round, test the application for 20 minutes at both 500 QPS and 1000 QPS, measuring its CPU usage, memory usage, and request response time (RT). Obtain the CPU and memory usage from ACK monitoring and the request RT from the PTS stress testing report.

3. Test performance with the MSE Java agent attached

  1. Connect the Gateway, A, B, and C applications to MSE service administration. For more information, see Connect ACK and ACS microservice applications to the MSE administration center (Java).

  2. Configure end-to-end canary release rules to create a test lane. Use "gray" as the lane tag. Use the percentage-based canary release pattern and set the traffic percentage to 50%.

  3. Configure throttling rules for the applications.

    • Gateway: For route A, configure interface throttling with a threshold of 10000.

    • Applications A, B, and C: Configure interface throttling with a threshold of 10000.

  4. Use PTS to prefetch the application at 100 QPS for 3 minutes. Then, run three rounds of tests. In each round, measure the application's CPU usage, memory usage, and RT for 20 minutes at both 500 QPS and 1000 QPS. Obtain the CPU and memory usage from ACK monitoring and the RT from the PTS stress testing report.

  5. Compare the results with the performance baseline.