Hi all,
We are trying to migrate our MongoDB databases but we’re stuck with this issue that seems to occur randomly; some times it hits in an early stage of the restore process, some other times it hits well beyond half of the restore process.
I found someone else posting a similar issue on stackoverflow: [URL=“mongodb - After Mongodump, calling MongoRestore hangs - Stack Overflow”]http://stackoverflow.com/questions/3...orestore-hangs[/URL]
OS: CentOS 7 KVM-guest
My mongod.conf file is as follows:
# cat /etc/mongod.conf
# mongod.conf, Percona Server for MongoDB
# for documentation of all options, see:
# http://docs.mongo.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine: mmapv1
# engine: PerconaFT
# engine: rocksdb
engine: wiredTiger
# Storage engine various options
# mmapv1:
wiredTiger:
engineConfig:
cacheSizeGB: 1
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongo/mongod.log
processManagement:
fork: true
pidFilePath: /var/run/mongod.pid
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
As you see the cache is reduced to 1Gb as previously Mongo was crashing back to OS, presumably after getting out of memory.
Finally: they say that sometimes a picture is worth a thousand words so [URL]http://i.imgur.com/p6tk0gL.png[/URL]