Ninlil publishes a reproducible black-box DNS benchmark next to three alternative servers, with Ninlil measured in several storage and ValKey configurations #90

Open
opened 2026-10-31 12:42:04 -04:00 by claude · 0 comments
Owner
  • Draft: PROC-8
  • Priority: medium (owner: the harness alongside ValKey, the measured run after it)
  • Agent: none (epic)
  • Depends on: #2
  • Decisions: Q-PROC-7, Q-PROC-8, Q-PROC-9, Q-PROC-10, Q-PROC-11, Q-PROC-12, R2-BENCH, owner addition 2026-10-31 (Ninlil matrix)

Why

The owner (2026-10-29, framing 2026-10-30) wants a public, reproducible comparison in the main README:

  • one results table;
  • one row per alternative saying where it does better than Ninlil, plus Ninlil rows saying where Ninlil fits;
  • neutral wording, no superlatives, and Ninlil's slower results stated too.

The other servers are black boxes: their released images, DNS queries only. Never read their source or copy their docs' wording or performance claims. Call them "alternatives", never "competitors"; the benchmark issues keep "the alternatives" wording (R2-BENCH).

The owner added on 2026-10-31 that Ninlil is measured with and without PostgreSQL or TimescaleDB, and with and without ValKey. The alternatives keep one default configuration each.

What changes

Children:

  • #91: a standalone fake upstream.
  • #92: the harness with the Ninlil target (SQLite).
  • #93: the three alternative targets.
  • #94: the Ninlil storage matrix (PostgreSQL and the TimescaleDB image).
  • #95: the ValKey rows and the two-instance scenario S6.
  • #96: the method document.
  • #97: the measured run with the owner.
  • #98: the README section.

Timing (Q-PROC-12): #91, 10, 11, 15, 16 and 12 are built alongside the ValKey milestone. #97 and #98 wait until the ValKey epic (#69) is closed, so the published numbers include it.

