Test environment (Alibaba Cloud ECS)
- Three-node hardware configuration
| Service type | ECS type | Number of instances | Number of CPU cores | Memory |
|---|---|---|---|---|
| OceanBase Database | ecs.g7.8xlarge | 3 | 32 | 128 GB |
| TPC-H | ecs.g7.8xlarge | 1 | 32 | 128 GB |
- Three-node tenant specifications
CREATE RESOURCE UNIT tpch_unit max_cpu 26, memory_size '70g'
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 version
| Service type | Software version |
|---|---|
| OceanBase Database |
|
| 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.1.0 in three-node deployment (unit: s) |
|---|---|
| Q1 | 2.18 |
| Q2 | 0.23 |
| Q3 | 1.48 |
| Q4 | 0.53 |
| Q5 | 0.98 |
| Q6 | 0.13 |
| Q7 | 1.46 |
| Q8 | 0.92 |
| Q9 | 2.82 |
| Q10 | 1.10 |
| Q11 | 0.17 |
| Q12 | 1.36 |
| Q13 | 1.89 |
| Q14 | 0.29 |
| Q15 | 0.88 |
| Q16 | 0.66 |
| Q17 | 1.62 |
| Q18 | 0.82 |
| Q19 | 0.61 |
| Q20 | 1.07 |
| Q21 | 2.54 |
| Q22 | 1.08 |
| Total | 24.82 |