jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject [jclouds] JCLOUDS-460: Add jitter to avoid thundering herd (#286)
Date Mon, 10 Feb 2014 21:43:12 GMT
When issuing many simultaneous requests to Synaptic Atmos I observed:

HTTP/1.1 failed with code 500, error: AtmosError
[code=1040, message=The server is busy. Please try again.]

Previously all clients slept for fixed intervals and thus retried
around the same time.  This commit adds a random delay which should
better distribute load on the provider.
You can merge this Pull Request by running:

  git pull https://github.com/maginatics/jclouds thundering-herd

Or you can view, comment on it, or merge it online at:

  https://github.com/jclouds/jclouds/pull/286

-- Commit Summary --

  * JCLOUDS-460: Add jitter to avoid thundering herd

-- File Changes --

    M core/src/main/java/org/jclouds/http/handlers/BackoffLimitedRetryHandler.java (4)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/286.patch
https://github.com/jclouds/jclouds/pull/286.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/286

Mime
View raw message