Increase API timeout to 50s and loading timeout to 60s for large clusters
This commit is contained in:
@@ -1924,18 +1924,18 @@
|
|||||||
// Show fullscreen loading modal
|
// Show fullscreen loading modal
|
||||||
loadingModal = showFullscreenLoading(
|
loadingModal = showFullscreenLoading(
|
||||||
'Analyzing Cluster Resources',
|
'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(() => {
|
timeoutId = setTimeout(() => {
|
||||||
hideFullscreenLoading();
|
hideFullscreenLoading();
|
||||||
showError('metrics-grid', 'Request timeout - API is taking too long to respond');
|
showError('metrics-grid', 'Request timeout - API is taking too long to respond');
|
||||||
}, 30000);
|
}, 60000);
|
||||||
|
|
||||||
// Load cluster status with timeout
|
// Load cluster status with timeout
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutController = setTimeout(() => controller.abort(), 25000);
|
const timeoutController = setTimeout(() => controller.abort(), 50000);
|
||||||
|
|
||||||
const clusterResponse = await fetch('/api/v1/cluster/status', {
|
const clusterResponse = await fetch('/api/v1/cluster/status', {
|
||||||
signal: controller.signal
|
signal: controller.signal
|
||||||
|
|||||||
Reference in New Issue
Block a user