[GH-ISSUE #5471] [Bug]: Add Outbound Usage Indicator for Load Balancer (Show Active Outbound/Config)/در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outb… #3824

Closed
opened 2026-10-31 20:35:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @montiego on GitHub (Jun 21, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5471

Describe the bug

🇬🇧 English Version
🚀 Feature Request

When using Load Balancer in the outbound section, it is currently not possible to determine which outbound (or config) is actively handling the traffic.

❗ Problem

In load balancing mode:

Multiple outbounds are configured
Traffic is distributed between them
But there is no visibility into:
Which outbound is currently being used
Which config is active or responding

This makes debugging and monitoring very difficult.
🇮🇷 نسخه فارسی
🚀 درخواست افزودن قابلیت

در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outbound) یا کانفیگ در حال استفاده است.

❗ مشکل

در حالت لود بالانس:

چندین outbound تعریف می‌شود
ترافیک بین آن‌ها پخش می‌شود
اما هیچ راهی برای فهمیدن اینکه:
کدام outbound در حال کار است
کدام کانفیگ فعال است
وجود ندارد

این موضوع باعث سخت شدن عیب‌یابی و مدیریت می‌شود.

How to reproduce the problem

🇬🇧 English Version
🚀 Feature Request

When using Load Balancer in the outbound section, it is currently not possible to determine which outbound (or config) is actively handling the traffic.

❗ Problem

In load balancing mode:

Multiple outbounds are configured
Traffic is distributed between them
But there is no visibility into:
Which outbound is currently being used
Which config is active or responding

This makes debugging and monitoring very difficult.
🇮🇷 نسخه فارسی
🚀 درخواست افزودن قابلیت

در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outbound) یا کانفیگ در حال استفاده است.

❗ مشکل

در حالت لود بالانس:

چندین outbound تعریف می‌شود
ترافیک بین آن‌ها پخش می‌شود
اما هیچ راهی برای فهمیدن اینکه:
کدام outbound در حال کار است
کدام کانفیگ فعال است
وجود ندارد

این موضوع باعث سخت شدن عیب‌یابی و مدیریت می‌شود.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.3.1

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

