Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1818

Garbage collection process for binaries should be configurable

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Critical
    • 3.1.3.Final, 3.2.0.Final
    • 3.1.1.Final
    • JCR
    • None

    Description

      The ModeShape engine has a garbage collection process that cleans up non-scoped locks and unused binaries. These tasks were registered in the engine and are therefore not configurable for each repository.

      However, while the lock cleanup could continue to be executed every 5 minutes, cleaning up unused binaries probably shouldn't be done nearly that often because:

      1. on larger repositories it will likely take longer than 5 minutes to run
      2. it only reclaims unused persistent storage
      3. it's probably desirable to run off-hours

      Therefore, we should change how the binary garbage collection is configured. We probably want to allow specification of when and how frequently it is to be run. For example, we could allow setting a start time (e.g., maybe ISO 8601 format??) and a frequency (or interval). Perhaps the default start time should be midnight local time, and the default interval is 24 hours.

      Also, if each repository had this configuration, then the ModeShape engine could ask the JcrRepository to register with the engine's executor any scheduled processes near the end of the repository startup process.

      Attachments

        Activity

          People

            rhauch Randall Hauch (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: