I would guess: checking if machines are online without rolling an overkill monitoring solution. More of a smoke test than a proper solution (ping does not ensure a service is up for example).
1) Finding other reachable hosts in a local network.
2) This can be slightly modified to get average latency for each host.
This is not a replacement for health check.
12 comments
[ 9.1 ms ] story [ 118 ms ] threadThere are some cool examples of places were xargs fails in the docs, this got me very excited I hope it works in 2.7. https://docs.python.org/3/library/concurrent.futures.html
In simple cases, you could use multiprocessing.Pool():
There is also ThreadPool. There are known issues with multiprocessing especially on Python 2.7 e.g., Ctrl+C handling.Though you don't need threading to manage concurrent subprocesses or IO (Gevent, Twisted or curio if you use Python 3).
https://github.com/inkvizitor/asyncping