[DOCS] Add missing setting skip_unavailable to example

The example to delete a remote cluster is missing the `skip_unavailable` setting which results in an error:
```
        "type": "illegal_argument_exception",
        "reason": "missing required setting [cluster.remote.tiny-test.seeds] for setting [cluster.remote.tiny-test.skip_unavailable]"
```
This commit is contained in:
Melori Arellano 2019-04-22 14:38:53 -06:00 committed by James Rodewig
parent cc867e8a5a
commit e6c24e3d2d
1 changed files with 14 additions and 7 deletions

View File

@ -79,6 +79,7 @@ cluster:
cluster_two: cluster_two:
seeds: 127.0.0.1:9301 seeds: 127.0.0.1:9301
transport.compress: true <3> transport.compress: true <3>
skip_unavailable: true <4>
-------------------------------- --------------------------------
<1> `cluster_one` and `cluster_two` are arbitrary _cluster aliases_ representing <1> `cluster_one` and `cluster_two` are arbitrary _cluster aliases_ representing
@ -86,10 +87,12 @@ the connection to each cluster. These names are subsequently used to distinguish
between local and remote indices. between local and remote indices.
<2> A keep-alive ping is configured for `cluster_one`. <2> A keep-alive ping is configured for `cluster_one`.
<3> Compression is explicitly enabled for requests to `cluster_two`. <3> Compression is explicitly enabled for requests to `cluster_two`.
<4> Disconnected remote clusters are optional for `cluster_two`.
For more information about the optional transport settings, see For more information about the optional transport settings, see
<<modules-transport>>. <<modules-transport>>.
If you use <<cluster-update-settings,cluster settings>>, the remote clusters If you use <<cluster-update-settings,cluster settings>>, the remote clusters
are available on every node in the cluster. For example: are available on every node in the cluster. For example:
@ -110,7 +113,8 @@ PUT _cluster/settings
"seeds": [ "seeds": [
"127.0.0.1:9301" "127.0.0.1:9301"
], ],
"transport.compress": true "transport.compress": true,
"skip_unavailable": true
}, },
"cluster_three": { "cluster_three": {
"seeds": [ "seeds": [
@ -160,8 +164,7 @@ NOTE: When the compression or ping schedule settings change, all the existing
node connections must close and re-open, which can cause in-flight requests to node connections must close and re-open, which can cause in-flight requests to
fail. fail.
A remote cluster can be deleted from the cluster settings by setting its seeds A remote cluster can be deleted from the cluster settings by setting its seeds and optional settings to `null` :
to `null`:
[source,js] [source,js]
-------------------------------- --------------------------------
@ -170,8 +173,12 @@ PUT _cluster/settings
"persistent": { "persistent": {
"cluster": { "cluster": {
"remote": { "remote": {
"cluster_three": { "cluster_two": { <1>
"seeds": null <1> "seeds": null,
"skip_unavailable": null,
"transport": {
"compress": null
}
} }
} }
} }
@ -180,8 +187,8 @@ PUT _cluster/settings
-------------------------------- --------------------------------
// CONSOLE // CONSOLE
// TEST[continued] // TEST[continued]
<1> `cluster_three` would be removed from the cluster settings, leaving <1> `cluster_two` would be removed from the cluster settings, leaving
`cluster_one` and `cluster_two` intact. `cluster_one` and `cluster_three` intact.
[float] [float]
[[remote-cluster-settings]] [[remote-cluster-settings]]