brooklyncentral/brooklyn — pull request #1318 by sjcorbett (2014-04-10 09:40:40+00:00)
Title: Avoid thundering herd when SoftwareProcess rebinds its sensors

Applies a random delay of up to 10s before an entity calls connectSensors(). Without the delay all entities attempt to reconnect at once, which reliably causes SSH connection refused errors if several of the entities are running on the same machine. This doesn't guarantee to prevent refused connections but makes it much less likely.