remote-clusters.asciidoc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [[remote-clusters]]
  2. == Remote clusters
  3. You can connect a local cluster to other {es} clusters, known as _remote
  4. clusters_. Remote clusters can be located in different datacenters or
  5. geographic regions, and contain indices or data streams that can be replicated
  6. with {ccr} or searched by a local cluster using {ccs}.
  7. [[remote-clusters-ccr]]
  8. [discrete]
  9. === {ccr-cap}
  10. With <<xpack-ccr,{ccr}>>, you ingest data to an index on a remote cluster. This
  11. _leader_ index is replicated to one or more read-only _follower_ indices on your
  12. local cluster. Creating a multi-cluster architecture with {ccr} enables you to
  13. configure disaster recovery, bring data closer to your users, or establish a
  14. centralized reporting cluster to process reports locally.
  15. [[remote-clusters-ccs]]
  16. [discrete]
  17. === {ccs-cap}
  18. <<modules-cross-cluster-search,{ccs-cap}>> enables you to run a search request
  19. against one or more remote clusters. This capability provides each region with a
  20. global view of all clusters, allowing you to send a search request from a local
  21. cluster and return results from all connected remote clusters. For full {ccs}
  22. capabilities, the local and remote cluster must be on the same
  23. {subscriptions}[subscription level].
  24. [[add-remote-clusters]]
  25. [discrete]
  26. === Add remote clusters
  27. NOTE: The instructions that follow describe how to create a remote connection from a
  28. self-managed cluster. You can also set up {ccs} and {ccr} from an
  29. link:https://www.elastic.co/guide/en/cloud/current/ec-enable-ccs.html[{ess} deployment]
  30. or from an link:https://www.elastic.co/guide/en/cloud-enterprise/current/ece-enable-ccs.html[{ece} deployment].
  31. To add remote clusters, you can choose between
  32. <<remote-clusters-security-models,two security models>> and
  33. <<sniff-proxy-modes,two connection modes>>. Both security models are compatible
  34. with either of the connection modes.
  35. [[remote-clusters-security-models]]
  36. [discrete]
  37. ==== Security models
  38. API key based security model::
  39. For clusters on version 8.14 or later, you can use an API key to authenticate
  40. and authorize cross-cluster operations to a remote cluster. This model offers
  41. administrators of both the local and the remote cluster fine-grained access
  42. controls. <<remote-clusters-api-key>>.
  43. Certificate based security model::
  44. Uses mutual TLS authentication for cross-cluster operations. User authentication
  45. is performed on the local cluster and a user's role names are passed to the
  46. remote cluster. In this model, a superuser on the local cluster gains total read
  47. access to the remote cluster, so it is only suitable for clusters that are in
  48. the same security domain. <<remote-clusters-cert>>.
  49. [[sniff-proxy-modes]]
  50. [discrete]
  51. ==== Connection modes
  52. [[sniff-mode]]
  53. Sniff mode::
  54. In sniff mode, a cluster is created using a name and a list of seed nodes. When
  55. a remote cluster is registered, its cluster state is retrieved from one of the
  56. seed nodes and up to three _gateway nodes_ are selected as part of remote
  57. cluster requests. This mode requires that the gateway node's publish addresses
  58. are accessible by the local cluster.
  59. +
  60. Sniff mode is the default connection mode.
  61. +
  62. [[gateway-nodes-selection]]
  63. The _gateway nodes_ selection depends on the following criteria:
  64. +
  65. * *version*: Remote nodes must be compatible with the cluster they are
  66. registered to.
  67. * *role*: By default, any non-<<master-node,master-eligible>> node can act as a
  68. gateway node. Dedicated master nodes are never selected as gateway nodes.
  69. * *attributes*: You can define the gateway nodes for a cluster by setting
  70. <<cluster-remote-node-attr,`cluster.remote.node.attr.gateway`>> to `true`.
  71. However, such nodes still have to satisfy the two above requirements.
  72. [[proxy-mode]]
  73. Proxy mode::
  74. In proxy mode, a cluster is created using a name and a single proxy address.
  75. When you register a remote cluster, a configurable number of socket connections
  76. are opened to the proxy address. The proxy is required to route those
  77. connections to the remote cluster. Proxy mode does not require remote cluster
  78. nodes to have accessible publish addresses.
  79. +
  80. The proxy mode is not the default connection mode and must be configured.
  81. Proxy mode has the same <<gateway-nodes-selection, version compatibility
  82. requirements>> as sniff mode.
  83. include::cluster/remote-clusters-api-key.asciidoc[]
  84. include::cluster/remote-clusters-cert.asciidoc[]
  85. include::cluster/remote-clusters-migration.asciidoc[]
  86. include::cluster/remote-clusters-settings.asciidoc[]
  87. include::cluster/remote-clusters-troubleshooting.asciidoc[]