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

maxOptimizeSegments should support percentages and negative numbers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • update
    • None

    Description

      the optimize command currently supports a "maxOptimizeSegments" option which allows an integer to be specified resulting in a "partial optimize" down to that number of segments.

      This requires clients to have some visibility into the current number of segments. Client code could be simpler if there was an easy way to just say "make it smaller by some amount"

      I propose that we start supporting negative numbers and percentages as a way of saying "optimize down to X segments less then the current value" or "optimize down to X% of the current value" This could be used by "dumb" automatic monitors when they notice that update traffic is low, or system resources are idle, w/o those monitors needing to inspect the index to pick a good concrete number of segments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: