The benchmark program can run its fake upstream DNS server on its own, answering A queries for any name on a chosen address and port #91
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
lantea-one/ninlil#91
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
FakeUpstreamDnsServerexists but only inside the in-process benchmarks:127.0.0.1on an OS-assigned port (src/dotnet/benchmarks/Ninlil.Benchmarks/Pipeline/FakeUpstreamDnsServer.cs:45-47);:103-121).A forwarder that asks for AAAA, DS or DNSKEY would get a wrongly typed record. RFC 1035 §4.1 and RFC 2308 §2.2 call for a NODATA answer there.
What changes
FakeUpstreamDnsServer.cs:IPEndPoint; the default constructor keeps today's loopback, port 0 behaviour, so the Pipeline and Transport benchmarks do not change;Aqueries with the A record, and answer every other type with NOERROR, no answer and the question echoed;src/dotnet/benchmarks/Ninlil.Benchmarks/Program.cs: before option parsing (next to the child-process check atProgram.cs:78), the first argumentfake-upstreamruns the server with--listen <address:port>(default0.0.0.0:53) and--delay-ms <n>(default 0). It prints the bound endpoint and the received count every 10 seconds, and stops on Ctrl+C or SIGTERM. Update the class summary's option list (Program.cs:15-60).src/script/benchmark/alternatives/fake-upstream.Dockerfile(new): builds the benchmark project in Release with the SDK image digest the repository already pins, and runsfake-upstream.Acceptance
src/dotnet/tests/Ninlil.Benchmarks.Tests, or ask the dispatcher if a new test project is not wanted.dotnet run -c Release --project src/dotnet/benchmarks/Ninlil.Benchmarks -- fake-upstream --listen 127.0.0.1:15399answersdig @127.0.0.1 -p 15399 x.miss.bench.test A.--filter '*PipelineLatency*' --engines Sqlite --scale Smallstill passes its setup checks.fake-upstream.Source
project_alternatives_benchmarks.md("one shared local fake upstream"). FakeUpstreamDnsServer.cs:10-18, 103-121.