mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #1826] Observatory object can't be added (to use leastPing strategy for balancer) #1243
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#1243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pulsarice on GitHub (Feb 16, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1826
Welcome
Description of the problem,screencshot would be good
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 3x-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:
@MHSanaei @alireza0
Version of 3x-ui
x-ui log reports or xray log
@ErfanTech commented on GitHub (Feb 20, 2024):
Which version of xray-core are you using?
Please also consider the new update that is merged to xray recently.
github.com/XTLS/Xray-core@fa5d7a255b@ErfanTech commented on GitHub (Feb 20, 2024):
are you using it for a simple outbound tunnel or reverse tunnel?
@pulsarice commented on GitHub (Feb 20, 2024):
v1.8.7
That's interesting. So other balancer strategies are being added. Like leastLoad!
It worked for both. But for reverse portal, I had to manually add an outbound per portal connection for the Selector to work.
Currently because of Observatory, I can't use leastPing, but Roundrobin and Random are working.