The benchmark harness measures Ninlil with ValKey, on one node and on two instances that share one database #95

Open
opened 2026-10-31 12:42:05 -04:00 by claude · 0 comments
Owner
  • Draft: PROC-16
  • Priority: medium (shows where ValKey helps and what it costs)
  • Agent: coder
  • Depends on: #94, #70 (the ValKey settings must exist; the S6 checks pass only once #71, #73 and #75 are merged)
  • Decisions: owner addition 2026-10-31 (Ninlil matrix)

Why

ValKey is never a source of truth and gives a single node nothing (#69), so single-node rows can only show its overhead. Its value is cross-instance: cache expiry (#71), shared rate limits (#73) and a shared forwarded-answer cache (#75). S6 measures those.

What changes

  • compose.yaml: a valkey service under its own profile, pinned by the same digest as #70's ValkeyHost (the one place bump-pins.sh updates), with its own cpuset and memory limit.
  • --config N-SQLite+V, N-PG+V, N-TS+V: as the base configuration plus the ValKey connection and every ValKey switch on (the variables #70 defines; read their names from ENVIRONMENT.md at the time). S1 to S5 as usual. The results file marks these rows "single node: overhead only expected".
  • S6 (N-PG and N-PG+V): two Ninlil containers (A and B) on one PostgreSQL database, each with its own cpuset; two dnsperf processes, one per instance, with the rate split evenly. Three checks:
    • S6a, shared forwarded answers: warm S2-style names on A only, then query them on B. Record the fake upstream's count during the B phase and B's p50/p99. With ValKey the count should fall close to zero (#75); without it, every name goes upstream again.
    • S6b, shared rate limit: Ninlil's limiter on for this check only, at a known per-client limit; one client address sends to A and B at 60 % of the limit each. Record the share of answers that were limited. With ValKey the total should be held near the limit (#73); without it, each node allows its own share.
    • S6c, change propagation: add a rewrite through A's API and poll B until it answers the new value; record the delay over 20 changes. With ValKey it should be well under a second (#71); without it, up to the 60 s TTL backstop (#50).
  • S6 has its own results section and table shape (a metric per check, not the S1 to S5 rate steps).

Acceptance

  • ./run.sh ninlil --config N-PG+V S1 (Small run) passes the reply checks with the ValKey container in the results file.
  • ./run.sh ninlil --config N-PG S6 and --config N-PG+V S6 run all three checks and write their metrics. Until #71, #73 and #75 are merged the "+V" checks may show no difference; the issue records which INT issues were in the image used.
  • Lint passes; docker compose config validates with the valkey profile.

Source

  • Owner addition 2026-10-31 ("ValKey gives nothing on one node, so the ValKey rows need a scenario where it can matter").
  • INT.md #69 to #75; #50; DEDUPE.md I3.
- **Draft:** PROC-16 - **Priority:** medium (shows where ValKey helps and what it costs) - **Agent:** coder - **Depends on:** #94, #70 (the ValKey settings must exist; the S6 checks pass only once #71, #73 and #75 are merged) - **Decisions:** owner addition 2026-10-31 (Ninlil matrix) ### Why ValKey is never a source of truth and gives a single node nothing (#69), so single-node rows can only show its overhead. Its value is cross-instance: cache expiry (#71), shared rate limits (#73) and a shared forwarded-answer cache (#75). S6 measures those. ### What changes - `compose.yaml`: a `valkey` service under its own profile, pinned by the same digest as #70's `ValkeyHost` (the one place `bump-pins.sh` updates), with its own cpuset and memory limit. - `--config N-SQLite+V`, `N-PG+V`, `N-TS+V`: as the base configuration plus the ValKey connection and every ValKey switch on (the variables #70 defines; read their names from ENVIRONMENT.md at the time). S1 to S5 as usual. The results file marks these rows "single node: overhead only expected". - S6 (N-PG and N-PG+V): two Ninlil containers (A and B) on one PostgreSQL database, each with its own cpuset; two `dnsperf` processes, one per instance, with the rate split evenly. Three checks: - S6a, shared forwarded answers: warm S2-style names on A only, then query them on B. Record the fake upstream's count during the B phase and B's p50/p99. With ValKey the count should fall close to zero (#75); without it, every name goes upstream again. - S6b, shared rate limit: Ninlil's limiter on for this check only, at a known per-client limit; one client address sends to A and B at 60 % of the limit each. Record the share of answers that were limited. With ValKey the total should be held near the limit (#73); without it, each node allows its own share. - S6c, change propagation: add a rewrite through A's API and poll B until it answers the new value; record the delay over 20 changes. With ValKey it should be well under a second (#71); without it, up to the 60 s TTL backstop (#50). - S6 has its own results section and table shape (a metric per check, not the S1 to S5 rate steps). ### Acceptance - [ ] `./run.sh ninlil --config N-PG+V S1` (Small run) passes the reply checks with the ValKey container in the results file. - [ ] `./run.sh ninlil --config N-PG S6` and `--config N-PG+V S6` run all three checks and write their metrics. Until #71, #73 and #75 are merged the "+V" checks may show no difference; the issue records which INT issues were in the image used. - [ ] Lint passes; `docker compose config` validates with the `valkey` profile. ### Source - Owner addition 2026-10-31 ("ValKey gives nothing on one node, so the ValKey rows need a scenario where it can matter"). - INT.md #69 to #75; #50; DEDUPE.md I3.
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#95
No description provided.