Skip to content

Allow to configure purge executor in org.apache.lucene.monitor.Monitor [LUCENE-9869] #10908

Open
@asfimport

Description

@asfimport

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.


Migrated from LUCENE-9869 by Paweł Bugalski, updated Jul 15 2021
Pull requests: #99

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions