mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6624] [Feature]: Per-balancer Observatory / BurstObservatory settings #4431
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#4431
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 @NooNooJoo on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6624
Is your feature request related to a problem?
The panel has two separate places where multiple balancers can be defined, each with its own "Observatory" tab next to the balancer list:
Panel's own Xray config — the "Balancer settings" / "Observatory" tabs. Multiple balancer rows can be added, each with its own strategy, selector and fallback, but the Observatory tab only exposes a single probe config that is shared by every balancer row in that table.
JSON-subscription balancers — the "Balancer" / "Observatory" tabs, where each enabled balancer row is exported into the JSON subscription as its own profile (routing.balancers + burstObservatory in the client config). Same limitation: several balancer rows can be created, each covering different inbounds, but only one shared Observatory config applies to all of them.
In both places, defining multiple balancers is fully supported, but each balancer is still forced to use identical health-check behavior (probe URL, interval, timeout, tolerance), because Observatory is configured once per table instead of once per balancer.
Describe the solution you'd like
In both the panel's Xray-balancer table and the JSON-subscription-balancer table, let each balancer row have its own, independent Observatory / BurstObservatory configuration, instead of one config shared across the whole table.
If a balancer row has no per-balancer Observatory settings configured, fall back to the current shared/default config (backward compatible).
Generate the resulting config accordingly: for the panel's own Xray config, emit a distinct observatory block per balancer that has its own settings (Xray-core supports multiple named observatories referenced by tag); for JSON subscriptions, emit a distinct burstObservatory block per exported balancer profile.
Alternatives you've considered
Using one shared probe config tuned as a compromise for every balancer in the table — works, but forces identical probe frequency/tolerance on all balancers regardless of how different their roles or endpoints are.
Splitting balancer groups across multiple panels — defeats the purpose of managing several balancer strategies from a single panel/subscription.
Concrete use case
I have several balancer rows configured, both in the panel's own Xray balancer table and in the JSON-subscription balancer table, each grouping different inbounds/outbounds for a different purpose. All of them are currently forced to share one Observatory configuration, even though each balancer would ideally have its own probe settings tuned to its own endpoints and use case — especially in the JSON-subscription balancers, where each row is already exported as an independent client-facing profile.
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Xray config generation, Subscription (share links / Clash / JSON), Frontend (UI / panel pages)
Are you willing to help?
Before submitting