Test environment (Alibaba Cloud ECS)
- Hardware configuration
Service type |
ECS type |
Number of instances |
Number of CPU cores |
Memory |
|---|---|---|---|---|
| OceanBase Database | ecs.g7.8xlarge | 3 | 32 | 128 GB |
| Sysbench | ecs.g7.8xlarge | 1 | 32 | 128 GB |
| OceanBase Database Proxy (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 |
|
| ODP | V4.1.0 |
| Sysbench | 1.0.20 |
| OS | CentOS Linux release 7.9.2009 (Core) |
Test plan
Use OceanBase Deployer (OBD) to deploy an OceanBase cluster. Deploy ODP on a separate server.
Deploy the cluster in the 1-1-1 architecture, where the cluster has three zones and each zone has one OBServer node. After successful deployment, create the tenant and users required for running the Sysbench benchmark. The
systenant is a built-in system tenant used for managing the cluster. Do not use thesystenant to run the benchmark. Setprimary_zonetoRANDOMfor the tenant, which indicates that the leader of the new table partitions is randomly assigned to one of the three servers.Launch the Sysbench client, and run the
point_select,read_write,read_only, andwrite_onlytests.Set the
--timeparameter to60sfor 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
Results
Point Select performance
Threads |
V4.1 QPS |
V4.1 95% Latency (ms) |
|---|---|---|
| 32 | 135146.05 | 0.27 |
| 64 | 252277.60 | 0.30 |
| 128 | 431564.13 | 0.36 |
| 256 | 686271.21 | 0.55 |
| 512 | 937428.74 | 0.95 |
| 1024 | 985232.01 | 2.35 |
Read Only performance
Threads |
V4.1 QPS |
V4.1 95% Latency (ms) |
|---|---|---|
| 32 | 115232.45 | 4.74 |
| 64 | 214733.98 | 5.18 |
| 128 | 366616.03 | 6.09 |
| 256 | 553922.27 | 8.74 |
| 512 | 662368.79 | 15.83 |
| 1024 | 653733.97 | 54.83 |
Write Only performance
Threads |
V4.1 QPS |
V4.1 95% Latency (ms) |
|---|---|---|
| 32 | 36840.88 | 5.37 |
| 64 | 62582.56 | 8.13 |
| 128 | 107054.05 | 9.56 |
| 256 | 155494.00 | 13.70 |
| 512 | 242458.53 | 17.32 |
| 1024 | 291343.40 | 31.94 |
Read/Write performance
Threads |
V4.1 QPS |
V4.1 95% Latency (ms) |
|---|---|---|
| 32 | 66669.18 | 11.45 |
| 64 | 124559.80 | 12.52 |
| 128 | 209150.84 | 15.27 |
| 256 | 309329.85 | 20.00 |
| 512 | 395940.95 | 33.12 |
| 1024 | 454400.54 | 64.47 |
