Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-2620

Reduce the number of snapshots loaded during hourly tally snapshot creation/rollup

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • swatch-tally
    • 5
    • False
    • Hide

      None

      Show
      None
    • True

      The CombiningRollupStrategy, used to produce/roll snapshots during the hourly tally, is currently loading all finest granularity snapshots in the supplied range when it does not need to. If the date of either of the snapshots does not match a date in the incoming calculations, the snapshot is just ingored during update, and was looked up for no reason at all.

      It should only need to load any that match the dates of the incoming usage calculations.

      For example, if an hourly tally run finds an un-tallied event well into the past and one that is current, the strategy will load all finest granularity snapshots within the range created by the two events, and would only end up updating 2 of them (1 per event).

       

      DONE:

      • Hourly tally no longer specifies a range when producing snapshots. Only pull snapshots for the hours applicable based on the incoming account usage calculations
      • There are no changes to the REST APIs
      • Hourly & nightly snapshots are validated
      • Update CombiningRollupStrategy to use the incoming calculation dates to determine which finest granularity snapshots should be queried

              mstead@redhat.com Michael Stead
              mstead@redhat.com Michael Stead
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: