Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-5439

LeastRequestsStrategy should distribute load randomly when idle

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0, 6.0.0, 5.5.0
    • Fix Version/s: 7.0.0
    • Component/s: core apis
    • Labels:

      Description

      LeastRequestsStrategy select the server which has the less number of concurrent requests already assigned to it.
      When all the servers have a same load (which is the case when idle) the request is currently sent to the first server of the list.

      During startup, AM sends a request to get all blacklisted tokens. When multiple instances of AM are starting-up simultaneously, all these requests are forwarded to the same DJ server: the first one from the list.

      A solution could be that when all server are idle, return a random server rather than the first one.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ylecaillez Yannick Lecaillez
                Reporter:
                ylecaillez Yannick Lecaillez
                Dev Assignee:
                Yannick Lecaillez
                QA Assignee:
                carole forel
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: