We have 3 instances in replica. Primary with 2 cores CPU and 4 GB RAM. Secondary with 1 core CPU and 4 GB RAM. Arbiter with 1 core CPU and 2 GB RAM.
The first test:
mongodb-org-server-2.6.10-1.x86_64
logpath=/var/log/mongodb/mongod.log
logappend=true
fork=true
dbpath=/mnt/mongo
pidfilepath=/var/run/mongodb/mongod.pid
And the second test: mongodb-org-server-3.0.4-1.x86_64
processManagement:
pidFilePath: "/var/run/mongodb/mongod.pid"
fork: true
storage:
dbPath: "/mnt/mongo/"
engine: "wiredTiger"
wiredTiger:
collectionConfig:
blockCompressor: none
engineConfig:
cacheSizeGB: 2
journalCompressor: none
indexConfig:
prefixCompression: false
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
replication:
replSetName: testrepl
CPU usage: http://i.imgur.com/Nmj021g.png
With the same loadtest we have 2x CPU load on MongoDB 3 with WiredTiger engine.
MongoDB Stats: http://i.imgur.com/cxrfUIC.png
So the question is why MongoDB 3 with WiredTiger uses 2 times more CPU? Is it normal for WiredTiger? Data in database was not changed between test. We have the same load test scenario in both times.
wiredTiger:
collectionConfig:
blockCompressor: none
engineConfig:
cacheSizeGB: 2
journalCompressor: none
indexConfig:
prefixCompression: false