Open
引入 URMA 统一资源框架,接入社区独占实现并支持共享资源池与有序收发 #41
CarbonadoRainAdd on 2 days ago
引入 URMA 统一资源框架,接入社区独占实现并支持共享资源池与有序收发 #41
Open
Merge blocked
2 days ago Created pull request, commit 7082ff97
2 days ago Associated issue: UrmaTransport 池化演进:共享 JFR/JFS 资源池、大包单边路径与万级连接扩展
atomgit-bot
2 days ago Comments:
2 days ago Comments:
atomgit-bot
2 days ago Comments:
2 days ago Comments:
BBoostKit-bot
2 days ago Set huang-xiaoquan,lauyarn,weihongye,Sirus_L,fan-zhenhao,wd-gitcode,seekdwh as approver
2 days ago Set huang-xiaoquan,lauyarn,weihongye,Sirus_L,fan-zhenhao,wd-gitcode,seekdwh as approver
2 days ago Added label: sig/BoostCore
BoostKit-bot
2 days ago Comments:
2 days ago Comments:
欢迎来到 BoostKit 社区
Hey @CarbonadoRain , 感谢你对社区的贡献.
机器人使用手册
有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。您可以自助配置此仓库的 PR 合并规则,更多详情,请参阅此处。
联系指引
有疑问可以联系 SIG: BoostCore ,
维护者是: @Sirus_L, @fan-zhenhao, @huang-xiaoquan, @lauyarn, @seekdwh, @wd-gitcode, @weihongye ,
优秀贡献者是: @Sirus_L, @gcw_NiLAcrhi, @guangsen, @seekdwh, @wenmingyang .


2 days ago Added label: stat/needs-squashneed-doc-sig-review
2 days ago Added label: boostkit-cla/yes
BoostKit-bot
2 days ago Comments:
2 days ago Comments:
This pull request involves documentation changes. Please contact doc sig maintainers: @FlussGold, @gengxueping.
Command: /lgtm or /review-by-doc-sig


BoostKit-bot
2 days ago Comments:
2 days ago Comments:
boostkit-ci-bot
2 days ago Comments:
2 days ago Comments:
BoostKit docs pipeline is running...


2 days ago Added label: docs-ci-pipeline-running
boostkit-ci-bot
2 days ago Comments:
2 days ago Comments:
❌ 文档门禁未通过!
| 检查项 | 检查结果 | 详情 |
|---|---|---|
| markdownlint | ❌ 未通过 | 查看详情 |
| link-validity-check | ✅ 已通过 | 查看详情 |
| resource-existence-check | ✅ 已通过 | 查看详情 |
| tag-closed-check | ✅ 已通过 | 查看详情 |
💡 本次检查出 3 项错误,详情内容如下:
| 序号 | 错误详情 |
|---|---|
| 1 | [文件路径]:docs/cn/urma_resources.md [检查类型]:markdownlint [错误位置]:第 67 行 [错误信息]:MD012:文档中有多余的空行,请删除多余的空行。期望:1;当前:2 |
| 2 | [文件路径]:docs/cn/urma_validation/pooled_receive_ordering.md [检查类型]:markdownlint [错误位置]:第 15 行 [错误信息]:MD012:文档中有多余的空行,请删除多余的空行。期望:1;当前:2 |
| 3 | [文件路径]:docs/cn/urma_validation/pooled_receive_ordering.md [检查类型]:markdownlint [错误位置]:第 20 行 [错误信息]:MD012:文档中有多余的空行,请删除多余的空行。期望:1;当前:2 |


2 days ago Removed label: docs-ci-pipeline-running
2 days ago Added label: docs-ci-pipeline-failed
1 day ago virtual merging failed, update merge request[project_id: 9721068, iid: 41, target_commit_sha: 2c54734e3aaed735db678ca846f9f4b2b260d488], message: Conflict detected
1 day ago virtual merging failed, update merge request[project_id: 9721068, iid: 41, target_commit_sha: 2c54734e3aaed735db678ca846f9f4b2b260d488], message: Conflict detected
连接独占 URMA 队列时,连接数增加会带来硬件队列及相关资源的线性增长。本 PR 增加进程级注册内存池、共享 JFS/JFR 及其完成事件处理,通过报文中的 SocketId 和序号完成逻辑连接路由与有序交付,并整合收发路径优化。
引入 URMA 统一资源框架,将社区连接独占实现与共享池化实现纳入同一套 Endpoint、握手及资源接口,通过启动参数
urma_resource_mode=exclusive|pooled选择后端,默认保留社区独占模式。关联上游 issue #23:https://atomgit.com/boostkit/brpc/issues/23。本次覆盖共享资源池与双边 SEND 路径,尚未覆盖该 issue 的全部方案。
主要改动
UrmaResourceProvider与UrmaConnectionResource统一资源创建、对端绑定、发送、可写等待、完成回调和关闭生命周期。Endpoint 负责握手与传输状态,资源后端负责独占或共享队列;通过 ReceiveAdapter 对接 Socket 路由和解析交付。连接资源在发布后保持稳定绑定,收发热路径借助 Socket 生命周期保护直接访问资源,减少逐分片资源锁和共享引用计数操作。urma_inline_last开关。提交组织
历史优化与修复均并入对应功能模块,共 11 个提交:3 个统一框架/独占适配提交,以及 8 个池化功能提交。
76f724e20caa8372894c7a315ae8846e6b83c12e4041c501bf77bbff18b3232aa71fb757b99fa32c2b5a93e3编译与功能验证
验证版本为
2b5a93e368d1f5da4ad8efe36ec0ae1551266f1c。WITH_TCMALLOC=OFF验证可选分配器构建。git diff --check通过。当前范围
独占与池化保留各自的 URMA 数据线协议;新握手协商资源模式,两端模式不匹配时回退 TCP,不表示不同数据线协议可以直接互通,也不保证任意历史池化版本均支持该回退。池化路径支持非 bonding 设备、事件驱动模式和 baidu_std 协议,大于 CTP 单片上限的消息继续分片 SEND;独占后端保留社区实现的相应行为。
64KiB 注册内存池、大包单边 READ/WRITE 路径及端到端 credit/ACK 流控尚未包含。当前内存池初始化后不自动扩容。