def run_kv_rebalance(self): src_target_iterator = SrcTargetIterator(self.cluster_spec, self.test_config, "initial") self.access_and_rebalance(src_target_iterator) self.rebalance_out_node("kv") self.swap_node("kv")
def run(self): src_target_iterator = SrcTargetIterator(self.cluster_spec, self.test_config, "initial") PerfTest.load(self, target_iterator=src_target_iterator) self.wait_for_persistence() t0 = time.time() self.create_indexes() self.wait_for_indexing() index_build_time = time.time() - t0 logger.info("Index build time: {} min".format(index_build_time / 60)) self.init_only_xdcr() """ Commenting out wait for xdcr init as it is very slow time_elapsed = self.init_xdcr() logger.info("XDCR init time: {} min".format(time_elapsed / 60)) """ self.add_eventing_functions() self.create_fts_indexes() self.create_analytics_datasets() self.run_rebalance_phase() self.back_up() """ Keeping this at end as FTS swap rebalance fails - MB-32547 """ self.run_fts_rebalance()
def run(self): src_target_iterator = SrcTargetIterator(self.cluster_spec, self.test_config, "initial") PerfTest.load(self, target_iterator=src_target_iterator) self.wait_for_persistence() self.add_eventing_functions() self.run_kv_rebalance() self.run_eventing_rebalance()
def access_and_rebalance(self, src_target_iterator: SrcTargetIterator): time.sleep(self.SLEEP_TIME_BETWEEN_REBALNCE) src_target_iterator_access = SrcTargetIterator(self.cluster_spec, self.test_config, "access") PerfTest.access_bg(self, target_iterator=src_target_iterator_access) access_settings = self.test_config.access_settings access_settings.spring_batch_size = 5 access_settings.creates = 0 access_settings.updates = 1 access_settings.reads = 3 access_settings.deletes = 1 access_settings.throughput = 5 PerfTest.access_bg(self, settings=access_settings, target_iterator=src_target_iterator) self.rebalance()