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.
    Table 1 DB instance classes

    No.

    Instance Class

    cluster1

    4 vCPUs | 16 GB

    cluster2

    8 vCPUs | 32 GB

    cluster3

    16 vCPUs | 64 GB

    cluster4

    32 vCPUs | 128 GB

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

  1. 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.

  2. 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 &

  3. 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

  • Data model

    fieldlength=100, fieldcount=10

  • Data volume to be prepared

    Test the DB instances of different classes using the following data volume.

    The following table lists the data volume.

    Table 3 Data volume to be prepared

    No.

    Instance Class

    Data volume to be prepared

    cluster1

    4 vCPUs | 16 GB

    50 GB

    cluster2

    8 vCPUs | 32 GB

    100 GB

    cluster3

    16 vCPUs | 64 GB

    200 GB

    cluster4

    32 vCPUs | 128 GB

    400 GB

  • Test mode

    In the test, high-performance mode is used.