Skip to content

Commit fd4cfdc

Browse files
Matt Jurikrzvoncek
authored andcommitted
Improve performance of "Preheating DNS cache" phase when running against clusters with vnodes enabled
1 parent 3a8dd81 commit fd4cfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cstar/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def create_lookup_thread(ip):
156156
return threading.Thread(target=lambda: get_host_by_addr(ip))
157157

158158
print("Preheating DNS cache")
159-
threads = [create_lookup_thread(ip) for ip in ips]
159+
threads = [create_lookup_thread(ip) for ip in set(ips)]
160160

161161
for thread in threads:
162162
thread.start()

0 commit comments

Comments
 (0)