Пример #1
0
 def __init__(self, cfg, clock, track, track_setup, cluster):
     TimedOperation.__init__(self, clock)
     self.cfg = cfg
     self.clock = clock
     self.track = track
     self.track_setup = track_setup
     self.cluster = cluster
     self.metrics_store = cluster.metrics_store
     self.progress = progress.CmdLineProgressReporter()
     self.quiet_mode = self.cfg.opts("system", "quiet.mode")
Пример #2
0
 def __init__(self, cfg, clock, track, challenge, cluster, phase):
     self.cfg = cfg
     self.clock = clock
     self.track = track
     self.challenge = challenge
     self.cluster = cluster
     self.phase = phase
     self.metrics_store = cluster.metrics_store
     self.progress = progress.CmdLineProgressReporter()
     self.quiet_mode = self.cfg.opts("system", "quiet.mode")
Пример #3
0
 def __init__(self, config, clock, track, track_setup, cluster):
     TimedOperation.__init__(self, clock)
     self.cfg = config
     self.stop_watch = clock.stop_watch()
     self.track = track
     self.track_setup = track_setup
     self.cluster = cluster
     self.metrics_store = cluster.metrics_store
     self.quiet_mode = self.cfg.opts("system", "quiet.mode")
     self.progress = progress.CmdLineProgressReporter()
     self.bulk_size = 5000
     self.processed = 0
     logger.info("Use %d docs per bulk request" % self.bulk_size)
Пример #4
0
 def __init__(self):
     super().__init__()
     self.config = None
     # Elasticsearch client
     self.es = None
     self.metrics_store = None
     self.raw_samples = []
     self.currently_completed = 0
     self.clients_completed_current_step = {}
     self.current_step = -1
     self.number_of_steps = 0
     self.start_sender = None
     self.allocations = None
     self.join_points = None
     self.ops_per_join_point = None
     self.drivers = []
     self.progress_reporter = progress.CmdLineProgressReporter()
     self.progress_counter = 0
     self.quiet = False
     self.most_recent_sample_per_client = {}