Dokumentation · Arkitektur og beslutninger
The measurement at 420 roots: 2026-11-23, commit 5b42ee5
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: 500 metering points, 500 series, 42,067,200 readings, 1,095,500 day rows, 315,504 factor rows; frontier 2026-11-22. Matrix defaults; the run took 40 s; cells not reached: 0.
What else ran on the VM (4 CPUs): load average 0.44 1.03 1.25 before, 0.95 1.10 1.27 after; containers: elo-api-1, elo-b16b-api-1, elo-b16b-caddy-1, elo-b16b-postgres-1, elo-b16b-worker, 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.10 | 0.11 | – |
overview.cards | too_large_for_grain | 0.16 | 0.16 | 9,388,800 |
overview.months E01 | ok | 0.59 | 0.60 | – |
overview.months E03 | ok | 0.19 | 0.19 | – |
overview.months ENET | ok | 1.06 | 1.07 | – |
overview.months G01 | too_large_for_grain | 0.15 | 0.17 | 9,388,800 |
overview.mp_variance | too_large_for_grain | 0.16 | 0.16 | 9,388,800 |
development.series E01 | ok | 0.64 | 0.65 | – |
development.series E03 | ok | 0.21 | 0.22 | – |
development.series ENET | ok | 1.09 | 1.11 | – |
development.series G01 | too_large_for_grain | 0.16 | 0.16 | 9,388,800 |
consumption.weekday_hours | too_large_for_grain | 0.04 | 0.04 | 4,694,400 |
mp.master | ok | 0.01 | 0.01 | – |
mp.tree | ok | 0.00 | 0.00 | – |
mp.series | ok | 0.15 | 0.20 | – |
mp.emission_intervals | ok | 0.49 | 0.50 | – |
mp.changes | empty | 0.00 | 0.01 | – |
mp.ingestion | ok | 0.00 | 0.01 | – |
report.footprint | too_large_for_grain | 0.04 | 0.04 | 4,694,400 |
Every cell
| Query | Period | Selection | cmp | Budget | State | Requests | Median s | Slowest s | Rows |
|---|---|---|---|---|---|---|---|---|---|
meta.context | – | all | – | on | ok | 5 | 0.10 | 0.11 | – |
overview.cards | ytd | all | py | on | too_large_for_grain | 5 | 0.16 | 0.16 | 9,388,800 |
overview.months E01 | ytd | all | py | on | ok | 5 | 0.59 | 0.60 | – |
overview.months E03 | ytd | all | py | on | ok | 5 | 0.19 | 0.19 | – |
overview.months ENET | ytd | all | py | on | ok | 5 | 1.06 | 1.07 | – |
overview.months G01 | ytd | all | py | on | too_large_for_grain | 5 | 0.15 | 0.17 | 9,388,800 |
overview.mp_variance | ytd | all | py | on | too_large_for_grain | 5 | 0.16 | 0.16 | 9,388,800 |
development.series E01 | ytd | all | py | on | ok | 5 | 0.64 | 0.65 | – |
development.series E03 | ytd | all | py | on | ok | 5 | 0.21 | 0.22 | – |
development.series ENET | ytd | all | py | on | ok | 5 | 1.09 | 1.11 | – |
development.series G01 | ytd | all | py | on | too_large_for_grain | 5 | 0.16 | 0.16 | 9,388,800 |
consumption.weekday_hours | ytd | all | – | on | too_large_for_grain | 5 | 0.04 | 0.04 | 4,694,400 |
mp.master | – | one_root | – | on | ok | 5 | 0.01 | 0.01 | – |
mp.tree | – | one_root | – | on | ok | 5 | 0.00 | 0.00 | – |
mp.series | 30d | one_root | – | on | ok | 5 | 0.15 | 0.20 | – |
mp.emission_intervals | 30d | one_root | – | on | ok | 5 | 0.49 | 0.50 | – |
mp.changes | 30d | one_root | – | on | empty | 5 | 0.00 | 0.01 | – |
mp.ingestion | – | one_root | – | on | ok | 5 | 0.00 | 0.01 | – |
report.footprint | ytd | all | – | on | too_large_for_grain | 5 | 0.04 | 0.04 | 4,694,400 |
overview.cards | ytd | price_area | py | on | too_large_for_grain | 1 | 0.11 | 0.11 | 6,259,200 |
overview.months E01 | ytd | price_area | py | on | ok | 1 | 0.46 | 0.46 | – |
overview.months E03 | ytd | price_area | py | on | ok | 1 | 0.19 | 0.19 | – |
overview.months ENET | ytd | price_area | py | on | ok | 1 | 0.88 | 0.88 | – |
overview.months G01 | ytd | price_area | py | on | too_large_for_grain | 1 | 0.11 | 0.11 | 6,259,200 |
overview.mp_variance | ytd | price_area | py | on | too_large_for_grain | 1 | 0.10 | 0.10 | 6,259,200 |
development.series E01 | ytd | price_area | py | on | ok | 1 | 0.48 | 0.48 | – |
development.series E03 | ytd | price_area | py | on | ok | 1 | 0.21 | 0.21 | – |
development.series ENET | ytd | price_area | py | on | ok | 1 | 0.93 | 0.93 | – |
development.series G01 | ytd | price_area | py | on | too_large_for_grain | 1 | 0.35 | 0.35 | 6,259,200 |
consumption.weekday_hours | ytd | price_area | – | on | too_large_for_grain | 1 | 0.31 | 0.31 | 3,129,600 |
The daily run, make status, the loads
The daily run over 2026-11-09..2026-11-22: ts.apply_day results {'confirmed': 7000}, ts.day_load {'updated': 7000, 'inserted': 0, 'deleted': 0}, ts.reading_change {'updated': 0, 'inserted': 0, 'deleted': 0}, reading rows touched 0, 4.06 s (in one transaction, rolled back).
make status (the worker's program in a one-off container): 2.57 s, of which 0.34 s is the container's start; exit 3, 1540 lines.
| Load | Roots | Series | Readings | Seconds | Readings/s |
|---|---|---|---|---|---|
| 2026-11-23T06:14:06Z | 50 | 61 | 4,942,896 | 74.6 | 66303 |
| 2026-11-23T07:09:51Z | 80 | 34 | 2,576,616 | 33.9 | 76107 |
| 2026-11-23T07:21:59Z | 150 | 86 | 7,677,264 | 109.8 | 69913 |
| 2026-11-23T07:46:57Z | 420 | 319 | 26,870,424 | 419.6 | 64034 |
Sizes
| Relation | Kind | MiB | Rows (estimate) |
|---|---|---|---|
ts.reading | table | 2,713.1 | 42,066,964 |
ts.reading_pkey | index | 1,266.8 | |
ts.day_load | table | 157.6 | 1,095,500 |
fx.factor_hour | table | 37.5 | 315,504 |
ts.day_load_pkey | index | 23.5 | |
fx.factor_hour_pkey | index | 9.5 | |
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.1 | 500 |
core.metering_point | table | 0.1 | 500 |
ts.series | table | 0.1 | 500 |
core.mp_geo | table | 0.1 | 500 |
ingest.mp_state | table | 0.1 | 420 |
ref.code | table | 0.0 | 97 |
core.metering_point_gsrn_key | index | 0.0 | |
core.metering_point_pkey | index | 0.0 | |
core.metering_point_root | index | 0.0 | |
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 | |
ts.series_mp_id_business_type_key | index | 0.0 | |
ts.series_pkey | index | 0.0 | |
core.metering_point_parent | 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 | 4 |
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 |
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.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: 4.11 GiB.
Kilde: docs/adr/ADR-004/2026-11-23-5b42ee5-420-roots-defaults.md i løsningens
repository.