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

observatory如果探测到某一个Outbound失效,会在balancer中自动暂时不使用这个Outbound吗 #1841

Closed
wanzhiyu opened this issue Jun 22, 2022 · 4 comments
Labels

Comments

@wanzhiyu
Copy link

...
"observatory": {
"subjectSelector": [
"OUT_1",
"OUT_2",
"OUT_3"
],
"probeInterval": "2s"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "mph",
"balancers": [
{
"tag": "zz",
"selector": [
"OUT_1",
"OUT_2",
"OUT_3"
],
"strategy": {
"type": "random"
}
}
],
...
如上配置,会每2s发起一次探测,检测3个OUT的状态,随后,随机random从这3个OUT中挑选一个发起连接。
那么,假设此时OUT_1对应的远程服务器宕机了、失效了,那么使用random时会自动不使用这一个OUT_1吗?
如果没有这一功能,希望可以添加。

@simplerick-simplefun
Copy link

从我的实际使用观感来看目前不会。
你的某一个outbound失效有可能是服务端彻底挂了,也可能是碰到问题、修复一下就好了,也可能是服务器维护重启,过了2、3分钟自己就好了,也可能是网络传输中丢包了、过几秒钟重连就好了。那么v2应该暂停这个outbounds多长时间合适呢?

@wanzhiyu
Copy link
Author

wanzhiyu commented Jul 2, 2022

从我的实际使用观感来看目前不会。 你的某一个outbound失效有可能是服务端彻底挂了,也可能是碰到问题、修复一下就好了,也可能是服务器维护重启,过了2、3分钟自己就好了,也可能是网络传输中丢包了、过几秒钟重连就好了。那么v2应该暂停这个outbounds多长时间合适呢?

连接观测observatory里面的probeInterval设定了探测间隔时间,例如我上面设置为2s探测一次,那么如果outbound坏了,那么就暂时停用它,继续每2s探测一次,过了一段时间之后outbound恢复了,那么就再使用这个outbound

@wind315
Copy link

wind315 commented Sep 14, 2022

从我的实际使用观感来看目前不会。 你的某一个outbound失效有可能是服务端彻底挂了,也可能是碰到问题、修复一下就好了,也可能是服务器维护重启,过了2、3分钟自己就好了,也可能是网络传输中丢包了、过几秒钟重连就好了。那么v2应该暂停这个outbounds多长时间合适呢?

连接观测observatory里面的probeInterval设定了探测间隔时间,例如我上面设置为2s探测一次,那么如果outbound坏了,那么就暂时停用它,继续每2s探测一次,过了一段时间之后outbound恢复了,那么就再使用这个outbound

我没作过这个测试,也不知道怎么测试,不过我觉得应该就是这样工作的吧?比如已经probe没问题,那肯定会使用它,如果probe发现它不可用了,应该不会向它发送信息了吧?

@github-actions
Copy link
Contributor

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

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

No branches or pull requests

3 participants