From e21c69a503d14fadf78b19bc591343d7952a0497 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 6 Oct 2025 09:59:11 -0300 Subject: [PATCH] Increase API timeout to 50s and loading timeout to 60s for large clusters --- app/static/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 53d967f..d1f6818 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1924,18 +1924,18 @@ // Show fullscreen loading modal loadingModal = showFullscreenLoading( 'Analyzing Cluster Resources', - 'Please wait while we analyze your cluster resources and generate insights...' + 'Please wait while we analyze your cluster resources and generate insights... This may take up to 60 seconds for large clusters.' ); - // Set timeout for loading (30 seconds) + // Set timeout for loading (60 seconds) timeoutId = setTimeout(() => { hideFullscreenLoading(); showError('metrics-grid', 'Request timeout - API is taking too long to respond'); - }, 30000); + }, 60000); // Load cluster status with timeout const controller = new AbortController(); - const timeoutController = setTimeout(() => controller.abort(), 25000); + const timeoutController = setTimeout(() => controller.abort(), 50000); const clusterResponse = await fetch('/api/v1/cluster/status', { signal: controller.signal