MCPcopy Create free account
hub / github.com/apache/impala / _create_workload_threads

Method _create_workload_threads

tests/performance/scheduler.py:75–84  ·  view source on GitHub ↗

Create workload threads. Each workload thread is analogus to a client name, and is identified by a unique ID, the workload that's being run and the table formats it's being run on.

(self)

Source from the content-addressed store, hash-verified

73 return self._results
74
75 def _create_workload_threads(self):
76 """Create workload threads.
77
78 Each workload thread is analogus to a client name, and is identified by a unique ID,
79 the workload that's being run and the table formats it's being run on."""
80 for thread_num in range(self.num_clients):
81 thread = Thread(target=self._run_queries, args=[thread_num],
82 name=self._thread_name % thread_num)
83 thread.daemon = True
84 self._threads.append(thread)
85
86 def _get_next_impalad(self):
87 """Maintains a rotating list of impalads"""

Callers 1

__init__Method · 0.95

Calls 3

rangeFunction · 0.85
ThreadClass · 0.50
appendMethod · 0.45

Tested by

no test coverage detected