Aggregate Settings
AtScale supports the following global-level settings for aggregates.
aggregate.batch.cube.gracePeriodOverrides.enabled
- Default:
false - Restart: No
Allow specifying grace period overrides when building an aggregate batch for a model. For more information, see Rebuilding Aggregates Using the REST API.
Enabling this functionality can potentially cause your system to become strained by expensive aggregate rebuilds.
aggregate.batch.gracePeriodOverrides.enabled
- Default:
false - Restart: No
Allow specifying grace period overrides when building an aggregate batch. Requires aggregate.batch.cube.gracePeriodOverrides.enabled to be enabled on the models you want to run incremental builds for. For more information, see Rebuilding Aggregates Using the REST API.
Enabling this functionality can potentially cause your system to become strained by expensive aggregate rebuilds.
aggregates.batch.max.failures
- Default:
0 - Restart: No
Max number of failures for a batch build, before the whole batch fails.
aggregates.batch.retry.maxAttemptsPerAggregate
- Default:
3 - Restart: No
The maximum number of reattempts to build a single aggregate during a single batch build. This number cannot exceed the value of aggregates.batch.retry.maxAttemptsPerBatch.
aggregates.batch.retry.maxAttemptsPerBatch
- Default:
5 - Restart: No
The maximum number of reattempts to build aggregates during a single batch build.
The following example illustrates how this setting interacts with aggregates.batch.retry.maxAttemptsPerAggregate:
| Step in the build process | Restarts for Aggregate A | Restarts for Aggregate B | Restarts for Aggregate C | Total restarts for the batch |
|---|---|---|---|---|
| A batch build of the aggregates in a model starts. | 0 | 0 | 0 | 0 |
| The build for Agg A fails and restarts. | 1 | 0 | 0 | 1 |
| The build for Agg A again fails and restarts. | 2 | 0 | 0 | 2 |
| The build for Agg B fails and restarts. | 2 | 1 | 0 | 3 |
| The build for Agg C fails and restarts. | 2 | 1 | 1 | 4 |
| The build for Agg C again fails and restarts. | 2 | 1 | 2 | 5 |
| The build for Agg C again. The batch build fails as a whole because the max number of retries has been reached. | 2 | 1 | 1 | 5 |
Moreover, if the value of aggregates.batch.retry.maxAttemptsPerAggregate is reached before the value of
aggregates.batch.retry.maxAttemptsPerBatch during a batch aggregate build, the build fails and ends.
Whenever a new build starts, the counters for both settings are reset to 0. To use the example in the table above, when a new batch build starts, the counter for the number of restarts for each aggregate table is set to 0. The counter for the total number of restarts for the batch is also reset to 0.