Design:

  • Topology. One Docker bridge network (ninlil-bench) with fixed container addresses. One DNS server under test runs at a time (S6 runs two Ninlil instances), so every server can use port 53 without clashing with a DNS server on the host. The fake upstream (#91), a static HTTP server for the block list and, per configuration, PostgreSQL, TimescaleDB and ValKey share the network. Every server's CPUs and memory are limited by --cpuset-cpus and --memory; the load generator gets different cores (Q-PROC-11). A database or ValKey container gets cores of its own, recorded per row, so the README can show the total cores each configuration used.

  • Ninlil configurations:

    Id Storage ValKey
    N-SQLite SQLite (default) off
    N-SQLite+V SQLite on
    N-PG PostgreSQL off
    N-PG+V PostgreSQL on
    N-TS PostgreSQL engine on the TimescaleDB image off
    N-TS+V as N-TS on

    If the PQ area's TimescaleDB decision (Q-PQ-3, decided after its benchmarks) has added an opt-in query-log hypertable by the run, N-TS turns it on; otherwise N-TS is expected to match N-PG and is still measured as the baseline for that decision.

  • Scenarios (Q-PROC-7, S1 to S5 for every server and configuration):

    • S1, cache hit: 1,000 names, warmed, then UDP load.
    • S2, forwarded miss: a unique name per query under miss.bench.test, answered by the fake upstream.
    • S3, blocked name: equal-sized block lists (100,000 synthetic names under block.bench.test, served from the local HTTP server in each server's accepted format), queries for listed names.
    • S4, TCP: S1 over TCP with several queries per connection.
    • S5, DNS-over-TLS: S1 over DoT where the server supports it; otherwise "not supported", with no number.
    • S6, two Ninlil instances on one PostgreSQL database (N-PG and N-PG+V only; #95). ValKey does nothing for one node (#69), so the single-node "+V" rows are expected to show its overhead only, and S6 is where it can matter. S6 is Ninlil-only and reported in its own table.

    Names use .test (RFC 6761 §6.2).

  • Metrics per scenario (S1 to S5):

    • highest query rate with at most 1 % lost or late answers (rate steps);
    • latency p50 and p99 at a fixed rate every server sustains;
    • peak RSS of the server container, and of its database and ValKey containers (docker stats).
  • Rules:

    • five runs per scenario; report the median and the spread;
    • record versions, image digests, the CPU model, kernel, cpusets and every command in a results file;
    • DNSSEC validation off on every server (the fake upstream is unsigned);
    • defaults otherwise, with rate limiting off (Q-PROC-9); query logging stays at each server's default, which is why the storage engine shows in Ninlil's numbers. S6's rate-limit check turns Ninlil's limiter on for that check only.

Acceptance

  • #91 to #95 are closed.
  • Anyone with Docker can rerun the harness from the method document and get the same table shape.

Source

  • Memory project_alternatives_benchmarks.md (owner 2026-10-29 and 2026-10-30). First release plan 2026-10-09 (ValKey first).
  • Owner decision 2026-10-31 (Q-PROC-12): "harness now (alongside ValKey), measured run later".
  • Owner addition 2026-10-31: "the alternatives benchmark must also run Ninlil with and without PostgreSQL/TimescaleDB and with and without ValKey".
  • Owner decision 2026-10-31, round 2 (R2-BENCH): benchmark issues keep "the alternatives" wording.
- **Draft:** PROC-8 - **Priority:** medium (owner: the harness alongside ValKey, the measured run after it) - **Agent:** none (epic) - **Depends on:** #2 - **Decisions:** Q-PROC-7, Q-PROC-8, Q-PROC-9, Q-PROC-10, Q-PROC-11, Q-PROC-12, R2-BENCH, owner addition 2026-10-31 (Ninlil matrix) ### Why The owner (2026-10-29, framing 2026-10-30) wants a public, reproducible comparison in the main README: - one results table; - one row per alternative saying where it does better than Ninlil, plus Ninlil rows saying where Ninlil fits; - neutral wording, no superlatives, and Ninlil's slower results stated too. The other servers are black boxes: their released images, DNS queries only. Never read their source or copy their docs' wording or performance claims. Call them "alternatives", never "competitors"; the benchmark issues keep "the alternatives" wording (R2-BENCH). The owner added on 2026-10-31 that Ninlil is measured with and without PostgreSQL or TimescaleDB, and with and without ValKey. The alternatives keep one default configuration each. ### What changes Children: - #91: a standalone fake upstream. - #92: the harness with the Ninlil target (SQLite). - #93: the three alternative targets. - #94: the Ninlil storage matrix (PostgreSQL and the TimescaleDB image). - #95: the ValKey rows and the two-instance scenario S6. - #96: the method document. - #97: the measured run with the owner. - #98: the README section. Timing (Q-PROC-12): #91, 10, 11, 15, 16 and 12 are built alongside the ValKey milestone. #97 and #98 wait until the ValKey epic (#69) is closed, so the published numbers include it. Design: - **Topology.** One Docker bridge network (`ninlil-bench`) with fixed container addresses. One DNS server under test runs at a time (S6 runs two Ninlil instances), so every server can use port 53 without clashing with a DNS server on the host. The fake upstream (#91), a static HTTP server for the block list and, per configuration, PostgreSQL, TimescaleDB and ValKey share the network. Every server's CPUs and memory are limited by `--cpuset-cpus` and `--memory`; the load generator gets different cores (Q-PROC-11). A database or ValKey container gets cores of its own, recorded per row, so the README can show the total cores each configuration used. - **Ninlil configurations:** | Id | Storage | ValKey | |---|---|---| | N-SQLite | SQLite (default) | off | | N-SQLite+V | SQLite | on | | N-PG | PostgreSQL | off | | N-PG+V | PostgreSQL | on | | N-TS | PostgreSQL engine on the TimescaleDB image | off | | N-TS+V | as N-TS | on | If the PQ area's TimescaleDB decision (Q-PQ-3, decided after its benchmarks) has added an opt-in query-log hypertable by the run, N-TS turns it on; otherwise N-TS is expected to match N-PG and is still measured as the baseline for that decision. - **Scenarios** (Q-PROC-7, S1 to S5 for every server and configuration): - S1, cache hit: 1,000 names, warmed, then UDP load. - S2, forwarded miss: a unique name per query under `miss.bench.test`, answered by the fake upstream. - S3, blocked name: equal-sized block lists (100,000 synthetic names under `block.bench.test`, served from the local HTTP server in each server's accepted format), queries for listed names. - S4, TCP: S1 over TCP with several queries per connection. - S5, DNS-over-TLS: S1 over DoT where the server supports it; otherwise "not supported", with no number. - S6, two Ninlil instances on one PostgreSQL database (N-PG and N-PG+V only; #95). ValKey does nothing for one node (#69), so the single-node "+V" rows are expected to show its overhead only, and S6 is where it can matter. S6 is Ninlil-only and reported in its own table. Names use `.test` (RFC 6761 §6.2). - **Metrics per scenario (S1 to S5):** - highest query rate with at most 1 % lost or late answers (rate steps); - latency p50 and p99 at a fixed rate every server sustains; - peak RSS of the server container, and of its database and ValKey containers (`docker stats`). - **Rules:** - five runs per scenario; report the median and the spread; - record versions, image digests, the CPU model, kernel, cpusets and every command in a results file; - DNSSEC validation off on every server (the fake upstream is unsigned); - defaults otherwise, with rate limiting off (Q-PROC-9); query logging stays at each server's default, which is why the storage engine shows in Ninlil's numbers. S6's rate-limit check turns Ninlil's limiter on for that check only. ### Acceptance - [ ] #91 to #95 are closed. - [ ] Anyone with Docker can rerun the harness from the method document and get the same table shape. ### Source - Memory `project_alternatives_benchmarks.md` (owner 2026-10-29 and 2026-10-30). First release plan 2026-10-09 (ValKey first). - Owner decision 2026-10-31 (Q-PROC-12): "harness now (alongside ValKey), measured run later". - Owner addition 2026-10-31: "the alternatives benchmark must also run Ninlil with and without PostgreSQL/TimescaleDB and with and without ValKey". - Owner decision 2026-10-31, round 2 (R2-BENCH): benchmark issues keep "the alternatives" wording.
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#90
No description provided.