OpenSearch/modules
Luca Cavanna 29450de7b5
Cross Cluster Search: make remote clusters optional (#27182)
Today Cross Cluster Search requires at least one node in each remote cluster to be up once the cross cluster search is run. Otherwise the whole search request fails despite some of the data (either local and/or remote) is available. This happens when performing the _search/shards calls to find out which remote shards the query has to be executed on. This scenario is different from shard failures that may happen later on when the query is actually executed, in case e.g. remote shards are missing, which is not going to fail the whole request but rather yield partial results, and the _shards section in the response will indicate that.

This commit introduces a boolean setting per cluster called search.remote.$cluster_alias.skip_if_disconnected, set to false by default, which allows to skip certain clusters if they are down when trying to reach them through a cross cluster search requests. By default all clusters are mandatory.

Scroll requests support such setting too when they are first initiated (first search request with scroll parameter), but subsequent scroll rounds (_search/scroll endpoint) will fail if some of the remote clusters went down meanwhile.

The search API response contains now a new _clusters section, similar to the _shards section, that gets returned whenever one or more clusters were disconnected and got skipped:

"_clusters" : {
    "total" : 3,
    "successful" : 2,
    "skipped" : 1
}
Such section won't be part of the response if no clusters have been skipped.

The per cluster skip_unavailable setting value has also been added to the output of the remote/info API.
2017-11-21 11:41:47 +01:00
..
aggs-composite Add composite aggregator (#26800) 2017-11-16 15:13:36 +01:00
aggs-matrix-stats [Tests] Fix occasional test failure due to two random values being the same 2017-10-27 12:06:16 +02:00
analysis-common Add limits for ngram and shingle settings (#27211) 2017-11-07 08:14:55 -05:00
ingest-common Rest test fixes (#27354) 2017-11-14 11:14:14 +01:00
lang-expression Upgrade to Lucene 7.1 (#27225) 2017-11-02 13:25:33 +00:00
lang-mustache Fix update_by_query's default size parameter (#26784) 2017-09-25 16:25:27 -04:00
lang-painless Upgrade Painless from ANTLR 4.5.1-1 to ANTLR 4.5.3. (#27153) 2017-10-27 11:07:49 -07:00
mapper-extras #26260 Allow ip_range to accept CIDR notation (#27192) 2017-11-03 13:34:48 -06:00
parent-join Enhances exists queries to reduce need for `_field_names` (#26930) 2017-11-01 10:46:59 +00:00
percolator reword comment 2017-11-13 08:00:34 +01:00
reindex Cross Cluster Search: make remote clusters optional (#27182) 2017-11-21 11:41:47 +01:00
repository-url Remove the single argument Environment constructor (#27235) 2017-11-04 13:25:09 +00:00
transport-netty4 Fix issue where pages aren't released (#27459) 2017-11-20 14:53:08 -07:00
tribe Remove Settings#getAsMap() (#26845) 2017-10-04 01:21:38 -06:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00