Dokumentation · Arkitektur og beslutninger
The measurement at 50 roots: 2026-11-23, commit 8a5ed97
Written by python -m elo_devtools.scale (B73); the ADR is docs/adr/ADR-004-scale-at-500.md.
Seconds through HTTP as elo_api, warm: the median and the slowest of five after a first.
Database: 61 metering points, 61 series, 4,942,896 readings, 133,651 day rows, 315,504 factor rows; frontier 2026-11-22. Matrix defaults; the run took 331 s; cells not reached: 0.
What else ran on the VM (4 CPUs): load average 2.06 2.70 2.73 before, 2.04 2.32 2.55 after; containers: elo-api-1, elo-b16b-api-1, elo-b16b-caddy-1, elo-b16b-postgres-1, elo-b16b-worker, elo-b66-testdb-postgres-1, elo-b73-api-1, elo-b73-caddy-1, elo-b73-postgres-1, elo-b73-testdb-postgres-1, elo-caddy-1, elo-postgres-1, elo-worker
The default views (ytd, all roots, py, the budget on)
| Query | State | Median s | Slowest s | Rows the budget counts |
|---|---|---|---|---|
meta.context | ok | 0.03 | 0.03 | – |
overview.cards | ok | 18.07 | 18.13 | 1,064,064 |
overview.months E01 | ok | 0.07 | 0.09 | – |
overview.months G01 | ok | 12.32 | 12.38 | 1,064,064 |
overview.mp_variance | ok | 5.85 | 5.87 | 1,064,064 |
development.series E01 | ok | 0.10 | 0.10 | – |
development.series G01 | ok | 12.27 | 12.32 | 1,064,064 |
consumption.weekday_hours | ok | 1.43 | 1.45 | 532,032 |
mp.master | ok | 0.01 | 0.01 | – |
mp.tree | ok | 0.00 | 0.01 | – |
mp.series | ok | 0.05 | 0.05 | – |
mp.emission_intervals | ok | 0.32 | 0.32 | – |
mp.changes | empty | 0.01 | 0.01 | – |
mp.ingestion | ok | 0.01 | 0.01 | – |
report.footprint | ok | 4.52 | 4.61 | 532,032 |
Every cell
| Query | Period | Selection | cmp | Budget | State | Requests | Median s | Slowest s | Rows |
|---|---|---|---|---|---|---|---|---|---|
meta.context | – | all | – | on | ok | 5 | 0.03 | 0.03 | – |
overview.cards | ytd | all | py | on | ok | 5 | 18.07 | 18.13 | 1,064,064 |
overview.months E01 | ytd | all | py | on | ok | 5 | 0.07 | 0.09 | – |
overview.months G01 | ytd | all | py | on | ok | 5 | 12.32 | 12.38 | 1,064,064 |
overview.mp_variance | ytd | all | py | on | ok | 5 | 5.85 | 5.87 | 1,064,064 |
development.series E01 | ytd | all | py | on | ok | 5 | 0.10 | 0.10 | – |
development.series G01 | ytd | all | py | on | ok | 5 | 12.27 | 12.32 | 1,064,064 |
consumption.weekday_hours | ytd | all | – | on | ok | 5 | 1.43 | 1.45 | 532,032 |
mp.master | – | one_root | – | on | ok | 5 | 0.01 | 0.01 | – |
mp.tree | – | one_root | – | on | ok | 5 | 0.00 | 0.01 | – |
mp.series | 30d | one_root | – | on | ok | 5 | 0.05 | 0.05 | – |
mp.emission_intervals | 30d | one_root | – | on | ok | 5 | 0.32 | 0.32 | – |
mp.changes | 30d | one_root | – | on | empty | 5 | 0.01 | 0.01 | – |
mp.ingestion | – | one_root | – | on | ok | 5 | 0.01 | 0.01 | – |
report.footprint | ytd | all | – | on | ok | 5 | 4.52 | 4.61 | 532,032 |
The daily run, make status, the loads
The daily run over 2026-11-09..2026-11-22: ts.apply_day results {'confirmed': 854}, ts.day_load {'updated': 854, 'inserted': 0, 'deleted': 0}, ts.reading_change {'updated': 0, 'inserted': 0, 'deleted': 0}, reading rows touched 0, 2.01 s (in one transaction, rolled back).
make status (the worker's program in a one-off container): 1.18 s, of which 0.34 s is the container's start; exit 3, 223 lines.
| Load | Roots | Series | Readings | Seconds | Readings/s |
|---|---|---|---|---|---|
| 2026-11-23T06:14:06Z | 50 | 61 | 4,942,896 | 74.6 | 66303 |
Sizes
| Relation | Kind | MiB | Rows (estimate) |
|---|---|---|---|
ts.reading | table | 320.7 | 4,945,094 |
ts.reading_pkey | index | 150.1 | |
fx.factor_hour | table | 37.5 | 315,504 |
ts.day_load | table | 19.3 | 133,635 |
fx.factor_hour_pkey | index | 9.5 | |
ts.day_load_pkey | index | 2.9 | |
ref.calendar_day | table | 0.7 | 9,497 |
ref.calendar_day_end_utc_key | index | 0.2 | |
ref.calendar_day_pkey | index | 0.2 | |
ref.calendar_day_start_utc_key | index | 0.2 | |
core.mp_version | table | 0.0 | 61 |
ref.code | table | 0.0 | 97 |
core.metering_point_gsrn_key | index | 0.0 | |
core.metering_point_parent | index | 0.0 | |
core.metering_point_pkey | index | 0.0 | |
core.metering_point_root | index | 0.0 | |
core.metering_point | table | 0.0 | 61 |
core.mp_geo_pkey | index | 0.0 | |
core.mp_version_current | index | 0.0 | |
core.mp_version_pkey | index | 0.0 | |
ingest.mp_state_pkey | index | 0.0 | |
ingest.pace_setting_pkey | index | 0.0 | |
ingest.pacer_pkey | index | 0.0 | |
ingest.source_account_pkey | index | 0.0 | |
ingest.source_account | table | 0.0 | 1 |
migration.alembic_version_pkc | index | 0.0 | |
ops.data_version_pkey | index | 0.0 | |
raw.fetch_pkey | index | 0.0 | |
raw.fetch_requested | index | 0.0 | |
raw.fetch | table | 0.0 | 1 |
ref.code_pkey | index | 0.0 | |
ref.grid_area_pkey | index | 0.0 | |
ref.grid_area | table | 0.0 | 45 |
ref.gwp_set_pkey | index | 0.0 | |
ref.gwp_set | table | 0.0 | 2 |
ref.method_code_key | index | 0.0 | |
ref.method_pkey | index | 0.0 | |
ref.method | table | 0.0 | 2 |
ref.mp_type_pkey | index | 0.0 | |
ref.mp_type | table | 0.0 | 23 |
ref.price_area_pkey | index | 0.0 | |
ref.price_area | table | 0.0 | 2 |
ts.series_mp_id_business_type_key | index | 0.0 | |
ts.series_pkey | index | 0.0 | |
ts.series | table | 0.0 | 61 |
core.mp_geo | table | 0.0 | 61 |
fx.factor_hour_history_pkey | index | 0.0 | |
fx.factor_hour_history | table | 0.0 | 0 |
ingest.analyze_owed_pkey | index | 0.0 | |
ingest.capture_held_back_pkey | index | 0.0 | |
ingest.capture_held_back | table | 0.0 | 0 |
ingest.capture_import_pkey | index | 0.0 | |
ingest.capture_import | table | 0.0 | 0 |
ingest.chunk_due | index | 0.0 | |
ingest.chunk_lineage | index | 0.0 | |
ingest.chunk_open_no_overlap | index | 0.0 | |
ingest.chunk_pkey | index | 0.0 | |
ingest.dataset_state_pkey | index | 0.0 | |
ingest.dataset_state | table | 0.0 | 0 |
ingest.mp_state | table | 0.0 | 50 |
ingest.pace_setting | table | 0.0 | 1 |
ingest.pacer | table | 0.0 | 1 |
ingest.unknown_field_pkey | index | 0.0 | |
ingest.unknown_field | table | 0.0 | 0 |
migration.alembic_version | table | 0.0 | 1 |
ops.data_version | table | 0.0 | 1 |
ops.job_one_queued | index | 0.0 | |
ops.job_pkey | index | 0.0 | |
ops.job_queue | index | 0.0 | |
ops.job_run_job_id_attempt_key | index | 0.0 | |
ops.job_run_pkey | index | 0.0 | |
ops.job_run | table | 0.0 | 0 |
ops.job | table | 0.0 | 0 |
raw.fetch_item_mp | index | 0.0 | |
raw.fetch_item_pkey | index | 0.0 | |
raw.fetch_item | table | 0.0 | 0 |
raw.payload_pkey | index | 0.0 | |
raw.payload | table | 0.0 | 0 |
ts.reading_change_interval | index | 0.0 | |
ts.reading_change_pkey | index | 0.0 |
All relations: 0.53 GiB.
Kilde: docs/adr/ADR-004/2026-11-23-8a5ed97-50-roots-defaults.md i løsningens
repository.