1 test purposes
Simulate the production environment, the current test the performance of mongoDB.
2 test environment
2.1 Software Configuration
2.2 Hardware Configuration
3 testing tools
YCSB Yahoo open source NoSQL testing tools normally used to noSQL database performance, we are using here is ycsb-mongodb-binding-0.15.0.tar.gz package.
Need to create a new profile, and the adjustment parameter, and using the load / run command to load data performance testing.
3.1 Introduction
After #ycsb unpack the directory structure
# Before use , we must first understand the command structure
Command examples:
#/opt/ycsb/ycsb-mongodb-binding-0.15.0/bin/ycsb load mongodb -threads 1 -P workloads/workloada -p fieldcount=1 -p fieldlength=1024 -p table=ycsb1 -p clientbuffering=true -p mongodb.url=mongodb://用户:密码@ip:port/test?authSource=admin
Table 1-4 Parameter Name Description
parameter | |