Test Methods
Environment Information
• Region: HongKong2.
• Availability Zone: Availability Zone 1.
• Stress testing ECS: Ultra-high I/O type ip3.8xlarge.8, 32-core | 256G, CentOS 7.8 64-bit version.
• Instance Type: 3-node replica set and 2-shard cluster version.
• Database version: DDS 4.0.
Test Tool
This test uses the YCSB 0.17.0 stress testing tool of the open source community for stress testing.
Test Metrics
OPS: Operation Per Second, the number of operations performed by the database per second.
Test Model
workload model number | workload model |
W1 | 100% insert |
W2 | 90% update ,10% read |
W3 | 65% read ,25% insert, 10% update |
W4 | 90% read ,5% insert, 5% update |
W5 | 50% update, 50% read |
W6 | 100% read |
Test Steps
Configuration parameters: According to the test model, modify the recordcount, operationcount, readproportion, insertproportion and updateproportion in the workloada configuration, for details, see DDS - Performance Whitepaper - Replica Set Test Data.
Data loading: ./bin/ycsb load mongodb -s -P workloads/workloada -p mongodb.url=mongodb://ip:port/ycsb?w=0 -threads xx > outputLoad.txt
Performance stress testing: ./bin/ycsb run mongodb -s -P workloads/workloada -p mongodb.url=mongodb://ip:port/ycsb?w=0 -threads xx > outputLoad.txt