def prepare_xdcr_lag(self, clusters): reversed_clusters = list(reversed(self.clusters.keys())) for i, cluster in enumerate(clusters): settings = copy(self.settings) settings.cluster = cluster settings.master_node = self.clusters[cluster] dest_cluster = reversed_clusters[i] settings.dest_master_node = self.clusters[dest_cluster] self.collectors.append(XdcrLag(settings))
def add_xdcr_lag(self): reversed_clusters = list(reversed(self.test.cbmonitor_clusters)) for i, cluster_id in enumerate(self.cluster_map): settings = copy(self.settings) settings.cluster = cluster_id settings.master_node = self.cluster_map[cluster_id] dest_cluster = reversed_clusters[i] settings.dest_master_node = self.cluster_map[dest_cluster] collector = XdcrLag(settings, self.test.test_config.access_settings) self.collectors.append(collector) break