Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(alias): add timeout when List and Link #8290

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xrgzs
Copy link
Contributor

@xrgzs xrgzs commented Apr 3, 2025

为别名驱动的 List 和 Link 操作新增超时自动切换选项,当某个存储出现故障或性能下降时,能够自动切换到下一个存储,避免长时间卡住而影响体验。

Copy link

Walkthrough

为别名驱动的 List 和 Link 操作新增了超时自动切换功能。当某个存储出现故障或性能下降时,系统能够自动切换到下一个存储,避免长时间卡住而影响用户体验。

Changes

文件 概要
drivers/alias/driver.go 为 List 和 Link 操作添加了超时处理逻辑,使用 context.WithTimeout 实现超时自动切换。
drivers/alias/meta.go 新增了 Timeout 配置项,默认值为 10 秒。

@xrgzs xrgzs force-pushed the perf/alias-timeout branch from c4568c9 to 66a521b Compare April 3, 2025 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant