feat(proxy-group): optional persistent pin with long-failure auto-unfix#2627
Open
lovitus wants to merge 4 commits into
Open
feat(proxy-group): optional persistent pin with long-failure auto-unfix#2627lovitus wants to merge 4 commits into
lovitus wants to merge 4 commits into
Conversation
added 4 commits
March 17, 2026 18:43
fc75145 to
45587c5
Compare
454dd12 to
1b2ea14
Compare
46220ad to
e0a42d4
Compare
61b8d7f to
17bed79
Compare
f513c49 to
d67572b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景与动机
关联 issue: #2616
在
url-test/fallback场景中,部分用户会在 GUI 中显式 pin/override 某个节点,希望该选择在自动测速周期中保持一致,避免出现“UI 显示仍是 fixed,但实际流量已被自动策略改走”的体验偏差。 (有的gui会处理正常,跟随释放fixed,但是依旧和用户使用预期不符)这个 PR 的目标是提供一个可选能力:
兼容性说明(非常重要)
本 PR 新增行为均为显式参数开启后才生效:
persistent-pin默认falsepin-unhealthy-log-interval默认10persistent-pin-auto-unfix-threshold默认10也就是说,不配置这些参数时,现有用户逻辑不会被改变。
修改内容与原因
1)
url-test/fallback:支持可选 persistent pinadapter/outboundgroup/urltest.goadapter/outboundgroup/fallback.goadapter/outboundgroup/parser.gohub/route/groups.goadapter/outboundgroup/util.godocs/config.yaml2) 自动解除 pin 的触发条件(仅
persistent-pin=true)3) 日志补充
4) 本 PR 包含 #2615 的核心修复内容
实际验证
我已基于以下版本进行实际高频使用验证:
验证环境:
结论:行为与预期一致。
额外说明
本 PR 尽量保持变更边界在
outboundgroup相关逻辑与配置文档,未引入默认行为变化。