From 2aeed9b28f35eed559e924d840dda5ed42e30350 Mon Sep 17 00:00:00 2001 From: AioExp <156529744+monhacer@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:39:41 +0330 Subject: [PATCH] Improve balancer failover responsiveness Reduce observatory intervals and set default strategy to leastPing for faster and more reliable outbound switching. --- web/html/xray.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/html/xray.html b/web/html/xray.html index ebe31f48..c3acc303 100644 --- a/web/html/xray.html +++ b/web/html/xray.html @@ -366,17 +366,17 @@ defaultObservatory: { subjectSelector: [], probeURL: "https://www.google.com/generate_204", - probeInterval: "10m", + probeInterval: "10s", enableConcurrency: true }, defaultBurstObservatory: { subjectSelector: [], pingConfig: { destination: "https://www.google.com/generate_204", - interval: "30m", + interval: "15s", connectivity: "http://connectivitycheck.platform.hicloud.com/generate_204", - timeout: "10s", - sampling: 2 + timeout: "5s", + sampling: 5 } } }, @@ -865,7 +865,7 @@ newTemplateSettings.burstObservatory.subjectSelector = newTemplateSettings.burstObservatory.subjectSelector.filter(s => s != oldTag); } - if (balancer.strategy && balancer.strategy != 'random') { + if (balancer.strategy && balancer.strategy != 'leastPing') { tmpBalancer.strategy = { 'type': balancer.strategy }; @@ -1562,4 +1562,4 @@ }, }); -{{ template "page/body_end" .}} \ No newline at end of file +{{ template "page/body_end" .}}