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

Per-request cache statistics

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We have found it very useful to have information on the number of cache hits and misses for key Solr caches (filterCache, documentCache, etc.) at the request level.

      This is currently implemented in our codebase using custom SolrCache implementations.

      I am working on moving to maintaining stats in the SolrRequestInfo thread-local, and adding hooks in get() methods of SolrCache implementations. This will be glued up using the DebugComponent and can be requested using a "debug.cache" parameter.

      Attachments

        1. SOLR-5637.patch
          15 kB
          Gregg Donovan
        2. SOLR-5637.patch
          15 kB
          Shikhar Bhushan
        3. SOLR-5367.patch
          15 kB
          Shikhar Bhushan
        4. SOLR-5367.patch
          10 kB
          Shikhar Bhushan

        Activity

          People

            Unassigned Unassigned
            shikhar Shikhar Bhushan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: