NOTE

2.3 Full-Link Load Testing

Full-chain load testing checks the maximum system-wide load under acceptable performance. These notes distinguish it from testing a single interface or subsystem.

Testing & PerformanceCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

  • Test the maximum load the system as a whole can support while maintaining acceptable performance.
  • Stress testing tests a particular interface or subsystem, while full-link testing tests the system as a whole.
  • Identify the system’s bottlenecks to guide optimization and scaling.
  • Verify whether the overall system can support the estimated load.

3.1. How the Business System Distinguishes Stress-Test Traffic from Normal Traffic

  1. Add a special marker to stress-test data. For example, place a stress-test marker in the header of the RPC framework.
  2. Pass the special marker through the entire call chain. Similar to How to design distributed tracing.

3.2. How to Isolate Stress-Test Data

  • MySQL: shadow database or shadow table.
  • Redis: shadow key or shadow data source; set a relatively short expiration time.
  • Kafka: shadow topic or message-header marker; set a relatively short expiration time.
  • External third-party interfaces: Mock.

3.3. How to Construct Stress-Test Data

  • Dump production data, then import it into the data pool after data masking, correction, and other processing steps.
  • Write the test data to the shadow database.
  • Export the corresponding request-parameter file according to the target scenario.

3.4. How to Generate Extremely Large-Scale Stress-Test Traffic

  • Implement load generation, real-time monitoring of stress-test engine data and call-chain nodes, and finally produce a stress-test report.
  • For example, Jmeter.

4.1. Takin

5. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub