Outlier detection can eject one too many endpoints

未关闭 适合新手
#13,164 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
grpc, java

调研方向

阅读 util/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java,尤其是 issue 中链接的两个位置(约第 828–833 行和第 901–909 行)。检查各处如何计算驱逐百分比,以及如何应用驱逐上限。完成标准是两个路径都考虑假设驱逐后的百分比,从而确保驱逐不会超过配置的最大值。

由索引模型根据 Issue 内容生成。

描述

With https://github.com/grpc/proposal/pull/574, A50 was updated to match the proper Envoy behavior:

Ejection never takes the ejected percentage above this value, so a value of 0 disables ejection.

Java does allow an ejection to take us over the configured percentage.

https://github.com/grpc/grpc-java/blob/4483d920e85fbdecf890b1fb5890aef6599159f2/util/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java#L828-L833

and

https://github.com/grpc/grpc-java/blob/4483d920e85fbdecf890b1fb5890aef6599159f2/util/src/main/java/io/grpc/util/OutlierDetectionLoadBalancer.java#L901-L909

These both should change to consider the percentage after a hypothetical ejection was to occur. E.g. rework ejectionPercentage to something like nextEjectionPercentage instead.

主要语言
Java
星标
12.1k
派生
4k
平均合并
2 天 17 分钟
30 天内合并 PR
43

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

grpc/grpc-java 的其他 Issue

查看 grpc/grpc-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。