Skip to content

Roll-Up Data Guide: Overview

What roll-up does, the modules that run it, when each roll-up duration is collated, and the related procedures.

3 min read Updated SS

Overview#

Roll-up is a data aggregation technique used to reduce the volume of detailed data and ensure smoother system performance. It works by summarizing large datasets into higher-level views (such as hourly or daily), which minimizes storage usage and processing load.

This roll-up is performed for the Heal_Collated_KPI data, on two types of jobs:

  • Recurring jobs
  • Non-recurring jobs

The following modules manage the scheduling of these jobs:

  • The scheduler service
  • The job executor

Architecture#

Roll-up in HEAL is driven by two platform modules working together:

  • Scheduler Service — creates and schedules the roll-up jobs based on their configuration stored in the Percona (MySQL 8.x) scheduler tables.
  • Job Executor — consumes the scheduled jobs from the message queue and runs the aggregation against the Heal_Collated_KPI indices in OpenSearch.

Job definitions and their arguments are persisted in Percona, while runtime tuning (cache sizes and update intervals) is controlled through Consul keys. The source 1-minute collated KPI data held in OpenSearch is aggregated into lower-granularity indices (15-minute, 30-minute, 60-minute, and 1440-minute), which sharply reduces both storage footprint and query load.

Calculations#

Duration#

The following time durations are supported for roll-up collation:

  • 15 min
  • 30 min
  • 60 min
  • 1440 min

Tracking Time Duration#

The table below defines when data is recorded and the corresponding data window for each duration. The recording time refers to when the data entry is logged; the data window defines the range of data being collated.

Duration Recording Time Data Window Start Data Window End
15 min 10:50 AM 10:30 AM 10:45 AM
30 min 11:09 AM 10:30 AM 11:00 AM
60 min 11:45 AM 10:30 AM 11:30 AM
1440 min Today 00:25 AM Yesterday 00:00 AM Today 00:00 AM

Explanation:

  • For the 15-minute interval, data is recorded at 10:50 AM, covering 10:30 AM – 10:45 AM.
  • For the 30-minute interval, data is recorded at 11:09 AM, covering 10:30 AM – 11:00 AM.
  • For the 60-minute interval, data is recorded at 11:45 AM, covering 10:30 AM – 11:30 AM.
  • For the 1440-minute (daily) interval, data is recorded at 00:25 AM, covering yesterday 00:00 AM to today 00:00 AM.

The following examples show the full 24-hour cron trigger schedule for each roll-up duration, based on the configured cron offset.

15-minute roll-up (5-minute cron offset)

Trigger Time Start Time End Time
0:05 23:45 0:00
0:20 0:00 0:15
0:35 0:15 0:30
0:50 0:30 0:45
1:05 0:45 1:00
1:20 1:00 1:15
1:35 1:15 1:30
1:50 1:30 1:45
2:05 1:45 2:00
2:20 2:00 2:15
2:35 2:15 2:30
2:50 2:30 2:45
3:05 2:45 3:00
3:20 3:00 3:15
3:35 3:15 3:30
3:50 3:30 3:45
… … …
21:05 20:45 21:00
21:20 21:00 21:15
21:35 21:15 21:30
21:50 21:30 21:45
22:05 21:45 22:00
22:20 22:00 22:15
22:35 22:15 22:30
22:50 22:30 22:45
23:05 22:45 23:00
23:20 23:00 23:15
23:35 23:15 23:30
23:50 23:30 23:45

30-minute roll-up (9-minute cron offset)

Trigger Time Start Time End Time
0:09 23:30 0:00
0:39 0:00 0:30
1:09 0:30 1:00
1:39 1:00 1:30
2:09 1:30 2:00
2:39 2:00 2:30
3:09 2:30 3:00
3:39 3:00 3:30
4:09 3:30 4:00
4:39 4:00 4:30
5:09 4:30 5:00
5:39 5:00 5:30
6:09 5:30 6:00
6:39 6:00 6:30
7:09 6:30 7:00
7:39 7:00 7:30
8:09 7:30 8:00
8:39 8:00 8:30
9:09 8:30 9:00
9:39 9:00 9:30
10:09 9:30 10:00
10:39 10:00 10:30
11:09 10:30 11:00
11:39 11:00 11:30
12:09 11:30 12:00
12:39 12:00 12:30
13:09 12:30 13:00
13:39 13:00 13:30
14:09 13:30 14:00
14:39 14:00 14:30
15:09 14:30 15:00
15:39 15:00 15:30
16:09 15:30 16:00
16:39 16:00 16:30
17:09 16:30 17:00
17:39 17:00 17:30
18:09 17:30 18:00
18:39 18:00 18:30
19:09 18:30 19:00
19:39 19:00 19:30
20:09 19:30 20:00
20:39 20:00 20:30
21:09 20:30 21:00
21:39 21:00 21:30
22:09 21:30 22:00
22:39 22:00 22:30
23:09 22:30 23:00
23:39 23:00 23:30

60-minute roll-up (15-minute cron offset)

Trigger Time Start Time End Time
0:15 23:00 0:00
1:15 0:00 1:00
2:15 1:00 2:00
3:15 2:00 3:00
4:15 3:00 4:00
5:15 4:00 5:00
6:15 5:00 6:00
7:15 6:00 7:00
8:15 7:00 8:00
9:15 8:00 9:00
10:15 9:00 10:00
11:15 10:00 11:00
12:15 11:00 12:00
13:15 12:00 13:00
14:15 13:00 14:00
15:15 14:00 15:00
16:15 15:00 16:00
17:15 16:00 17:00
18:15 17:00 18:00
19:15 18:00 19:00
20:15 19:00 20:00
21:15 20:00 21:00
22:15 21:00 22:00
23:15 22:00 23:00

1440-minute roll-up (25-minute cron offset)

Trigger Time Start Time End Time
0:25 00:00 0:00

Note: Before you upgrade to HEAL v2.4.1, run the roll-up table change on roll_up_details and then back up Percona, as described in the v2.4.1 upgrade Prerequisites (Setup Prerequisites).