Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10479

support HttpShardHandlerFactory.loadBalancerRequests(MinimumAbsolute|MaximumFraction) options

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.7, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      If a request sends no timeAllowed threshold (or if it sends a very generous threshold) then that request can potentially be retried on 'very many' servers in the cloud.

      Via the HttpShardHandlerFactory.loadBalancerRequests(MinimumAbsolute|MaximumFraction) options the number of servers tried can be restricted via configuration e.g.

      <shardHandlerFactory name="shardHandlerFactory" class="solr.HttpShardHandlerFactory">
        <int   name="loadBalancerRequestsMinimumAbsolute">2</int>
        <float name="loadBalancerRequestsMaximumFraction">0.50</float>
      </shardHandlerFactory>
      

      would on a six-replica-and-all-replicas-active collection/shard restrict sending to three replicas i.e. max(2, 0.50 x 6) and if the collection/shard temporarily becomes three-replicas-active-and-three-replicas-recovering-or-down then sending is restricted to two replicas i.e. max(2, 0.50 x 3) temporarily.

        Attachments

        1. SOLR-10479.patch
          15 kB
          Christine Poerschke
        2. SOLR-10479.patch
          12 kB
          Christine Poerschke

          Activity

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              cpoerschke Christine Poerschke
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: