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

如何动态修改熔断器配置 #170

Open
newbietao opened this issue Mar 8, 2023 · 1 comment
Open

如何动态修改熔断器配置 #170

newbietao opened this issue Mar 8, 2023 · 1 comment
Labels
question Further information is requested

Comments

@newbietao
Copy link

Question

我看代码里的配置是在初始化熔断器时传入的,怎么才能在运行时动态的修改相关配置选项

@newbietao newbietao added the question Further information is requested label Mar 8, 2023
@PureWhiteWu
Copy link
Collaborator

不支持所有参数的动态调整,但是可以通过自己写的 TripFunc 中动态调整 Trip 条件。
另外,如果需要所有参数的动态调整,可以自己尝试在上层创建新的熔断器并在运行时动态替换。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants