nohup ./ycsb-0.15.0/bin/ycsb load mongodb -s -P workloads/workloada-p mongodb.url=mongodb://mongouser:password@10.xx.xx.30:27017,10.xx.xx.28:27017,10.xx.xx.5:27017/admin?w=0 -p table=test -threads 300 -p recordcount=10000000>loadlog.txt &
nohup ./ycsb-0.15.0/bin/ycsb run mongodb -s -P workloads/workloada -p mongodb.url=mongodb://mongouser: password @10.xx.xx.30:27017,10.xx.xx.28:27017,10.xx.xx.5:27017/admin?w=0 -p table=test -p recordcount=10000000 -p readproportion=0.5 -p updateproportion=0.5 -p insertproportion=0 -p operationcount=100000 -threads 100 >runlog.txt &
nohup ./ycsb-0.15.0/bin/ycsb run mongodb -s -P workloads/workloada -p mongodb.url=mongodb://mongouser: password @10.xx.xx.30:27017,10.xx.xx.28:27017,10.xx.xx.5:27017/admin?w=0 -p table=test -p recordcount=10000000 -p readproportion=0.95 -p updateproportion=0.05 -p insertproportion=0 -p operationcount=100000 -threads 100 >runlog.txt &
-p operationcount=100000
根据具体执行时间动态调整,需要保证执行时间在二十分钟以上,否则时间过短没有代表性。?w=0
中的 w 表示 write concern。MongoDB 规格 | threads | throughput(ops/sec) | RAL(us) | WAL(us) | CPU 利用率 |
2核4GB | 100 | 3188 | 24091 | 38254 | 100% |
2核4GB | 200 | 5510 | 34475 | 38022 | 100% |
4核8GB | 100 | 7058 | 8355 | 19887 | 100% |
4核8GB | 200 | 13590 | 14391 | 14983 | 100% |
6核16GB | 100 | 8970 | 22132 | 51 | 100% |
6核16GB | 200 | 10041 | 28696 | 10966 | 100% |
12核32GB | 100 | 29462 | 6727 | 35 | 100% |
12核32GB | 200 | 47815 | 4673 | 3681 | 100% |
24核64GB | 100 | 107047 | 1826 | 33 | 100% |
24核64GB | 200 | 51046 | 7802 | 27 | 100% |
24核128GB | 100 | 130811 | 1486 | 32 | 100% |
24核128GB | 200 | 49274 | 8054 | 27 | 100% |
32核240GB | 100 | 154253 | 1254 | 32 | 100% |
32核240GB | 200 | 52148 | 8243 | 1108 | 100% |
48核512GB | 100 | 174284 | 1103 | 28 | 100% |
48核512GB | 200 | 121713 | 3237 | 32 | 100% |
MongoDB 规格 | threads | throughput(ops/sec) | RAL(us) | WAL(us) | CPU 利用率 |
2核4GB | 100 | 2738 | 38216 | 178 | 100% |
2核4GB | 200 | 10093 | 20178 | 11561 | 100% |
4核8GB | 100 | 14380 | 6864 | 7631 | 100% |
4核8GB | 200 | 26459 | 7651 | 5369 | 100% |
6核16GB | 100 | 13707 | 7650 | 56 | 100% |
6核16GB | 200 | 45796 | 4383 | 3928 | 100% |
12核32GB | 100 | 115529 | 902 | 37 | 100% |
12核32GB | 200 | 56751 | 3658 | 31 | 100% |
24核64GB | 100 | 160227 | 668 | 29 | 100% |
24核64GB | 200 | 112755 | 1876 | 32 | 100% |
24核128GB | 100 | 159130 | 659 | 26 | 100% |
24核128GB | 200 | 112993 | 1936 | 32 | 100% |
32核240GB | 100 | 167518 | 634 | 28 | 74% |
32核240GB | 200 | 172424 | 1244 | 35 | 100% |
48核512GB | 100 | 173768 | 608 | 31 | 50% |
48核512GB | 200 | 211986 | 1012 | 33 | 85% |
本页内容是否解决了您的问题?