As the total_shards=35720, which equals the total number shards of the cluster, we know that all the indices are aggregated by the query.
We know that the query is from the "Index_Patterns".
It seems that we send the query to get the indices list of target cluster, when the target cluster is very large, this query will become very dangerous.
Describe the solution you'd like
If we should add the api in the opensearch code core to get indices list of the ccs target cluster?
Is your feature request related to a problem? Please describe.
and create a new index-patterns in the dashboard, I find that search thread pool is immediately exhausted in the target cluster:
And search slow log is as follows:
As the
total_shards
=35720, which equals the total number shards of the cluster, we know that all the indices are aggregated by the query.We know that the query is from the "Index_Patterns".
It seems that we send the query to get the indices list of target cluster, when the target cluster is very large, this query will become very dangerous.
Describe the solution you'd like If we should add the api in the opensearch code core to get indices list of the ccs target cluster?