Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10854

Introduce cleanup job of old slingId data in discovery

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Discovery Oak 1.2.34
    • Discovery Oak 1.2.44
    • Discovery
    • None

    Description

      Discovery.oak stores nodes and properties per slingId under /var/discovery/oak. In a scenario where the slingIds are stable things are fine. If the slingIds change frequently, old slingId-related data stays as garbage and accumulates.

      We should introduce a cleanup job to delete old slingId data. The leader could execute this to avoid race conditions. We might need to add some additional property to indicate age of slingIds (there's already the /var/discovery/oak/clusterInstances/leaderElectionIdCreatedAt property which gets updated upon each discovery.oak bundle activation - but it's somewhat indirect. Having a new, dedicated property sounds cleaner (this one could be used to clean up old data though)

      Attachments

        Activity

          People

            stefanegli Stefan Egli
            stefanegli Stefan Egli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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