mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
Add more cross-links about sniff/proxy modes (#112079)
The info about remote cluster connection modes is a little disjointed. This commit adds some cross-links between the sections to help users find more relevant information.
This commit is contained in:
parent
f481b0722b
commit
615e084617
2 changed files with 44 additions and 25 deletions
|
@ -6,7 +6,10 @@ mode are described separately.
|
||||||
|
|
||||||
`cluster.remote.<cluster_alias>.mode`::
|
`cluster.remote.<cluster_alias>.mode`::
|
||||||
The mode used for a remote cluster connection. The only supported modes are
|
The mode used for a remote cluster connection. The only supported modes are
|
||||||
`sniff` and `proxy`.
|
`sniff` and `proxy`. The default is `sniff`. See <<sniff-proxy-modes>> for
|
||||||
|
further information about these modes, and <<remote-cluster-sniff-settings>>
|
||||||
|
and <<remote-cluster-proxy-settings>> for further information about their
|
||||||
|
settings.
|
||||||
|
|
||||||
`cluster.remote.initial_connect_timeout`::
|
`cluster.remote.initial_connect_timeout`::
|
||||||
|
|
||||||
|
@ -97,6 +100,11 @@ you configure the remotes.
|
||||||
[[remote-cluster-sniff-settings]]
|
[[remote-cluster-sniff-settings]]
|
||||||
==== Sniff mode remote cluster settings
|
==== Sniff mode remote cluster settings
|
||||||
|
|
||||||
|
To use <<sniff-mode,sniff mode>> to connect to a remote cluster, set
|
||||||
|
`cluster.remote.<cluster_alias>.mode: sniff` and then configure the following
|
||||||
|
settings. You may also leave `cluster.remote.<cluster_alias>.mode` unset since
|
||||||
|
`sniff` is the default mode.
|
||||||
|
|
||||||
`cluster.remote.<cluster_alias>.seeds`::
|
`cluster.remote.<cluster_alias>.seeds`::
|
||||||
|
|
||||||
The list of seed nodes used to sniff the remote cluster state.
|
The list of seed nodes used to sniff the remote cluster state.
|
||||||
|
@ -117,6 +125,10 @@ you configure the remotes.
|
||||||
[[remote-cluster-proxy-settings]]
|
[[remote-cluster-proxy-settings]]
|
||||||
==== Proxy mode remote cluster settings
|
==== Proxy mode remote cluster settings
|
||||||
|
|
||||||
|
To use <<proxy-mode,proxy mode>> to connect to a remote cluster, set
|
||||||
|
`cluster.remote.<cluster_alias>.mode: proxy` and then configure the following
|
||||||
|
settings.
|
||||||
|
|
||||||
`cluster.remote.<cluster_alias>.proxy_address`::
|
`cluster.remote.<cluster_alias>.proxy_address`::
|
||||||
|
|
||||||
The address used for all remote connections.
|
The address used for all remote connections.
|
||||||
|
|
|
@ -63,15 +63,17 @@ the same security domain. <<remote-clusters-cert>>.
|
||||||
|
|
||||||
[[sniff-mode]]
|
[[sniff-mode]]
|
||||||
Sniff mode::
|
Sniff mode::
|
||||||
In sniff mode, a cluster is registered with a name of your choosing and a list
|
In sniff mode, a cluster alias is registered with a name of your choosing and a
|
||||||
of addresses of _seed_ nodes. When you register a remote cluster using sniff
|
list of addresses of _seed_ nodes specified with the
|
||||||
mode, {es} retrieves from one of the seed nodes the addresses of up to three
|
`cluster.remote.<cluster_alias>.seeds` setting. When you register a remote
|
||||||
_gateway nodes_. Each `remote_cluster_client` node in the local {es} cluster
|
cluster using sniff mode, {es} retrieves from one of the seed nodes the
|
||||||
then opens several TCP connections to the publish addresses of the gateway
|
addresses of up to three _gateway nodes_. Each `remote_cluster_client` node in
|
||||||
nodes. This mode therefore requires that the gateway nodes' publish addresses
|
the local {es} cluster then opens several TCP connections to the publish
|
||||||
are accessible to nodes in the local cluster.
|
addresses of the gateway nodes. This mode therefore requires that the gateway
|
||||||
|
nodes' publish addresses are accessible to nodes in the local cluster.
|
||||||
+
|
+
|
||||||
Sniff mode is the default connection mode.
|
Sniff mode is the default connection mode. See <<remote-cluster-sniff-settings>>
|
||||||
|
for more information about configuring sniff mode.
|
||||||
+
|
+
|
||||||
[[gateway-nodes-selection]]
|
[[gateway-nodes-selection]]
|
||||||
The _gateway nodes_ selection depends on the following criteria:
|
The _gateway nodes_ selection depends on the following criteria:
|
||||||
|
@ -86,18 +88,23 @@ However, such nodes still have to satisfy the two above requirements.
|
||||||
|
|
||||||
[[proxy-mode]]
|
[[proxy-mode]]
|
||||||
Proxy mode::
|
Proxy mode::
|
||||||
In proxy mode, a cluster is registered with a name of your choosing and the
|
In proxy mode, a cluster alias is registered with a name of your choosing and
|
||||||
address of a TCP (layer 4) reverse proxy which you must configure to route
|
the address of a TCP (layer 4) reverse proxy specified with the
|
||||||
connections to the nodes of the remote cluster. When you register a remote
|
`cluster.remote.<cluster_alias>.proxy_address` setting. You must configure this
|
||||||
cluster using proxy mode, {es} opens several TCP connections to the proxy
|
proxy to route connections to one or more nodes of the remote cluster. When you
|
||||||
address and uses these connections to communicate with the remote cluster. In
|
register a remote cluster using proxy mode, {es} opens several TCP connections
|
||||||
proxy mode {es} disregards the publish addresses of the remote cluster nodes
|
to the proxy address and uses these connections to communicate with the remote
|
||||||
which means that the publish addresses of the remote cluster nodes need not be
|
cluster. In proxy mode {es} disregards the publish addresses of the remote
|
||||||
accessible to the local cluster.
|
cluster nodes which means that the publish addresses of the remote cluster
|
||||||
|
nodes need not be accessible to the local cluster.
|
||||||
+
|
+
|
||||||
Proxy mode is not the default connection mode, so you must configure it
|
Proxy mode is not the default connection mode, so you must set
|
||||||
explicitly if desired. Proxy mode has the same <<gateway-nodes-selection,
|
`cluster.remote.<cluster_alias>.mode: proxy` to use it. See
|
||||||
version compatibility requirements>> as sniff mode.
|
<<remote-cluster-proxy-settings>> for more information about configuring proxy
|
||||||
|
mode.
|
||||||
|
+
|
||||||
|
Proxy mode has the same <<gateway-nodes-selection, version compatibility
|
||||||
|
requirements>> as sniff mode.
|
||||||
|
|
||||||
include::cluster/remote-clusters-api-key.asciidoc[]
|
include::cluster/remote-clusters-api-key.asciidoc[]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue