groovecoder/kuma — comment on commit e6e9d7818e9bdb8a2c49c2bf3b63b9f5a0fa08bd
File: apps/dekicompat/backends.py line 242
By lmorchard:

Should put a `time.sleep(RETRY_WAIT)` here, where `RETRY_WAIT` is a constant with a default of `1.0`. That way, this code doesn't just dogpile on the presumably failing servers with even more rapid-fire requests.

Even better, maybe do something like `(RETRY_WAIT * i)`, where `RETRY_WAIT` defaults to `0.5` or something. This implements a crude sort of back-off to increase chances that subsequent attempts might catch a recovered server.