mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
need a bigger oplog size
This commit is contained in:
parent
65abee1492
commit
b661f15b4d
@ -145,7 +145,7 @@ class mongod(object):
|
|||||||
utils.ensureDir(dir_name)
|
utils.ensureDir(dir_name)
|
||||||
argv = [mongod_executable, "--port", str(self.port), "--dbpath", dir_name]
|
argv = [mongod_executable, "--port", str(self.port), "--dbpath", dir_name]
|
||||||
if self.kwargs.get('small_oplog'):
|
if self.kwargs.get('small_oplog'):
|
||||||
argv += ["--master", "--oplogSize", "128"]
|
argv += ["--master", "--oplogSize", "256"]
|
||||||
if self.slave:
|
if self.slave:
|
||||||
argv += ['--slave', '--source', 'localhost:' + str(srcport)]
|
argv += ['--slave', '--source', 'localhost:' + str(srcport)]
|
||||||
print "running " + " ".join(argv)
|
print "running " + " ".join(argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user