Dokumentation · Arkitektur og beslutninger
The measurement at 80 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: 95 metering points, 95 series, 7,519,512 readings, 208,145 day rows, 315,504 factor rows; frontier 2026-11-22. Matrix defaults; the run took 615 s; cells not reached: 0.
What else ran on the VM (4 CPUs): load average 2.42 2.33 2.54 before, 2.69 2.68 2.61 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.04 | 0.04 | – |
overview.cards | ok | 29.84 | 29.91 | 1,674,336 |
overview.months E01 | ok | 0.12 | 0.13 | – |
overview.months G01 | ok | 21.11 | 21.21 | 1,674,336 |
overview.mp_variance | ok | 19.49 | 19.60 | 1,674,336 |
development.series E01 | ok | 0.15 | 0.15 | – |
development.series G01 | ok | 20.99 | 22.03 | 1,674,336 |
consumption.weekday_hours | ok | 2.41 | 2.57 | 837,168 |
mp.master | ok | 0.01 | 0.01 | – |
mp.tree | ok | 0.00 | 0.00 | – |
mp.series | ok | 0.05 | 0.06 | – |
mp.emission_intervals | ok | 0.35 | 0.38 | – |
mp.changes | empty | 0.01 | 0.01 | – |
mp.ingestion | ok | 0.01 | 0.01 | – |
report.footprint | ok | 7.69 | 7.93 | 837,168 |
Every cell
| Query | Period | Selection | cmp | Budget | State | Requests | Median s | Slowest s | Rows |
|---|---|---|---|---|---|---|---|---|---|
meta.context | – | all | – | on | ok | 5 | 0.04 | 0.04 | – |
overview.cards | ytd | all | py | on | ok | 5 | 29.84 | 29.91 | 1,674,336 |
overview.months E01 | ytd | all | py | on | ok | 5 | 0.12 | 0.13 | – |
overview.months G01 | ytd | all | py | on | ok | 5 | 21.11 | 21.21 | 1,674,336 |
overview.mp_variance | ytd | all | py | on | ok | 5 | 19.49 | 19.60 | 1,674,336 |
development.series E01 | ytd | all | py | on | ok | 5 | 0.15 | 0.15 | – |
development.series G01 | ytd | all | py | on | ok | 5 | 20.99 | 22.03 | 1,674,336 |
consumption.weekday_hours | ytd | all | – | on | ok | 5 | 2.41 | 2.57 | 837,168 |
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.05 | 0.06 | – |
mp.emission_intervals | 30d | one_root | – | on | ok | 5 | 0.35 | 0.38 | – |
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 | 7.69 | 7.93 | 837,168 |
The daily run, make status, the loads
The daily run over 2026-11-09..2026-11-22: ts.apply_day results {'confirmed': 1330}, ts.day_load {'updated': 1330, 'inserted': 0, 'deleted': 0}, ts.reading_change {'updated': 0, 'inserted': 0, 'deleted': 0}, reading rows touched 0, 2.41 s (in one transaction, rolled back).
make status (the worker's program in a one-off container): 1.47 s, of which 0.38 s is the container's start; exit 3, 325 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 |
Sizes
| Relation | Kind | MiB | Rows (estimate) |
|---|---|---|---|
ts.reading | table | 487.1 | 7,511,992 |
ts.reading_pkey | index | 228.1 | |
fx.factor_hour | table | 37.5 | 315,504 |
ts.day_load | table | 30.0 | 206,538 |
fx.factor_hour_pkey | index | 9.5 | |
ts.day_load_pkey | index | 4.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 | 95 |
core.metering_point | table | 0.0 | 95 |
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.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 | 2 |
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 | 95 |
core.mp_geo | table | 0.0 | 95 |
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 | 80 |
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.78 GiB.
Kilde: docs/adr/ADR-004/2026-11-23-8a5ed97-80-roots-defaults.md i løsningens
repository.