Solr
  1. Solr
  2. SOLR-4302

Improve CoreAdmin STATUS request response time by allowing user to omit the Index info

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0, 4.1, 6.0
    • Fix Version/s: 4.1, 6.0
    • Component/s: multicore
    • Labels:

      Description

      In large multicore environments (hundreds+ of cores), the STATUS request may take a fair amount of time.
      It seems that the majority of time is spent retrieving the index related info.

      The suggested improvement allows the user to specify a parameter (indexInfo) that if 'false' then index related info (such as segmentCount, sizeInBytes, numDocs, etc.) will not be retrieved. By default, the indexInfo will be 'true' (to maintain existing STATUS request behavior).

      For example, when tested on a given machine with 380+ solr cores, the full STATUS request took 800ms-900ms, whereas using indexInfo=false returned results in about 1ms-4ms.

      1. SOLR-4302.patch
        5 kB
        Shahar Davidson

        Activity

        Hide
        Shahar Davidson added a comment - - edited

        Attached suggested patch SOLR-4302.patch. apply over trunk 1404975

        Show
        Shahar Davidson added a comment - - edited Attached suggested patch SOLR-4302 .patch. apply over trunk 1404975
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Shalin Shekhar Mangar
        http://svn.apache.org/viewvc?view=revision&revision=1432901

        SOLR-4302: New parameter 'indexInfo' (defaults to true) in CoreAdmin STATUS command can be used to omit index specific information

        Show
        Commit Tag Bot added a comment - [trunk commit] Shalin Shekhar Mangar http://svn.apache.org/viewvc?view=revision&revision=1432901 SOLR-4302 : New parameter 'indexInfo' (defaults to true) in CoreAdmin STATUS command can be used to omit index specific information
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed to trunk and branch_4x.

        Thanks Shahar!

        Show
        Shalin Shekhar Mangar added a comment - Committed to trunk and branch_4x. Thanks Shahar!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Shalin Shekhar Mangar
        http://svn.apache.org/viewvc?view=revision&revision=1432903

        SOLR-4302: New parameter 'indexInfo' (defaults to true) in CoreAdmin STATUS command can be used to omit index specific information

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Shalin Shekhar Mangar http://svn.apache.org/viewvc?view=revision&revision=1432903 SOLR-4302 : New parameter 'indexInfo' (defaults to true) in CoreAdmin STATUS command can be used to omit index specific information

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shahar Davidson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development