This topic describes how to test the performance of ApsaraDB for MongoDB.

Procedure

  1. Modify the following parameters in the workloada configuration: recordcount, operationcount, readproportion, and updateproportion.
    Note The values of the recordcount and operationcount parameters vary with instance types. For more information, see Test results.
  2. Prepare data resources for testing.
     ./bin/ycsb load mongodb -s -P workloads/workloada -p mongodb.url=mongodb://ip:port/ycsb? w=0 -threads xx > outputLoad.txt
  3. Start the performance test.
    ./bin/ycsb run mongodb -s -P workloads/workloada  -p mongodb.url=mongodb://ip:port/ycsb? w=0 -threads xx > outputRun.txt