Test environment (Alibaba Cloud ECS)
Three-node hardware configurations
Service type ECS type Number of instances Number of 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.TPC-H ecs.g7.8xlarge 1 32 128 GB Three-node tenant specifications
CREATE RESOURCE UNIT tpch_unit max_cpu 26, memory_size '100g' CREATE RESOURCE POOL tpch_pool unit = 'tpch_unit', unit_num = 1, zone_list=('zone1','zone2','zone3'); CREATE TENANT tpch_mysql resource_pool_list=('tpch_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 versions
Service type Software version OceanBase Database - Enterprise Edition: V4.2.2.0
- Community Edition: V4.2.2.0_CE
TPC-H V3.0.0 OS CentOS Linux release 7.9.2009 (Core)
Test plan
Use OceanBase Deployer (OBD) to deploy an OceanBase cluster. Deploy the TPC-H client on a server for stress testing. You do not need to deploy OceanBase Database Proxy (ODP). Directly connect to a server during the test.
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 TPC-H 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.Data size: 100 GB.
For the detailed test steps, see Run the TPC-H benchmark on OceanBase Database.
Results
| Query ID | Query response time of OceanBase Database V4.2.2 in three-node deployment (unit: s) |
|---|---|
| Q1 | 2.26 |
| Q2 | 0.50 |
| Q3 | 1.49 |
| Q4 | 0.61 |
| Q5 | 0.97 |
| Q6 | 0.15 |
| Q7 | 1.41 |
| Q8 | 0.94 |
| Q9 | 4.42 |
| Q10 | 1.10 |
| Q11 | 0.18 |
| Q12 | 1.18 |
| Q13 | 1.93 |
| Q14 | 0.30 |
| Q15 | 0.43 |
| Q16 | 0.61 |
| Q17 | 1.63 |
| Q18 | 0.93 |
| Q19 | 0.64 |
| Q20 | 1.43 |
| Q21 | 2.70 |
| Q22 | 1.20 |
| Total | 27.01 |