Test Method
This section describes the performance test of GaussDB(for Cassandra) instances, including the test environment, procedures, and results.
Test Environment
- Region: AP-Singapore
- AZ: AZ1, AZ2, AZ3 (three-AZ deployment)
- Elastic Cloud Server (ECS): h3.4xlarge.2 with 16 vCPUs, 32 GB of memory, and CentOS 7.5 64 bit image.
- Each DB instance includes three nodes.
- The test covers the following instance classes. For details, see Table 1.
Test Tool
YCSB is an open-source database performance test tool. In this test, YCSB 0.15.0 is used.
For details on how to use this tool, see YCSB.
Test Metrics
Operations per Second (OPS): number of operations executed per second by a database
Test Procedure
- Configure the workload configuration file.
Set the values of readproportion, insertproportion, updateproportion, scanproportion, and readmodifywriteproportion in the workload file by referring to Table 2.
Set the value of recordcount in the workload file by referring to Table 3.
- Use workload-insert-mostly as an example. Run the following command to prepare test data:
sh bin/ycsb.sh load cassandra-cql -P workloads/workload-insert-mostly -p "hosts=${ContactPoints}" -p "port=${port}" -p "cassandra.username=${username}" -p "cassandra.password=${password}" -p operationcount=400000000 -p recordcount=400000000 -p exportfile=./data_load.exp -threads ${threadNum} -s > data_load.log 2>&1 &
- Use workload-insert-mostly as an example. Run the following command to test the performance:
sh bin/ycsb.sh run cassandra-cql -P workloads/workload-insert-mostly -p "hosts=${ContactPoints}" -p "port=${port}" -p "cassandra.username=${username}" -p "cassandra.password=${password}" -p operationcount=9000000 -p recordcount=9000000 -p maxexecutiontime=3600 -p exportfile=./workload-insert-mostly.exp -threads ${threadNum} -s > workload-insert-mostly_run.log 2>&1 &
Testing Models
- Workload model
Table 2 Test model No.
Testing Model
workload-read-mostly
95% read, 5% update
workload-read-write-combination
50% update, 50% read
workload-read-modify-write
50% read, 50% readmodifywrite
workload-mixed-operational-analytical
65% read, 25% update, 10% insert
workload-insert-mostly
90% insert, 10% read
Last Article: GaussDB(for Cassandra)
Next Article: Test Data
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.