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

[Feature Request] 有没有根据优先级的policy? #731

Open
jjqtony opened this issue Jan 5, 2025 · 5 comments
Open

[Feature Request] 有没有根据优先级的policy? #731

jjqtony opened this issue Jan 5, 2025 · 5 comments

Comments

@jjqtony
Copy link

jjqtony commented Jan 5, 2025

Greetings

No response

Feature Request

找遍文档没有找到根据优先级的policy。
我的意思是,在一个group中,优选选择第一个节点,第一个节点失效,则选择第二个节点,以此类推。
有这样的policy吗?

Use Cases

这种需求挺普遍的。

Potential Benefits

这种需求挺普遍的。

@dae-prow
Copy link
Contributor

dae-prow bot commented Jan 5, 2025

Thanks for opening this issue!

@jjqtony
Copy link
Author

jjqtony commented Jan 5, 2025

Hello, we tried to solve the issue.

This is what we did:

Implement a priority-based policy for selecting dialers within a group. This new policy will select the first available dialer in the order they are defined in the group. If the first dialer fails, it will move to the second, and so on.

You can review changes in this commit: trinks-slam818@8960113.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

AI生成的代码,太牛了,能直接根据feature request生成代码了。

@st0nie
Copy link
Contributor

st0nie commented Jan 5, 2025

@jjqtony 你在找add_latency

@jjqtony
Copy link
Author

jjqtony commented Jan 5, 2025

@jjqtony 你在找add_latency

谢谢,可能可以部分解决我的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@jjqtony @st0nie and others