Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-460

Add random delay to avoid thundering herd problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2, 1.8.0
    • jclouds-blobstore
    • None

    Description

      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.]

      This is a general problem for private blobstores since a single client can often overwhelm the server with many requests. While jclouds retries in many of these situations, it waits a fixed amount of time between requests, often overwhelming the server again. Instead it should insert some jitter, e.g., 0-10% extra delay, to more evenly distribute the retries.

      Attachments

        Activity

          People

            gaul Andrew Gaul
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: