Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9869

Allow to configure purge executor in org.apache.lucene.monitor.Monitor

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.8, 8.9
    • Fix Version/s: None
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Extend org.apache.lucene.monitor.MonitorConfiguration with an ability to configure how cache purge task is scheduled by org.apache.lucene.monitor.Monitor (aka Luwak). In particular allow to use an external ScheduledExecutor.

      Currently each new instance of  org.apache.lucene.monitor.Monitor is creating a new thread in order to schedule a periodic cache purge task. This is fine as long as your application is using a small number of Monitor instances but if for some reason you want to create a large number of Monitor instances (e.g. to separate different business domains) you end up with excessive number of threads created.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pbugalski_dynatrace Paweł Bugalski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m