-
-
Notifications
You must be signed in to change notification settings - Fork 528
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 object can't be added (to use leastPing strategy for balancer) #991
Comments
This feature is advanced configuration which in this panel, we use it in JSON subscription. But in simple UI like x-ui could not be controlled simply. It is true that this part is not defined as an object in Backend codes. I will fix it in next version. |
If the observatory object could be added manually in xray advanced settings (even without UI integration), that would be great. |
Due to some typos I have rebuilt the 1.7.2 tag. |
Thank you very much dear sir. You made my day. |
Dear @pulsarice |
I have 3 reverse connections, named portal-1, portal-2 and portal-3
the selector "portal" will ping all outbound/reverse tunnels begining with "portal" every 5 seconds, which will include all my tunnels. then I added the balancer object inside routing, before rules:
Then in routing rules, instead of outboundtag, I use balancertag "balancer" you can also put all outbound/portal names seperately in selector object
|
Thanks for your detailed explanation❤️, I will try it. |
I can cofirm that it works on v1.8.7
I'm sorry, but I don't feel comfortable sharing my contact info. |
It is already added. Closing issue... |
Xray has a feature (borrowed from v2ray project) to ping outbounds in a set interval and use the best one via balancer routing rules.
I have tested it locally and it works. (by manually editing config.json and running xray)
It needs ObservatoryObject to be added to config.json. but when I add this to xray config in x-ui, it's not added to "/usr/local/x-ui/bin/config.json", therefore this feature does not work.
Please fix this
observatory settings in config.json:
The format of observatory is like this:
and the balancer will be like this:
The text was updated successfully, but these errors were encountered: