This topic details the Sysbench test environment, methods, and results.
Test environment
The tests use Alibaba Cloud ECS as the deployment platform.
Hardware configuration
Service type ECS type Number of instances CPU cores Memory OceanBase Database ecs.r8i.8xlarge 3 32 256 GB
Each has a 100 GB system disk, plus two 600 GB cloud disks for clog and data (PL1 performance)Sysbench ecs.c7.4xlarge 1 16 32 GB OceanBase Database Proxy (ODP) ecs.c7.16xlarge 1 32 128 GB Software versions
Service type Software version OceanBase Database - Enterprise Edition: OceanBase 4.3.5.0
- Community Edition: OceanBase_CE 4.3.5.0
ODP OceanBase 4.3.1 Sysbench 1.0.20 OS CentOS Linux release 7.9.2009 (Core) Tenant specifications
obd cluster tenant create obperf -n tpcc_tenant --max-cpu=28 --memory-size=180G -–zone-list=zone1,zone2,zone3 -–primary-zone=RANDOM --locality=F@zone1,F@zone2,F@zone3 --charset=utf8 -s 'ob_tcp_invited_nodes="%"' --optimize=htapNote
In this example,
--optimize=htapsets the default workload type. For production, choose a workload type that fits your cluster.
Test methods
The test needs five machines: one for both Sysbench and OceanBase Deployer (obd), one for ODP, and three for the OceanBase cluster (deployed via obd in a 1:1:1 configuration). After deployment, create a dedicated tenant and user for Sysbench tests. The
systenant is reserved for cluster management and is not used for testing. Set the tenant'sprimary_zonetoRANDOM, so table partition leaders can be distributed randomly across the three servers.Import 30 tables into the database, with each table containing 1 million rows of data.
Start the Sysbench client and four types of tests:
point_select,read_write,read_only, andwrite_only.Run each test for 60 seconds (
--time=60) with thread counts of32,64,128,256,512, and1024.
For more information about the test steps, see Run the Sysbench benchmark test with OceanBase Database.
Test specifications
--mysql-db=test
--table_size=1000000
--tables=30
--threads=32/64/128/256/512/1024
--report-interval=10
--time=30
--db-ps-mode=disable
--rand-type=uniform
Test results
Note
The cluster workload type and tenant parameter template are kept consistent for these tests.
These Sysbench tests cover express_oltp, complex_oltp, olap, and htap scenarios, with thread counts of 32, 64, 128, 256, 512, and 1024.
Point Select performance
| Threads | express_oltp parameter template | complex_oltp parameter template | olap parameter template | htap parameter template |
|---|---|---|---|---|
| 32 | 163457.60/0.22 | 162747.70/0.22 | 161428.80/0.23 | 162948.95/0.20 |
| 64 | 296206.41/0.25 | 291823.36/0.26 | 291583.48/0.26 | 293622.63/0.25 |
| 128 | 505203.80/0.30 | 493859.95/0.31 | 492135.78/0.31 | 498132.19/0.31 |
| 256 | 798005.94/0.45 | 794547.97/0.47 | 803165.10/0.49 | 797304.31/0.45 |
| 512 | 1039286.05/0.90 | 1023822.11/1.14 | 1022666.33/1.12 | 1032713.76/0.90 |
| 1024 | 1013992.61/2.39 | 1011295.14/2.39 | 997362.00/2.57 | 1004848.34/2.48 |
Read Only performance
| Threads | express_oltp parameter template | complex_oltp parameter template | olap parameter template | htap parameter template |
|---|---|---|---|---|
| 32 | 134791.19/4.10 | 136145.15/3.97 | 137486.55/3.96 | 137327.53/3.95 |
| 64 | 244754.37/4.49 | 244093.17/4.57 | 244641.01/4.57 | 244586.46/4.57 |
| 128 | 416929.45/5.37 | 420143.73/5.47 | 419772.35/5.28 | 420445.05/5.28 |
| 256 | 613453.13/7.56 | 611436.43/8.28 | 603989.96/8.28 | 610998.14/7.43 |
| 512 | 725364.76/16.12 | 738362.91/17.65 | 736059.64/15.83 | 720899.31/16.12 |
| 1024 | 715777.22/41.10 | 707831.35/42.61 | 697077.19/44.17 | 706809.11/42.61 |
Write Only performance
| Threads | express_oltp parameter template | complex_oltp parameter template | olap parameter template | htap parameter template |
|---|---|---|---|---|
| 32 | 50914.06/5.00 | 52894.62/4.91 | 50589.47/5.67 | 52088.46/4.74 |
| 64 | 90119.99/5.47 | 93447.67/5.37 | 90202.65/5.37 | 90264.56/5.57 |
| 128 | 164488.33/5.77 | 166099.69/5.57 | 159493.96/5.99 | 159005.24/6.09 |
| 256 | 242240.38/8.13 | 241749.01/8.43 | 232320.85/8.43 | 230522.31/8.74 |
| 512 | 304060.67/13.70 | 306416.65/13.70 | 299155.86/13.70 | 289147.63/13.95 |
| 1024 | 345068.37/23.52 | 348929.05/26.20 | 306096.92/29.72 | 327905.15/27.17 |
Read Write performance
| Threads | express_oltp parameter template | complex_oltp parameter template | olap parameter template | htap parameter template |
|---|---|---|---|---|
| 32 | 90881.38/7.84 | 88141.94/8.28 | 88216.59/8.58 | 89948.44/7.98 |
| 64 | 159748.46/8.90 | 160695.31/9.06 | 157714.41/10.09 | 157230.31/9.39 |
| 128 | 273142.95/10.46 | 275431.02/10.27 | 272648.28/10.27 | 269700.79/11.24 |
| 256 | 391348.85/15.27 | 402154.83/15.00 | 382679.53/16.71 | 383447.47/15.27 |
| 512 | 465031.62/28.67 | 462574.18/33.72 | 466465.96/26.20 | 461249.29/27.66 |
| 1024 | 525924.96/52.89 | 535977.26/48.34 | 510540.58/58.92 | 522066.61/51.02 |