Repository navigation
fix: 调整网络探针默认灵敏度 - #33
Merged
Merged
Conversation
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.
概述
调整网络探针默认灵敏度,减少网络抖动导致的频繁告警。新安装或配置未显式覆盖
probe时,默认使用实测更稳的一组参数。背景
运行日志显示约 22 分钟内产生 9 次
proxyDown+ 8 次恢复通知。现场探测 10 轮:timeoutMs=3000下超时retryDelayMs=3000+confirmAttempts=2,约 3 秒连续失败就报警slowThresholdMs与timeoutMs同为 3000,slow状态实际不可达改动
DEFAULT_CONFIG.probe:intervalMstimeoutMsslowThresholdMsretryDelayMsconfirmAttemptsrecoverAttempts同时:
test/config.test.ts增加默认值回归断言test/index.test.ts、test/runtime.test.ts按新的确认/恢复次数更新slowThresholdMs兼容性
配置文件中显式写出的
probe字段仍然优先;已有自定义配置的用户行为不变。未写probe的配置才会使用新默认值。验证
npm run typecheck通过npm test:316 通过 + 1 跳过(317)不在本轮
Closes #32