Test environment (Alibaba Cloud ECS)
Hardware configurations
Service type ECS type Instances CPU cores Memory OceanBase Database ecs.g7.8xlarge 3 32 128 GB
Each server has a system disk of 300 GB. Additionally, two cloud disks (400 GB) are mounted, one serving as the clog disk, and the other as the data disk. The performance level is PL1.Sysbench ecs.c7.4xlarge 1 16 32 GB ODP ecs.c7.16xlarge 1 64 128 GB Tenant specifications
CREATE RESOURCE UNIT sysbench_unit max_cpu 26, memory_size '70g' CREATE RESOURCE POOL sysbench_pool unit = 'sysbench_unit', unit_num = 1, zone_list=('zone1','zone2','zone3'); CREATE TENANT sysbench_tenant resource_pool_list=('sysbench_pool'), zone_list('zone1', 'zone2', 'zone3'), primary_zone=RANDOM, locality='F@zone1,F@zone2,F@zone3' set variables ob_compatibility_mode='mysql', ob_tcp_invited_nodes='%';Software version
Service type Software version OceanBase Database - Enterprise Edition: V4.2.1.0
- Community Edition: V4.2.1.0_CE
ODP V4.2.1 Sysbench 1.0.20 OS CentOS Linux release 7.9.2009 (Core)
Test plan
Deploy an OceanBase cluster using OceanBase Deployer (obd), and deploy ODP on an independent server.
Deploy the cluster with a 1:1:1 configuration. After deployment, create the tenants and users needed for the Sysbench test. The
systenant is a built-in system tenant for cluster management and do not use it to perform the test. Set the tenant'sprimary_zonetoRANDOM, which indicates that the leader of new table partitions is randomly assigned to one of the three servers.Launch the Sysbench client, and perform the
point_select,read_write,read_only, andwrite_onlytests.Set
--timeto60sfor each round of test. The number of threads can be32,64,128,256,512, or1024.
Test specifications
--mysql-db=test
--table_size=1000000
--tables=30
--threads=32/64/128/256/512/1024
--report-interval=10
--time=60
--db-ps-mode=disable
--rand-type=uniform
Test result
Point Select performance
| Threads | V4.2.1 QPS | V4.2.1 95% Latency (ms) |
|---|---|---|
| 32 | 138746.60 | 0.26 |
| 64 | 252231.37 | 0.29 |
| 128 | 447755.19 | 0.34 |
| 256 | 730315.66 | 0.48 |
| 512 | 1009966.93 | 0.90 |
| 1024 | 1012734.80 | 2.66 |
Read Only performance
| Threads | V4.2.1 QPS | V4.2.1 95% Latency (ms) |
|---|---|---|
| 32 | 121733.00 | 4.65 |
| 64 | 221563.16 | 5.09 |
| 128 | 392138.56 | 5.67 |
| 256 | 577951.13 | 8.58 |
| 512 | 763726.51 | 17.01 |
| 1024 | 740835.95 | 38.94 |
Write Only performance
| Threads | V4.2.1 QPS | V4.2.1 95% Latency (ms) |
|---|---|---|
| 32 | 43984.28 | 7.17 |
| 64 | 82554.92 | 6.55 |
| 128 | 114874.89 | 10.09 |
| 256 | 181982.10 | 12.52 |
| 512 | 253635.91 | 19.29 |
| 1024 | 292482.33 | 36.89 |
Read/Write performance
| Threads | V4.2.1 QPS | V4.2.1 95% Latency (ms) |
|---|---|---|
| 32 | 72554.47 | 11.87 |
| 64 | 139369.33 | 11.65 |
| 128 | 247061.25 | 12.30 |
| 256 | 313660.08 | 23.95 |
| 512 | 497734.89 | 25.74 |
| 1024 | 547816.87 | 54.83 |