crosbymichael/skydock — pull request #58 by ubergarm (2014-05-04 18:02:29+00:00)
Title: Improve robustness under high system load.

I had an issue where the skydock heartbeat goroutine would stop sending TTL updates to skydns because of the 'break' after an error (EOF and network hiccups under high system load).

This set of patches removes that break and adjusts errorCount to allow for brief periods of transient errors.

Testing showed that skydock was able to maintain registered skydns services even through stress testing using these patches and a more forgiving TTL `-ttl 120` and aggressive beat `-beat 15`.

Another level of improvement might be to to have skydock check with skydns.Get(uuid) and re-register any services that may have been lost due to a missed heartbeat.

Thanks!