You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Similarityoung (via GitHub)" <gi...@apache.org> on 2026/04/06 09:09:53 UTC

[I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Similarityoung opened a new issue, #905:
URL: https://github.com/apache/dubbo-go-pixiu/issues/905

   ### ✅ 验证清单
   
   - [x] 🔍 我已经搜索过 [现有 Issues](https://github.com/apache/dubbo-go-pixiu/issues),确信这不是重复请求
   - [x] 📋 我已经查看了 [发布说明](https://github.com/apache/dubbo-go-pixiu/releases),确信此功能尚未实现
   
   ### 🎯 功能描述
   
   ## 背景
   
   Pixiu 在 listener、router、连接复用和治理层已经有一定并发优化基础,但 cluster 模块当前仍存在热路径开销、runtime 状态边界不清和部分正确性问题。
   
   这个 issue 用来统一记录 cluster 当前问题,以及后续优化方向,作为后续改造的 tracking。
   
   ## 当前问题
   
   - `PickEndpoint()` / `PickNextEndpoint()` 仍通过 `store.Config` 线性查找 cluster,读路径不是 O(1)
   - `store.Config` 和 `clustersMap` / runtime cluster 存在双视图问题,`UpdateCluster()`、`CompareAndSetStore()` 的 runtime 同步不完整
   - `GetEndpoint(true)` 在请求热路径上重复过滤健康节点,并构造临时切片
   - `RoundRobin` 直接修改 `ClusterConfig.PrePickEndpointIndex`,共享状态模型不适合高并发读路径
   - `RoundRobin` 在全不健康节点场景下会 panic
   - `Rand` 当前按总节点数取随机上界,但索引的是健康节点切片,部分不健康场景下会 panic
   - `RingHash` / `Maglev` 依赖已有一致性哈希结构,不能和简单 LB 用同一思路直接改
   - 当前测试对动态更新、边界条件和并发行为覆盖不足
   
   ## 优化方向
   
   - 先收口 `store.Config` 与 runtime cluster 的一致性,明确 cluster runtime 的真实数据源和生命周期
   - 再将 cluster 查找切到 O(1)
   - 将健康节点过滤从请求路径移到状态变更路径,引入健康节点快照
   - `RoundRobin`、`Rand`、`WeightRandom` 优先改为读取健康快照,并修复边界问题
   - `RingHash` / `Maglev` 单独处理,首轮保持现有哈希语义不变
   - 先补测试和 benchmark,再推进实现改造
   
   ## 建议顺序
   
   1. 补测试和 benchmark
   2. 修复当前明显正确性问题
   3. 收口 runtime 一致性
   4. 切 O(1) cluster 查找
   5. 引入健康节点快照
   6. 优化简单 LB 热路径
   7. 最后处理一致性哈希 LB
   
   ## 验收标准
   
   - `PickEndpoint()` 不再线性扫描 `store.Config`
   - 请求热路径不再重复构造健康节点切片
   - `RoundRobin` / `Rand` 在无健康节点或部分不健康节点时不会 panic
   - `UpdateCluster()` / `CompareAndSetStore()` 不再遗留 stale runtime state
   - cluster 相关测试和 benchmark 能覆盖核心场景
   
   ## 涉及文件
   
   - `pkg/server/cluster_manager.go`
   - `pkg/cluster/cluster.go`
   - `pkg/model/cluster.go`
   - `pkg/cluster/healthcheck/healthcheck.go`
   - `pkg/cluster/loadbalancer/roundrobin/round_robin.go`
   - `pkg/cluster/loadbalancer/rand/load_balancer_rand.go`
   - `pkg/cluster/loadbalancer/weightrandom/weight_random.go`
   - `pkg/cluster/loadbalancer/ringhash/ring_hash.go`
   - `pkg/cluster/loadbalancer/maglev/maglev_hash.go`
   
   ### 📋 使用场景
   
   none
   
   ### ⚖️ 复杂性与风险评估
   
   _No response_
   
   ### 🔗 外部依赖
   
   _No response_
   
   ### 📚 附加信息
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "mochengqian (via GitHub)" <gi...@apache.org>.
mochengqian commented on issue #905:
URL: https://github.com/apache/dubbo-go-pixiu/issues/905#issuecomment-4233089311

   I could help with it , please assign to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "mochengqian (via GitHub)" <gi...@apache.org>.
mochengqian commented on issue #905:
URL: https://github.com/apache/dubbo-go-pixiu/issues/905#issuecomment-5364983780

   ### cluster 模块优化报告
   本issues相关PR:
   author( @mochengqian) :#932 #919 #923  #946  #962 #963 #964 #965 #966 #967 #970 #971 #972  
   issues provider、reviewer( @mochengqian): #960 #961 #973
   本次演进所设定的全部硬性架构指标均已顺利闭环:
   - [x] **消除线性扫描灾难**:`PickEndpoint` 核心热路径彻底告别对 `store.Config` 的遍历。在 1024 个微服务集群的重载场景下,路由查询耗时从 **831.4 ns** 骤降至 **7.443 ns**。
   - [x] **实现快照级的零切片构造**:拾取逻辑不再于并发热点中重复分配健康切片。依赖于 `HealthyEndpointsForPick` 暴露的不可变视图,操作耗时被死死锚定在 0.71 ns 附近,实现零动态内存分配 (0 alloc)。
   - [x] **配置层与运行时层的深度解耦**:成功实现了私有 `Config`、`RuntimeState` 以及 `RoundRobin` 游标迁移的架构重构,彻底划清了静态配置与动态运行时的边界。
   - [x] **集群底层逻辑全面优化**:通过一系列跟进优化,进一步夯实了集群模块在高并发环境下的性能与调度稳定性。
   - [x] **负载均衡器边界安全加固**:针对 Rand 与 RoundRobin 算法的极端用例测试表明,无论是在零健康节点还是部分节点失效的状态下,防御机制均能稳定拦截越界索引与空指针异常。
   - [x] **运行时状态的一致性保障**:涵盖 `UpdateCluster` 与 `CompareAndSetStore` 动作的破坏性测试证明,旧有运行时配置被精准销毁,未遗留任何导致内存泄露的悬空状态。
   
   下表提炼了核心重构前后最具代表性的基准测试对比。测试运行于 Apple M5 (darwin/arm64) 架构,展示数值均为多次采样的稳定中位数。
   
   #### 1. 集群映射发现算法时间复杂度对比 (O(N) → O(1))
   > Baseline 对齐: 变更前基于父提交 `9791a83b` 测定
   
   | 集群映射规模 | 原始遍历耗时 (Before) | 散列映射耗时 (Current) | 优化幅度评估 | 演进结论解读 |
   | :--- | ---: | ---: | ---: | :--- |
   | N = 1 | 3.631 ns | 4.923 ns | (常数级抗扰) | 单元素未触发遍历瓶颈,无宏观参考意义 |
   | N = 32 | 20.04 ns | 6.604 ns | ~3.0x 提速 | 散列表映射固定开销的相对优势开始显现 |
   | N = 256 | 124.9 ns | 6.530 ns | ~19.1x 提速 | 成功阻断随规模膨胀带来的线性性能退化 |
   | N = 1024 | 831.4 ns | 7.443 ns | ~111.7x 提速 | 确认达成近乎完美的 O(1) 常量级复杂度 |
   
   #### 2. 负载均衡热路径内存分配优化
   > Baseline 对齐: 变更前基于父提交 `fafcaf0c` 测定
   
   | 测试场景与算法 | 旧版执行耗时与内存开销 | 新版快照执行耗时与内存开销 | 优化幅度评估 | 演进结论解读 |
   | :--- | ---: | ---: | ---: | :--- |
   | Rand (N = 64) | 126.1 ns / 512 Bytes | 78.48 ns / 144 Bytes | ~1.6x 提速 | 彻底取消针对健康节点的临时切片组装逻辑 |
   | Rand (N = 512) | 836.9 ns / 4864 Bytes | 77.59 ns / 144 Bytes | ~10.8x 提速 | 资源消耗与并发请求规模完全解耦,抗高并发 |
   | RR (N = 512) | 835.7 ns / 4864 Bytes | 74.01 ns / 144 Bytes | ~11.3x 提速 | 转化为基于固定选定端点克隆的恒定开销操作 |
   
   *(备注:包含健康视图加载、防篡改克隆追踪、语义扫描与哈希重建等全方位数据)*
   
   | 深度测试项目与配置 (优化前 vs 优化后) | 测试规模 N | 耗时 (ns/op) | 内存 (B/op) | 分配次数 | 性能机理解析 (Interpretation) |
   | :--- | ---: | ---: | ---: | ---: | :--- |
   | **[优化前基准]** DefensiveCopy (线性深拷贝) | 512 | 16889.0 | 78592 | 513 | 线性拷贝基准对照,凸显快照零拷贝之价值 |
   | **[优化后实测]** HealthySnapshotLoad (快照读取) | 512 | 0.7116 | 0 | 0 | 完美验证 Zero-copy 视图与扁平化缩放 |
   | **[优化前基准]** Identity semantic scan (语义扫描) | 1024 | 1349.0 | 144 | 1 | 保留的向下兼容性 O(N) 降级扫描基线 |
   | **[优化后实测]** Identity recheck with index (倒排索引) | 1024 | 36.39 | 144 | 1 | 验证 O(1) healthy-by-ID 高速倒排索引 |
   | **[优化前基准]** RingHash refresh (forced rebuild) | 1024 | 240725517.0 | ~4434214 | 169099 | 对比验证强制重建的惩罚 (约慢 1242 倍) |
   | **[优化后实测]** RingHash refresh (cached reuse) | 1024 | 193765.0 | ~563301 | 4141 | 验证哈希环数据结构的跨事务复用逻辑 |
   | **[专项重构]** Cooldown_EndpointInCooldown | 100 | 174.9 | 40 | 3 | SHA-256 原生字节哈希优化,拔除十六进制转换 |
   
   <details>
   <summary>🛡️ 展开查看:代码审计矩阵与依赖树闭环追踪</summary>
   
   | 序号 | 架构与安全审计点 (Audit Question) | 源码定位与逻辑原理 (Source & Reason) | 回归测试证据支撑 (Test Evidence) | 审计结论 |
   | :--- | :--- | :--- | :--- | :--- |
   | 1 | getCluster 提取操作是否严格为 O(1)? | cluster_manager.go:275 经直接 Map 寻址获取 | UsesRuntimeClusterMap 基准测试 | ✅ PASS |
   | 2 | PickEndpoint 是否存在隐式 Config 遍历? | 代码隔离重构,仅依赖只读运行时映射与快照 | 源码排查无冗余调用,耗时测试平稳 | ✅ PASS |
   | 3 | Pick 热区是否残余健康节点的重新过滤? | cluster.go:336 直接读取预发布视图,无深拷贝 | Snapshot benchmark 录得 0 alloc | ✅ PASS |
   | 4 | 随机算法是否屏蔽了越界内存索引风险? | 将随机数上界严格锁定于 len(c.HealthyEndpoints) | DoesNotIndexPastHealthySlice 异常测试 | ✅ PASS |
   | 5 | 轮询算法遭遇极端零可用节点时是否崩溃? | 方法前置检查拦截了 len==0 的除零风险 | ReturnsNilWithoutPanic 鲁棒性验证 | ✅ PASS |
   | 6 | 轮询游标的跨事务操作是否存在竞争条件? | 将游标隔离 yaml 序列化并实施全原子化读写 | 24 秒 -race 并发探测未见数据损坏 | ✅ PASS |
   | 7 | 配置更新是否导致废弃运行时驻留内存? | cluster_manager.go:594 强制联动并挂起旧引用 | UpdateClusterRebuildsRuntimeCluster | ✅ PASS |
   | 8 | CAS 匹配失败是否诱发副作用或脏数据? | 版本校验逻辑绝对前置,异常在数据修补前返回 | VersionMismatchHasNoSideEffects | ✅ PASS |
   | 9 | 节点地址变更后哈希路由表是否引发倒错? | 变更自动触发表失效,拦截地址漂移下的缓存复用 | SetEndpointExplicitSameID... 断言测试 | ✅ PASS |
   | 10 | 探活健康检查器 Goroutine 是否引发泄漏? | 更新操作正确触发 stopClusters 实施回收 | 针对重复触发更新行为的内存泄漏探测 | ✅ PASS |
   | 11 | 端点快照对象是否维系了绝对的不可变性? | 发布前强制实施深克隆,对外暴露防御性读接口 | 高并发健康刷新混合测试未见数据污染 | ✅ PASS |
   | 12 | 三方负载均衡器能否穿透内部零拷贝边界? | snapshotOptIn 实施内联路径强校验与令牌拦截 | CannotOptIntoFastPaths 黑客式注入拦截 | ✅ PASS |
   | 13 | ID 校验逻辑是否隐藏了向后兼容的性能塌陷? | 生产环境全面接入 O(1) 的 HealthyByID 倒排映射 | 万级节点规模对比,耗时远低于语义扫描 | ✅ PASS |
   | 14 | 运行期节点 ID 后缀装配是否存在解析漂移? | 收口至单一事实来源 StableUniqueEndpointID | EndpointIDAssembly... 协同一致性验证 | ✅ PASS |
   | 15 | 极早期启动阶段快照监控指标是否被吞没? | 强制重排启动序列,确保 OTel 计量器先行注册 | StaticClusterSnapshotMetrics... 指标覆盖 | ✅ PASS |
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "Similarityoung (via GitHub)" <gi...@apache.org>.
Similarityoung closed issue #905: [FEATURE] cluster 模块问题梳理与优化方向
URL: https://github.com/apache/dubbo-go-pixiu/issues/905


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "mochengqian (via GitHub)" <gi...@apache.org>.
mochengqian commented on issue #905:
URL: https://github.com/apache/dubbo-go-pixiu/issues/905#issuecomment-4332356434

   @AlexStocks  Sorry, only the first two steps of this issue have been completed, five more steps are still pending.
   
   Issue #905 step progress:
   - [x] Add tests and benchmarks
   - [x] Fix current correctness issues
   - [ ] Tighten runtime consistency
   - [ ] Switch cluster lookup to O(1)
   - [ ] Introduce healthy endpoint snapshots
   - [ ] Optimize simple LB hot path
   - [ ] Optimize consistent-hash LB last


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks closed issue #905: [FEATURE] cluster 模块问题梳理与优化方向
URL: https://github.com/apache/dubbo-go-pixiu/issues/905


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] [FEATURE] cluster 模块问题梳理与优化方向 [dubbo-go-pixiu]

Posted by "mochengqian (via GitHub)" <gi...@apache.org>.
mochengqian commented on issue #905:
URL: https://github.com/apache/dubbo-go-pixiu/issues/905#issuecomment-6334454248

   ### Cluster 模块优化成果
   
   本 issue 及后续跟进累计完成 **21 个 PR,覆盖 Pixiu 20 个、gost 1 个**。
   
   优化按照“正确性修复 → 运行时一致性 → 请求热路径优化 → 配置与运行时解耦 → 哈希结构复用与重建优化”逐步推进。
   
   #### 主要成果
   
   - **集群查找**:从遍历 `store.Config` 改为 runtime map 查询,平均时间复杂度由 O(N) 降为 O(1)。
   - **健康节点快照**:将健康过滤和索引构建移至状态变更阶段,请求读取已发布快照,消除重复过滤和临时健康切片构造。
   - **运行时边界**:明确配置、健康状态、轮询游标和 cooldown 的归属,完善配置更新、旧 runtime 停止及并发访问行为。
   - **一致性哈希复用**:满足复用条件时,新快照沿用已有哈希结构;配置层的兼容哈希按需构建,减少无效重建。
   - **一致性哈希重建**:必须重新构建时,RingHash 使用 gost `AddBatch` 避免逐主机重复排序;Maglev 按需计算排列位置,将主要数据结构空间从 O(N×M+M) 降为 O(N+M)。
   - **工程保障**:补充边界、并发、等价性测试和 benchmark,以及快照发布指标与弃用 API 检查。
   
   #### 相关 PR
   
   | PR | 主要工作 |
   |---|---|
   | [#915](https://github.com/apache/dubbo-go-pixiu/pull/915) | 建立测试和 benchmark 基线;修复 Rand 健康切片越界、RoundRobin 无健康节点异常及轮询游标并发问题。 |
   | [#919](https://github.com/apache/dubbo-go-pixiu/pull/919) | 修复配置与 runtime 不一致,完善更新、CAS 替换、旧集群停止及节点地址变化后的哈希更新。 |
   | [#923](https://github.com/apache/dubbo-go-pixiu/pull/923) | 将集群查询切换到 runtime map,移除请求路径上的配置线性扫描。 |
   | [#928](https://github.com/apache/dubbo-go-pixiu/pull/928) | 使用确定性的 xxHash 处理 Maglev 请求 key,解决随机 seed 导致映射不稳定及中间方案 SHA3 开销较大的问题。 |
   | [#930](https://github.com/apache/dubbo-go-pixiu/pull/930) | 稳定静态配置和 Nacos 路径的 endpoint ID,并修复 Nacos 地址、端口回退逻辑。 |
   | [#932](https://github.com/apache/dubbo-go-pixiu/pull/932) | 引入原子发布的不可变健康快照、预建索引和快照选址接口;调整健康更新及 LLM cooldown 状态边界。 |
   | [#946](https://github.com/apache/dubbo-go-pixiu/pull/946) | 将 Maglev 的 SHA3 引用迁移到标准库,修复相关 lint 问题。 |
   | [#960](https://github.com/apache/dubbo-go-pixiu/pull/960) | 在健康端点集合及相关配置满足条件时,跨快照复用 RingHash/Maglev 缓存,避免重复构建。 |
   | [#961](https://github.com/apache/dubbo-go-pixiu/pull/961) | 减少节点更新过程中的重复深拷贝,同时保留外部输入和快照的所有权隔离。 |
   | [#962](https://github.com/apache/dubbo-go-pixiu/pull/962) | 增加快照发布次数、端点数和健康端点数指标,并修复静态集群启动阶段的指标注册顺序。 |
   | [#963](https://github.com/apache/dubbo-go-pixiu/pull/963) | 由 LLM Plugin 显式持有并注入 cooldown store,移除包级共享变量及多层回退查找。 |
   | [#964](https://github.com/apache/dubbo-go-pixiu/pull/964) | 启用 SA1019 检查,阻止新增弃用 API 调用,并提供本地 lint 入口。 |
   | [#965](https://github.com/apache/dubbo-go-pixiu/pull/965) | cooldown key 直接使用 SHA-256 字节数组,消除每次请求的十六进制字符串转换及相关分配。 |
   | [#966](https://github.com/apache/dubbo-go-pixiu/pull/966) | 使用 map 与双向链表维护 cooldown 淘汰顺序,将容量淘汰从 O(N) 扫描改为 O(1)。 |
   | [#967](https://github.com/apache/dubbo-go-pixiu/pull/967) | 将配置层一致性哈希改为 legacy 选址路径按需构建,移除节点更新时的无效提前重建。 |
   | [#970](https://github.com/apache/dubbo-go-pixiu/pull/970) | 使用健康端点 ID 索引完成选址结果复核,将常规身份定位从 O(N) 扫描改为 O(1),保留原有身份校验。 |
   | [#971](https://github.com/apache/dubbo-go-pixiu/pull/971) | 通过 internal token 和具体类型检查限制快照快速路径,保护快照免受外部插件修改。 |
   | [#972](https://github.com/apache/dubbo-go-pixiu/pull/972) | 统一配置装配和快照构建中的 endpoint ID 冲突后缀算法,避免两处实现产生偏差。 |
   | [#973](https://github.com/apache/dubbo-go-pixiu/pull/973) | 私有化 Cluster 配置字段、发布独立配置副本,并将 RoundRobin 游标迁入 RuntimeState。 |
   | [dubbogo/gost#154](https://github.com/dubbogo/gost/pull/154) | 新增 `AddBatch`:只排序新增位置并与旧索引归并,支持批量建环和追加;新增带位置归属检查的 `RemoveBatch`,一次压缩删除后的索引。 |
   | [#1063](https://github.com/apache/dubbo-go-pixiu/pull/1063) | Pixiu RingHash 接入 gost `AddBatch`;Maglev 使用 offset/skip 按需计算候选位置,移除每个主机的完整排列数组,并补充算术语义测试和构建基准。 |
   
   #### 贡献分工
   
   **@mochengqian 提交实现的 16 个 PR:**
   
   #915、#919、#923、#928、#930、#932、#946、#962、#963、#964、#965、#966、#967、#970、#971、#972。
   
   **社区协作的 5 个 PR:**
   
   - #960、#961
   - #973
   - [dubbogo/gost#154](https://github.com/dubbogo/gost/pull/154)、#1063
   
   我参与上述协作 PR 的相关问题梳理、方案讨论和代码Review。
   
   #### 代表性基准记录
   
   | 场景 | 优化前 | 优化后 | 收益 |
   |---|---:|---:|---|
   | 1024 个集群的查询 | 831.4 ns/op | 7.443 ns/op | 约 111.7× 加速 |
   | Rand,512 个端点 | 836.9 ns/op;4864 B/op | 77.59 ns/op;144 B/op | 约 10.8× 加速,分配字节减少约 97.0% |
   | RoundRobin,512 个端点 | 835.7 ns/op;4864 B/op | 74.01 ns/op;144 B/op | 约 11.3× 加速,分配字节减少约 97.0% |
   | Maglev 全量构建,1024 个主机、10007 个槽位 | 27.173 ms/op;42,234,426 B/op | 4.808 ms/op;275,000 B/op | 约 5.65× 加速,分配字节减少约 99.3% |
   
   说明:
   
   - 前三项来自原成果报告,测试环境为 Apple M5;Maglev 构建数据来自 #1063 已报告的 benchmark,环境为 Linux/amd64、Intel Core i7-14700HX。
   - 上述数字为各阶段已有的局部基准记录,应按各自测试范围理解。
   - 快照视图读取本身可做到零分配;完整选址路径仍保留返回端点的防御性拷贝。
   - RingHash 的批量建环收益与 Maglev 的按需排列收益分别评估,整体吞吐、CPU、GC 和 P99 收益需要通过统一环境的端到端测试单独验证。
   - 历史方案 [#925](https://github.com/apache/dubbo-go-pixiu/pull/925) 已关闭且未合并,随后拆分推进,不重复计入上述 21 个交付 PR。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org