ubuntu24

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @montiego on GitHub (Jun 21, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5471 ### Describe the bug 🇬🇧 English Version 🚀 Feature Request When using Load Balancer in the outbound section, it is currently not possible to determine which outbound (or config) is actively handling the traffic. ❗ Problem In load balancing mode: Multiple outbounds are configured Traffic is distributed between them But there is no visibility into: Which outbound is currently being used Which config is active or responding This makes debugging and monitoring very difficult. 🇮🇷 نسخه فارسی 🚀 درخواست افزودن قابلیت در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outbound) یا کانفیگ در حال استفاده است. ❗ مشکل در حالت لود بالانس: چندین outbound تعریف می‌شود ترافیک بین آن‌ها پخش می‌شود اما هیچ راهی برای فهمیدن اینکه: کدام outbound در حال کار است کدام کانفیگ فعال است وجود ندارد این موضوع باعث سخت شدن عیب‌یابی و مدیریت می‌شود. ### How to reproduce the problem 🇬🇧 English Version 🚀 Feature Request When using Load Balancer in the outbound section, it is currently not possible to determine which outbound (or config) is actively handling the traffic. ❗ Problem In load balancing mode: Multiple outbounds are configured Traffic is distributed between them But there is no visibility into: Which outbound is currently being used Which config is active or responding This makes debugging and monitoring very difficult. 🇮🇷 نسخه فارسی 🚀 درخواست افزودن قابلیت در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outbound) یا کانفیگ در حال استفاده است. ❗ مشکل در حالت لود بالانس: چندین outbound تعریف می‌شود ترافیک بین آن‌ها پخش می‌شود اما هیچ راهی برای فهمیدن اینکه: کدام outbound در حال کار است کدام کانفیگ فعال است وجود ندارد این موضوع باعث سخت شدن عیب‌یابی و مدیریت می‌شود. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.3.1 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system ubuntu24 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:35:13 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 21, 2026):

The feature you are describing is already present in v3.3.1. The Xray Configs → Balancers section of the panel shows the currently active outbound for every load balancer in real time.

How to navigate there

In the left-hand sidebar, expand Xray Configs and click the Balancers sub-item (or go directly to <your-base-path>/xray#balancer).

What the Balancers table provides

  • Live Target column — the outbound tag currently selected by the balancer's strategy. The tag is shown in blue when the strategy is choosing freely, and in orange when an admin override is in effect. Hovering over the tag shows the full ranked list of candidates returned by the strategy (e.g. for leastPing, all probed outbounds ordered by latency).
  • Override dropdown — forces the balancer to use a specific outbound regardless of strategy. Clearing the selection restores automatic strategy-based selection.
  • A refresh button to re-poll the live state on demand.

This data is sourced directly from xray-core's gRPC RoutingService.GetBalancerInfo RPC (see internal/xray/api.go), served by the POST /panel/api/xray/balancerStatus endpoint (internal/web/controller/xray_setting.go). The "Live Target" column will show — if xray-core is not running; starting or restarting Xray and refreshing the page will populate it.


نسخه فارسی

این قابلیت از قبل در نسخه ۳.۳.۱ وجود دارد. در بخش Xray Configs → Balancers پنل، outbound فعال هر load balancer به‌صورت آنی (real-time) نمایش داده می‌شود.

مسیر دسترسی

از منوی سمت چپ، گزینه Xray Configs را باز کنید و روی Balancers کلیک کنید (یا مستقیماً به <base-path>/xray#balancer بروید).

امکانات جدول Balancers

  • ستون هدف زنده (Live Target): برچسب outbound انتخاب‌شده توسط استراتژی بالانسر را نشان می‌دهد. اگر استراتژی به‌صورت خودکار انتخاب کند، برچسب آبی است؛ اگر admin به‌صورت دستی مشخص کرده باشد، نارنجی نمایش داده می‌شود. با نگه‌داشتن موس روی برچسب، لیست کامل outbound‌های انتخاب‌شده (مثلاً برای leastPing به ترتیب تأخیر) نمایش می‌یابد.
  • ستون Override: اجبار بالانسر به استفاده از یک outbound خاص. با پاک کردن این مقدار، انتخاب خودکار بر اساس استراتژی برمی‌گردد.
  • دکمه رفرش برای به‌روزرسانی دستی وضعیت زنده.

اگر ستون هدف زنده مقدار — نشان می‌دهد، به این معناست که xray-core در حال اجرا نیست؛ پس از راه‌اندازی یا ری‌استارت Xray، صفحه را رفرش کنید تا مقدار نمایش داده شود.


این پاسخ به‌صورت خودکار تولید شده است و یک نگهدارنده پروژه ممکن است پیگیری کند.

<!-- gh-comment-id:4762723711 --> @github-actions[bot] commented on GitHub (Jun 21, 2026): The feature you are describing is already present in v3.3.1. The **Xray Configs → Balancers** section of the panel shows the currently active outbound for every load balancer in real time. **How to navigate there** In the left-hand sidebar, expand **Xray Configs** and click the **Balancers** sub-item (or go directly to `<your-base-path>/xray#balancer`). **What the Balancers table provides** - **Live Target** column — the outbound tag currently selected by the balancer's strategy. The tag is shown in blue when the strategy is choosing freely, and in orange when an admin override is in effect. Hovering over the tag shows the full ranked list of candidates returned by the strategy (e.g. for `leastPing`, all probed outbounds ordered by latency). - **Override** dropdown — forces the balancer to use a specific outbound regardless of strategy. Clearing the selection restores automatic strategy-based selection. - A refresh button to re-poll the live state on demand. This data is sourced directly from xray-core's gRPC `RoutingService.GetBalancerInfo` RPC (see `internal/xray/api.go`), served by the `POST /panel/api/xray/balancerStatus` endpoint (`internal/web/controller/xray_setting.go`). The "Live Target" column will show `—` if xray-core is not running; starting or restarting Xray and refreshing the page will populate it. --- **نسخه فارسی** این قابلیت از قبل در نسخه ۳.۳.۱ وجود دارد. در بخش **Xray Configs → Balancers** پنل، outbound فعال هر load balancer به‌صورت آنی (real-time) نمایش داده می‌شود. **مسیر دسترسی** از منوی سمت چپ، گزینه **Xray Configs** را باز کنید و روی **Balancers** کلیک کنید (یا مستقیماً به `<base-path>/xray#balancer` بروید). **امکانات جدول Balancers** - ستون **هدف زنده (Live Target)**: برچسب outbound انتخاب‌شده توسط استراتژی بالانسر را نشان می‌دهد. اگر استراتژی به‌صورت خودکار انتخاب کند، برچسب آبی است؛ اگر admin به‌صورت دستی مشخص کرده باشد، نارنجی نمایش داده می‌شود. با نگه‌داشتن موس روی برچسب، لیست کامل outbound‌های انتخاب‌شده (مثلاً برای `leastPing` به ترتیب تأخیر) نمایش می‌یابد. - ستون **Override**: اجبار بالانسر به استفاده از یک outbound خاص. با پاک کردن این مقدار، انتخاب خودکار بر اساس استراتژی برمی‌گردد. - دکمه رفرش برای به‌روزرسانی دستی وضعیت زنده. اگر ستون **هدف زنده** مقدار `—` نشان می‌دهد، به این معناست که xray-core در حال اجرا نیست؛ پس از راه‌اندازی یا ری‌استارت Xray، صفحه را رفرش کنید تا مقدار نمایش داده شود. --- *این پاسخ به‌صورت خودکار تولید شده است و یک نگهدارنده پروژه ممکن است پیگیری کند.*
bsakaguchi changed title from [GH-ISSUE #5471] [Bug]: Add Outbound Usage Indicator for Load Balancer (Show Active Outbound/Config)/در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outb… to [GH-ISSUE #5471] [Bug]: Add Outbound Usage Indicator for Load Balancer (Show Active Outbound/Config)/در حال حاضر وقتی از Load Balancer در بخش outbound استفاده می‌کنیم، مشخص نیست که کدام خروجی (Outb… 2026-11-07 20:38:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3824
No description provided.