The benchmark harness runs Ninlil on PostgreSQL and on the TimescaleDB image as well as SQLite #94

Open
opened 2026-10-31 12:42:05 -04:00 by claude · 0 comments
Owner
  • Draft: PROC-15
  • Priority: medium (the owner wants the storage engines in the table)
  • Agent: coder
  • Depends on: #92
  • Decisions: owner addition 2026-10-31 (Ninlil matrix)

Why

With query logging at its default, every query writes to the database, so the engine shows in Ninlil's numbers. The owner asked for PostgreSQL and TimescaleDB rows next to SQLite.

What changes

  • compose.yaml: a postgres service and a timescaledb service, each under its own compose profile, pinned by digest. Reuse the PostgreSQL image digest that src/dotnet/tests/Ninlil.Dns.Data.EngineHosts pins, so one bump updates both; check whether .forgejo/scripts/bump-pins.sh covers the new compose file and add it if not. Each database gets its own cpuset and memory limit.
  • run.sh --config N-PG and --config N-TS: start the database, wait for it, start Ninlil with NINLIL_STORAGE_ENGINE=PostgreSql and NINLIL_STORAGE_CONNECTION_STRING pointing at it (the migrator creates the schema on first start), then the same configure and scenarios. Each run starts from an empty database.
  • N-TS: if the PQ area has added an opt-in query-log hypertable setting by then, configure.sh turns it on and the results file records the setting; otherwise the results file records that none exists.
  • Results files carry the database container's cpuset, memory limit, image digest and peak RSS.

Acceptance

  • ./run.sh ninlil --config N-PG S1 S3 and --config N-TS S1 S3 (Small run) pass the reply checks and write results files that name the engine.
  • The query log of the measured Ninlil holds rows after the run (proving logging went to the database).
  • Lint passes; docker compose config validates with each profile.

Source

  • Owner addition 2026-10-31; PQ.md Q-PQ-3 (TimescaleDB "decide after benchmarks").
- **Draft:** PROC-15 - **Priority:** medium (the owner wants the storage engines in the table) - **Agent:** coder - **Depends on:** #92 - **Decisions:** owner addition 2026-10-31 (Ninlil matrix) ### Why With query logging at its default, every query writes to the database, so the engine shows in Ninlil's numbers. The owner asked for PostgreSQL and TimescaleDB rows next to SQLite. ### What changes - `compose.yaml`: a `postgres` service and a `timescaledb` service, each under its own compose profile, pinned by digest. Reuse the PostgreSQL image digest that `src/dotnet/tests/Ninlil.Dns.Data.EngineHosts` pins, so one bump updates both; check whether `.forgejo/scripts/bump-pins.sh` covers the new compose file and add it if not. Each database gets its own cpuset and memory limit. - `run.sh --config N-PG` and `--config N-TS`: start the database, wait for it, start Ninlil with `NINLIL_STORAGE_ENGINE=PostgreSql` and `NINLIL_STORAGE_CONNECTION_STRING` pointing at it (the migrator creates the schema on first start), then the same configure and scenarios. Each run starts from an empty database. - N-TS: if the PQ area has added an opt-in query-log hypertable setting by then, `configure.sh` turns it on and the results file records the setting; otherwise the results file records that none exists. - Results files carry the database container's cpuset, memory limit, image digest and peak RSS. ### Acceptance - [ ] `./run.sh ninlil --config N-PG S1 S3` and `--config N-TS S1 S3` (Small run) pass the reply checks and write results files that name the engine. - [ ] The query log of the measured Ninlil holds rows after the run (proving logging went to the database). - [ ] Lint passes; `docker compose config` validates with each profile. ### Source - Owner addition 2026-10-31; PQ.md Q-PQ-3 (TimescaleDB "decide after benchmarks").
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#94
No description provided.