This topic describes the performance stress test of LDC Hybrid Cloud (LHC) spanner pods, including the stress test environment, stress test solution, and stress test results.
Stress test overview
Product name | Deployment topology/Specifications | Performance metric |
|---|---|---|
LHC | 4C8G Note Four spanner pods, with 4C8G (4-core CPU and 8 GB memory) each. |
|
Stress test environment
The environment configurations in this stress test are:
ECS type: ecs.sn2ne.2xlarge series, with 8 vCPUs and 32 GiB of memory
Operating system: CentOS Linux 7 (Core)
Kernel version: 3.10.0-1062.18.1.el7.x86_64
Stress test solution
In this test, the spanner pods are deployed together with applications and do not have special network configurations.
Settings:
Long connections are disabled for the upstream.
The rule-tt-vsg refined traffic direction configuration is used.
Stress test endpoint: IP addresses of the spanner nodes
Stress test tool: wrk
Backend service: nginx
Return body size: Different return body sizes are not considered in this stress test.
Spanner configuration: four worker nodes, with each node configured with 4C8G.
HTTPS request protocol: TLSv1.2; Encryption suite:
ECDHE-RSA-AES256-GCM-SHA384Statistical method:
tail -f access.log | grep " 200 " | awk '{print $3}' | uniq -c
Test details
HTTP short connections
wrk -t4 -c 60 -d 200 -H 'Connection: Close' -H 'Host: XXX' ``http://IP:PORT
About 9000 QPS

HTTP long connections
wrk -t4 -c 60 -d 200 -H 'Host: XXX' http://IP:PORT
About 11000 QPS

HTTPS short connections, without session reuse
wrk -t4 -c 60 -d 200 -H 'Host: XXX' -H 'Connection: Close' -m 0 https://IP:PORT
1500 QPS

HTTPS short connections, with session reuse
wrk -t4 -c 60 -d 200 -H 'Host: XXX' -H 'Connection: Close' https://IP:PORT
4000 QPS

HTTPS long connections
About 9000 QPS

Stress test results
The following table lists the maximum QPS supported by a single spanner pod in the foregoing stress test environment.
The forwarding performance of a spanner pod varies with the ECS series, CPU specifications, network interface card (NIC) model, kernel parameters, and requests. The following data is for reference only. The actual business stress test results prevail.
Container specifications | HTTP short connections | HTTP long connections | HTTPS short connections, without session reuse | HTTPS short connections, with session reuse | HTTPS long connections |
|---|---|---|---|---|---|
4C8G | 9000 QPS | 11000 QPS | 1500 QPS | 4000 QPS | 9000 QPS |