elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.71k stars 24.67k forks source link

[Resolve Clusters API] Add option to configure cluster timeout #114020

Open sabarasaba opened 4 hours ago

sabarasaba commented 4 hours ago

Description

In Kibana, we recently implemented the Resolve Cluster API to provide more accurate connection status for clusters in the Remote Clusters UI. However, we've encountered an issue: when a host is unresponsive, the API waits for it to time out, which causes delays.

For example:

// test-a and test-b are connected, but the rest are not
GET /_resolve/cluster/test-a:*,test-b:*,test-c:*,test-d:*,.....

This becomes especially problematic when we make these API calls for 10 clusters simultaneously. The cumulative timeouts significantly increase the UI's loading time, making the loading screen display much longer than expected.

Is there any way we could have a way to configure the timeout used for each cluster?

elasticsearchmachine commented 4 hours ago

Pinging @elastic/es-search (Team:Search)