Skip to content

Aggregation

Shagiakhmetov Timur edited this page Jun 17, 2019 · 2 revisions

It's a process of aggregating the profiler's data for one day grouped by app, label and date. The aggregating script applied each function of aggregator.field_variations parameter on each field from aggregator.fields.

There are 2 modes of aggregation:

  1. Auto aggregation once a day. A script runs once a day and aggregates all profiles for previous day. By default the script tries to aggregate profiles for last 3 days to process skipped profiles on previous days.
  2. Manual aggregation of custom snapshot from web interface or using a special script

Aggregation process conveniently to use with docker. You have to set properly database connections for the profiler's and aggregator's data. To run manual aggregation:

docker-compose run --rm  --entrypoint '/usr/local/bin/php /app/bin/cli.php aggregator:aggregate-manual label app YYYY-MM-DD' web

Manual aggregation without docker:

AGGREGATOR_CONFIG_PATH=%PATH_TO_CONFIG% /usr/local/bin/php %PATH_TO_PROJECT%/bin/cli.php aggregator:aggregate-manual label app YYYY-MM-DD
Clone this wiki locally