Esempio n. 1
0
 def __init__(self, *args):
     super().__init__(*args)
     extract_cb_deb(filename='couchbase.deb')
     self.collect_per_server_stats = self.test_config.magma_settings.collect_per_server_stats
     self.disk_stats = {}
     self.memcached_stats = {}
     self.disk_ops = {}
Esempio n. 2
0
    def __init__(self, *args):
        super().__init__(*args)

        self.configfile = self.test_config.gsi_settings.cbindexperf_configfile
        self.configfiles = self.test_config.gsi_settings.cbindexperf_configfiles.split(
            ",")
        self.run_recovery_test = self.test_config.gsi_settings.run_recovery_test
        self.incremental_only = self.test_config.gsi_settings.incremental_only
        self.incremental_load_iterations = self.test_config.gsi_settings.incremental_load_iterations
        self.scan_time = self.test_config.gsi_settings.scan_time
        self.report_initial_build_time = self.test_config.gsi_settings.report_initial_build_time

        self.storage = self.test_config.gsi_settings.storage
        self.indexes = self.test_config.gsi_settings.indexes

        self.bucket = self.test_config.buckets[0]
        self.target_iterator = TargetIterator(self.cluster_spec,
                                              self.test_config, "gsi")
        extract_cb_deb(filename='couchbase.deb')

        self.cbindexperf_concurrency = self.test_config.gsi_settings.cbindexperf_concurrency
        self.cbindexperf_repeat = self.test_config.gsi_settings.cbindexperf_repeat

        if self.cbindexperf_concurrency and self.cbindexperf_repeat:
            with open(self.configfile, 'r') as f:
                cbindexperf_contents = json.load(f)

            cbindexperf_contents["Concurrency"] = self.cbindexperf_concurrency
            for scan_spec in cbindexperf_contents["ScanSpecs"]:
                scan_spec["Repeat"] = self.cbindexperf_repeat

            with open(self.configfile, 'w') as f:
                json.dump(cbindexperf_contents, f)

        if self.storage == "plasma":
            self.COLLECTORS["secondary_storage_stats"] = True
            self.COLLECTORS["secondary_storage_stats_mm"] = True

        if self.test_config.gsi_settings.disable_perindex_stats:
            self.COLLECTORS["secondary_debugstats_index"] = False
            self.COLLECTORS["secondary_storage_stats"] = False

        self.build = self.rest.get_version(self.master_node)
Esempio n. 3
0
    def __init__(self, *args):
        super().__init__(*args)

        self.configfile = self.test_config.gsi_settings.cbindexperf_configfile
        self.configfiles = self.test_config.gsi_settings.cbindexperf_configfiles.split(
            ",")
        self.run_recovery_test = self.test_config.gsi_settings.run_recovery_test
        self.incremental_only = self.test_config.gsi_settings.incremental_only
        self.incremental_load_iterations = self.test_config.gsi_settings.incremental_load_iterations
        self.scan_time = self.test_config.gsi_settings.scan_time
        self.report_initial_build_time = self.test_config.gsi_settings.report_initial_build_time

        self.storage = self.test_config.gsi_settings.storage
        self.indexes = self.test_config.gsi_settings.indexes

        self.bucket = self.test_config.buckets[0]
        self.target_iterator = TargetIterator(self.cluster_spec,
                                              self.test_config, "gsi")
        extract_cb_deb(filename='couchbase.deb')

        if self.storage == "plasma":
            self.COLLECTORS["secondary_storage_stats"] = True
            self.COLLECTORS["secondary_storage_stats_mm"] = True
Esempio n. 4
0
 def __init__(self, settings, test):
     super().__init__(settings)
     extract_cb_deb(filename='couchbase.deb')
     self.collect_per_server_stats = test.collect_per_server_stats
     self.cluster_spec = test.cluster_spec