Skip to content

chore(runtime): run storage baseline benchmark & freeze #351 acceptance thresholds #390

Description

@AlexStocks

Summary

#350(建立 storage 执行链路性能与背压基线)于 2026-07-28 被关闭,但其声明的核心交付物——#351 验收冻结的基线阈值——从未真正产出。根据 PR #378 自身写明的交付边界(Delivery boundary),完整 baseline 结果与冻结阈值是 follow-up PR 的工作,且 #378 明确 "This PR does not close #350"、#350 为"三 PR 交付"。该第三个 PR 至今未建,#350 被提前手动关闭。

本 issue 补齐这个缺失的第三个 PR:

  1. 使用 runtime-baseline harness(feature runtime-baseline,由 feat(runtime): add storage baseline harness foundations #378 引入)跑通 perf(runtime): 建立 storage 执行链路性能与背压基线 #350 要求的全部场景;
  2. 抓取每个场景的 QPS / P99 延迟 / 错误率 / 最大 pending
  3. 将阈值冻结为代码常量(例如落在 src/common/runtime/baseline.rs 或独立的 thresholds 模块)与/或一份受版本控制的报告,让 refactor(runtime): 使用有界 RocksDB executor 替代未受控的 storage task 调度 #351 的验收标准("满足基线 Issue 冻结的阈值")有可对照锚点。

Scenarios(来自 #350

  • 多并发连接(multiple concurrent connections)
  • pipeline / batching 开关对比(batching on/off)
  • 队列满 / 背压(参考 additional_unit_tests.rsthreshold_percent 80/90)
  • 慢存储后端(slow storage backend)
  • snapshot pause / drain
  • graceful shutdown drain

Acceptance

Links

Non-goals

  • 不改变 RocksDB 数据语义
  • 不重加自适应伸缩框架
  • 不依赖大量 mock 替代真实行为

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions