Repository navigation
perf(dogstatsd,metric-plan): push whole-program blocklist drop predicate into DogStatsD ingress - #3440
perf(dogstatsd,metric-plan): push whole-program blocklist drop predicate into DogStatsD ingress#3440lukesteensen wants to merge 1 commit into
Conversation
Binary Size Analysis (Agent Data Plane)Baseline: 5735e83 · Comparison: 24944a5 · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
b42546b to
a6ee440
Compare
5a5bd56 to
c0e3937
Compare
a6ee440 to
a38d3c9
Compare
c0e3937 to
d5e920d
Compare
a38d3c9 to
cdb3820
Compare
d5e920d to
900de1a
Compare
cdb3820 to
ce306ec
Compare
900de1a to
ebda282
Compare
992d66a to
838c6b1
Compare
ebda282 to
8689afe
Compare
838c6b1 to
574a5f8
Compare
8689afe to
05d7456
Compare
574a5f8 to
5928cbb
Compare
05d7456 to
29dfd0b
Compare
…ate into DogStatsD ingress
29dfd0b to
24944a5
Compare
5928cbb to
f33fea3
Compare
Stacks on #3424 to demonstrate a whole-program optimization enabled directly by
MetricPlanthat is difficult to express across isolatedTransformtasks.What it does
DogStatsDIngressPushdown(lib/saluki-metric-plan/src/pushdown.rs): walks the dominating linear prefix of thedogstatsdstream inValidatedPlanand extracts the compiledOp::PrefixFilterblocklist + namespace prefix/exclusion list.Op::Map(non-empty mapper profiles) or fan-outOp::Teesits upstream, preserving semantics unconditionally.Blocklist::has_descendant_exception).DogStatsDIngressPushdownHandle(ArcSwap+ atomic drop counter) wired intoDogStatsDConfigurationin programmable mode only (alwaysNonein native mode).DogStatsDDecoderbeforeWellKnownTags, origin resolution,StringInterner,ContextResolver, and channel dispatch.ArcSwapon live plan reloads inMetricRegion, and drains pushed-down drop counts intodogstatsd_listener_filtered_points_totalon every flush tick (including when 100% of packets drop before reachingMetricRegion).Verification
saluki-metric-plan::pushdown(2/2) +saluki-components::sources::dogstatsd::tests::decoder::ingress_pushdown_drops_blocked_metrics_before_context_resolution.DD_EXPERIMENTAL_PROGRAMMABLE_METRICS_ENABLED=true): 6/6 passed (dsd-tag-filterlist,dsd-metric-filterlist-prefix,dsd-mapper-blocklist,dsd-timestamp-extension,dsd-origin-detection,dsd-added-tags).Local A/B Benchmark (Native vs. Programmable + Pushdown, same release image)
blocklist 60% drop 100 MiB/s, 78k ctx@4.0CPU0.694 → 0.500(-28.0%)202.5 → 70.7(-65.1%)268.0 → 153.8(-42.6%)blocklist 100% drop 100 MiB/s, 78k ctx@4.0CPU0.652 → 0.428(-34.4%)195.5 → 31.7(-83.8%)262.9 → 31.7(-88.0%)tagfilter 1k rules 100 MiB/s, 78k ctx@4.0CPU (no regression)0.760 → 0.742(-2.4%)274.7 → 259.8(-5.4%)318.5 → 320.8(+0.7%)(Empirical note: we also prototyped and measured raw per-packet tag-filter pushdown before
ContextResolver. Ontagfilter_1000metrics_100mb[54 tags/msg], evaluatingHashSetrules on all 54 raw tags per packet bypassedContextResolver's O(1) cache hit and regressed CPU by+10%..+19%and RSS by+20%[duplicated rule tables + splitting gauge/counter context keys]. Keeping tag filtering behindTagFilterKernel's boundedcontext_cacheinsideFusedMetricEnginein #3424 while pushing down O(1) early blocklist drops here delivers wins across both.)Stack
main)saluki-transform-kernels#3427 — Phase 1 pure metric kernels (base:main)programmable-phase1-metric-kernels)programmable-exploration)