We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71685b commit 571dc2cCopy full SHA for 571dc2c
MongoBackup/Methods/Dumper.py
@@ -68,12 +68,12 @@ def wait(self):
68
69
def run(self):
70
# decide how many parallel dump workers to use based on cpu count vs # of shards (if 3.2+)
71
- self.threads_per_dump = 1
+ self.threads_per_dump = 0
72
if tuple(self.version.split(".")) >= tuple("3.2.0".split(".")):
73
+ self.threads_per_dump = 1
74
if self.cpu_count > len(self.secondaries):
75
self.threads_per_dump = int(floor(self.cpu_count / len(self.secondaries)))
76
else:
- self.threads_per_dump = 0
77
logging.warn("Threading unsupported by mongodump version %s. Use mongodump 3.2.0 or greater to enable per-dump threading." % self.version)
78
79
# backup a secondary from each shard:
0 commit comments