Skip to content

Adds balance support #4716

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

Merged
merged 1 commit into from
Jul 7, 2025
Merged

Adds balance support #4716

merged 1 commit into from
Jul 7, 2025

Conversation

DHR60
Copy link
Contributor

@DHR60 DHR60 commented Jul 5, 2025

生成多配置负载均衡配置

不支持 hy2

对整个订阅分组操作,可正则过滤

想最低改动实现这个功能,写得不太好,如果优化感觉需要动代码结构

rename

Adds intelligent selection method setting

Adds KDoc
@2dust
Copy link
Owner

2dust commented Jul 6, 2025

用了下,能运作。

  1. 设置中的智能选择方式可以去掉,改成每次点击生成时弹出一个窗口或直接二级菜单,让用户选择方式
  2. 分组的正则过滤挺好,但是实际上很多人不会写;如果分组配置数量过多,很可能产生的配置文件巨大,直接的结果可能手机内存等资源占用巨大。这个是否弹出一个提示让用户知道有多少数量?
  3. 也可以像 PC 版一样让用户多选择,那样在手机上操作很难,也不会有人愿意每次一个一个选,这个放弃。

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 6, 2025

  1. 设置中的智能选择方式可以去掉,改成每次点击生成时弹出一个窗口或直接二级菜单,让用户选择方式

没什么必要吧,两个使用上的区别也就是切换节点的速度和频率,以及故障转移的速度;least ping 应该就是面向 end user 和机场更好的模式,没必要每次点击生成时选择一个模式。

  1. 分组的正则过滤挺好,但是实际上很多人不会写;

这个没什么办法吧,引导用户使用 ai 生成?

顶多加一个 exclude 正则,利好部分 clash 用户,因为 golang 的正则那边没有负向断言,providers 有个 exclude-filter

如果分组配置数量过多,很可能产生的配置文件巨大,直接的结果可能手机内存等资源占用巨大。这个是否弹出一个提示让用户知道有多少数量?

感觉不太好搞啊,要么生成后 Pair 依次传上去节点数量,要么将节点筛选提前到 model 里面

@2dust
Copy link
Owner

2dust commented Jul 7, 2025

  1. 有分歧,那就先用你的方案,都已经写好了。
  2. 这个只是一个担忧,不用处理

没有什么问题,等下就合并了

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 7, 2025

ok

@t-e-s-tweb
Copy link

我不知道这是否是设计使然,但平衡器配置中不会产生碎片和噪音。

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 7, 2025

设计使然,分片和噪音本质上是链式代理的一部分,实现会增大代码和配置的复杂度

2dust/v2rayN#7515 (comment)

@2dust 2dust merged commit 5db2df7 into 2dust:master Jul 7, 2025
1 check passed
@rasa68
Copy link

rasa68 commented Jul 8, 2025

This option does not work on Subscription jsun؟

@DHR60
Copy link
Contributor Author

DHR60 commented Jul 8, 2025

This option does not work on Subscription jsun؟

Not support

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.

5 participants