Mongorestore really slow (on replica set)

1k Views Asked by At

I began using MongoDB, I've create a ReplicaSet, set 3 Nodes (Primary, Secondary, Arbiter).

I was really satisfied about failover, load tests, performance.

Last test was to restore from mongodump a BSON File.
I've installed Mongo on windows 2012 R2 platform, I used the shells mongodump e mongorestore, Dump has required just few secs the generated BSON file was really small 4mb.

When I tried to restore the BSON, the mongorestore stopped working almost immediately at (21%), I waited few minutes without any progress.

log:

connected to: ap2-mongodb00:27017 2014-12-09T15:15:16.558+0100 E:\ap2-mongodb01\dump_2014-09-12\test\Contacts.bson 2014-12-09T15:15:16.558+0100 going into namespace [test.Contacts] Restoring to test.Contacts without dropping. Restored data will be inserted without raising errors; check your server log 2014-12-09T15:15:26.582+0100 Progress: 1053740/4807174 21% (bytes)

After 15 minutes, it was still blocked

The Primary Mongo CPU was fixed al 12%, no way to complete the restore.

Have you any suggestion?

0

There are 0 best solutions below