Skip to content

Commit

Permalink
Improve performance of "Preheating DNS cache" phase when running agai…
Browse files Browse the repository at this point in the history
…nst clusters with vnodes enabled
  • Loading branch information
Matt Jurik authored and rzvoncek committed May 5, 2020
1 parent 3a8dd81 commit fd4cfdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstar/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def create_lookup_thread(ip):
return threading.Thread(target=lambda: get_host_by_addr(ip))

print("Preheating DNS cache")
threads = [create_lookup_thread(ip) for ip in ips]
threads = [create_lookup_thread(ip) for ip in set(ips)]

for thread in threads:
thread.start()
Expand Down

0 comments on commit fd4cfdc

Please sign in to comment.