remote-clusters-settings.asciidoc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. [[remote-clusters-settings]]
  2. === Remote cluster settings
  3. The following settings apply to both <<sniff-mode,sniff mode>> and
  4. <<proxy-mode,proxy mode>>. Settings that are specific to sniff mode and proxy
  5. mode are described separately.
  6. `cluster.remote.<cluster_alias>.mode`::
  7. The mode used for a remote cluster connection. The only supported modes are
  8. `sniff` and `proxy`.
  9. `cluster.remote.initial_connect_timeout`::
  10. The time to wait for remote connections to be established when the node
  11. starts. The default is `30s`.
  12. `remote_cluster_client` <<node-roles,role>>::
  13. By default, any node in the cluster can act as a cross-cluster client and
  14. connect to remote clusters. To prevent a node from connecting to remote
  15. clusters, specify the <<node-roles,node.roles>> setting in `elasticsearch.yml`
  16. and exclude `remote_cluster_client` from the listed roles. Search requests
  17. targeting remote clusters must be sent to a node that is allowed to act as a
  18. cross-cluster client. Other features such as {ml} <<general-ml-settings,data
  19. feeds>>, <<general-transform-settings,transforms>>, and
  20. <<ccr-getting-started-tutorial,{ccr}>> require the `remote_cluster_client` role.
  21. `cluster.remote.<cluster_alias>.skip_unavailable`::
  22. Per cluster boolean setting that allows to skip specific clusters when no
  23. nodes belonging to them are available and they are the target of a remote
  24. cluster request. Default is `false`, meaning that all clusters are mandatory
  25. by default, but they can selectively be made optional by setting this setting
  26. to `true`.
  27. `cluster.remote.<cluster_alias>.transport.ping_schedule`::
  28. Sets the time interval between regular application-level ping messages that
  29. are sent to try and keep remote cluster connections alive. If set to `-1`,
  30. application-level ping messages to this remote cluster are not sent. If
  31. unset, application-level ping messages are sent according to the global
  32. `transport.ping_schedule` setting, which defaults to `-1` meaning that pings
  33. are not sent. It is preferable to correctly configure TCP keep-alives instead
  34. of configuring a `ping_schedule`, because TCP keep-alives are handled by the
  35. operating system and not by {es}. By default {es} enables TCP keep-alives on
  36. remote cluster connections. Remote cluster connections are transport
  37. connections so the `transport.tcp.*` <<transport-settings,advanced settings>>
  38. regarding TCP keep-alives apply to them.
  39. `cluster.remote.<cluster_alias>.transport.compress`::
  40. Per cluster setting that enables you to configure compression for requests
  41. to a specific remote cluster. This setting impacts only requests
  42. sent to the remote cluster. If the inbound request is compressed,
  43. Elasticsearch compresses the response. The setting options are `true`,
  44. `indexing_data`, and `false`. If unset, the global `transport.compress` is
  45. used as the fallback setting.
  46. `cluster.remote.<cluster_alias>.transport.compression_scheme`::
  47. Per cluster setting that enables you to configure compression scheme for
  48. requests to a specific remote cluster. This setting impacts only requests
  49. sent to the remote cluster. If an inbound request is compressed, {es}
  50. compresses the response using the same compression scheme. The setting options
  51. are `deflate` and `lz4`. If unset, the global `transport.compression_scheme`
  52. is used as the fallback setting.
  53. [[remote-cluster-sniff-settings]]
  54. ==== Sniff mode remote cluster settings
  55. `cluster.remote.<cluster_alias>.seeds`::
  56. The list of seed nodes used to sniff the remote cluster state.
  57. `cluster.remote.<cluster_alias>.node_connections`::
  58. The number of gateway nodes to connect to for this remote cluster. The default
  59. is `3`.
  60. [[cluster-remote-node-attr]]
  61. `cluster.remote.node.attr`::
  62. A node attribute to filter out nodes that are eligible as a gateway node in
  63. the remote cluster. For instance a node can have a node attribute
  64. `node.attr.gateway: true` such that only nodes with this attribute will be
  65. connected to if `cluster.remote.node.attr` is set to `gateway`.
  66. [[remote-cluster-proxy-settings]]
  67. ==== Proxy mode remote cluster settings
  68. `cluster.remote.<cluster_alias>.proxy_address`::
  69. The address used for all remote connections.
  70. `cluster.remote.<cluster_alias>.proxy_socket_connections`::
  71. The number of socket connections to open per remote cluster. The default is
  72. `18`.
  73. [role="xpack"]
  74. `cluster.remote.<cluster_alias>.server_name`::
  75. An optional hostname string which is sent in the `server_name` field of
  76. the TLS Server Name Indication extension if
  77. <<encrypt-internode-communication,TLS is enabled>>. The TLS transport will fail to open
  78. remote connections if this field is not a valid hostname as defined by the
  79. TLS SNI specification.