Beispiel #1
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose,
                        quickstart=False) as self.mongo:
         while True:
             self.test_push()
Beispiel #2
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose,
                        quickstart=False) as self.mongo:
         while True:
             self.test_push()
Beispiel #3
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose,
                        quickstart=False,
                        nodes=1) as self.mongo:
         while True:
             self.test_index_builds()
Beispiel #4
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose) as self.mongo:
         while True:
             client = self.mongo.connect_primary()
             for i in xrange(30):
                 client['test']['test_failover'].insert({"heartbeat": time.time()})
                 time.sleep(1)
             self.test_failover()
Beispiel #5
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose) as self.mongo:
         while True:
             client = self.mongo.connect_primary()
             for i in xrange(30):
                 client['test']['test_failover'].insert(
                     {"heartbeat": time.time()})
                 time.sleep(1)
             self.test_failover()
Beispiel #6
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose) as self.mongo:
         self.test_failover()
Beispiel #7
0
 def run(self):
     with mongo.replset(mongod=self.options.mongod,
                        port=self.options.port,
                        verbose=self.options.verbose) as self.mongo:
         self.test_failover()