def apply_scanworkload(self, path_to_tool="/opt/couchbase/bin/cbindexperf"): rest_username, rest_password = self.cluster_spec.rest_credentials t = 0 while t < self.scan_time: run_cbindexperf(path_to_tool, self.index_nodes[0], rest_username, rest_password, self.configfile, run_in_background=True) time.sleep(3600) kill_process("cbindexperf") t += 3600
def apply_scanworkload(self, path_to_tool="/opt/couchbase/bin/cbindexperf"): rest_username, rest_password = self.cluster_spec.rest_credentials t = 0 while t < self.scan_time: self.change_scan_range(t) run_cbindexperf(path_to_tool, self.index_nodes[0], rest_username, rest_password, self.configfile, run_in_background=True) time.sleep(self.test_config.access_settings.working_set_move_time) kill_process("cbindexperf") t += self.test_config.access_settings.working_set_move_time
def apply_scanworkload(self, path_to_tool="./opt/couchbase/bin/cbindexperf"): """Apply moving scan workload and collect throughput for each load.""" rest_username, rest_password = self.cluster_spec.rest_credentials t = 0 while t < self.scan_time: self.change_scan_range(t) run_cbindexperf(path_to_tool, self.index_nodes[0], rest_username, rest_password, self.configfile, run_in_background=True) time.sleep(self.test_config.access_settings.working_set_move_time) kill_process("cbindexperf") self.scan_thr.append(self.get_throughput()) t += self.test_config.access_settings.working_set_move_time
def terminate(self): logger.info('Terminating Celery workers') local.kill_process('celery')