Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
    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
Esempio n. 4
0
    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
Esempio n. 5
0
 def apply_scanworkload(self, path_to_tool="/opt/couchbase/bin/cbindexperf"):
     rest_username, rest_password = self.cluster_spec.rest_credentials
     status = run_cbindexperf(path_to_tool, self.index_nodes[0],
                              rest_username, rest_password, self.configfile)
     if status != 0:
         raise Exception('Scan workload could not be applied')
     else:
         logger.info('Scan workload applied')
Esempio n. 6
0
 def apply_scanworkload(self,
                        path_to_tool="/opt/couchbase/bin/cbindexperf"):
     rest_username, rest_password = self.cluster_spec.rest_credentials
     status = run_cbindexperf(path_to_tool, self.index_nodes[0],
                              rest_username, rest_password, self.configfile)
     if status != 0:
         raise Exception('Scan workload could not be applied')
     else:
         logger.info('Scan workload applied')
Esempio n. 7
0
    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
Esempio n. 8
0
 def apply_scanworkload(self,
                        path_to_tool="./opt/couchbase/bin/cbindexperf"):
     rest_username, rest_password = self.cluster_spec.rest_credentials
     with open(self.configfile, 'r') as fp:
         config_file_content = fp.read()
     logger.info("cbindexperf config file: \n" + config_file_content)
     status = run_cbindexperf(path_to_tool, self.index_nodes[0],
                              rest_username, rest_password, self.configfile)
     if status != 0:
         raise Exception('Scan workload could not be applied')
     else:
         logger.info('Scan workload applied')