You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable soft deletes on indices created on versions of
217
-
{es} between 6.5.0 and 7.0.0, set <<ccr-index-soft-deletes,`index.soft_deletes.enabled`>> to `true`.
165
+
To follow an index, it must have been created with
166
+
<<ccr-leader-requirements,soft deletes>> enabled. If the index doesn’t have
167
+
soft deletes enabled, you must reindex it and use the new index as the leader
168
+
index. Soft deletes are enabled by default on new indices
169
+
created with {es} 7.0.0 and later.
218
170
219
171
[[ccr-getting-started-follower-index]]
220
-
==== Create a follower index
221
-
When you create a {kibana-ref}/managing-cross-cluster-replication.html#_create_specific_follower_indices[follower index], you
222
-
must reference the
223
-
<<ccr-getting-started-remote-cluster,remote cluster>> and the
224
-
<<ccr-getting-started-leader-index,leader index>> that you created in the remote
225
-
cluster.
172
+
==== Create a follower index to replicate a specific index
173
+
When you create a follower index, you reference the remote cluster and the
174
+
leader index in your remote cluster.
226
175
227
-
To create a follower index, access {kib} and go to
228
-
*Management > Stack Management*. In the side navigation, select
229
-
*Cross-Cluster Replication* and choose the *Follower Indices* tab.
176
+
To create a follower index from Stack Management in {kib}:
230
177
231
-
. Choose the remote cluster containing the index you want to replicate, which
232
-
is `leader` if you are following the tutorial.
233
-
. Enter the name of the leader index, which is `server-metrics` if you are
234
-
following the tutorial.
178
+
. Select *Cross-Cluster Replication* in the side navigation and choose the
179
+
*Follower Indices* tab.
180
+
. Choose the cluster (ClusterA) containing the leader index you want to
181
+
replicate.
182
+
. Enter the name of the leader index, which is
183
+
`kibana_sample_data_ecommerce` if you are following the tutorial.
184
+
. Enter a name for your follower index, such as `follower-kibana-sample-data`.
235
185
236
186
image::images/ccr-add-follower-index.png["Adding a follower index named server-metrics in {kib}"]
237
187
238
-
The follower index is initialized using the
188
+
{es} initializes the follower using the
239
189
<<ccr-remote-recovery, remote recovery>>
240
190
process, which transfers the existing Lucene segment files from the leader
241
191
index to the follower index. The index status changes to *Paused*. When the
242
192
remote recovery process is complete, the index following begins and the status
243
193
changes to *Active*.
244
194
245
-
When you index documents into your leader index, the documents are replicated
195
+
When you index documents into your leader index, {es} replicates the documents
246
196
in the follower index.
247
197
248
198
[role="screenshot"]
@@ -252,9 +202,8 @@ image::images/ccr-follower-index.png["The Cross-Cluster Replication page in {kib
252
202
.API example
253
203
====
254
204
Use the <<ccr-put-follow,create follower API>> to create follower indices.
255
-
When you create a follower index, you must reference the
256
-
<<ccr-getting-started-remote-cluster,remote cluster>> and the
257
-
<<ccr-getting-started-leader-index,leader index>> that you created in the
205
+
When you create a follower index, you must reference the remote cluster and the
206
+
leader index that you created in the
258
207
remote cluster.
259
208
260
209
When initiating the follower request, the response returns before the
@@ -304,37 +253,35 @@ POST /server-metrics-follower/_ccr/unfollow
304
253
====
305
254
306
255
[[ccr-getting-started-auto-follow]]
307
-
==== Automatically create follower indices
308
-
Create <<ccr-auto-follow,auto-follow patterns>> to automatically follow time
309
-
series indices that are periodically created in a remote cluster (such as daily
310
-
{beats} indices).
256
+
==== Create an auto-follow pattern to replicate time series indices
257
+
You use <<ccr-auto-follow,auto-follow patterns>> to automatically create new
258
+
followers for rolling time series indices. Whenever the name of a new index on
259
+
the remote cluster matches the auto-follow pattern, a corresponding follower
260
+
index is added to the local cluster.
311
261
312
-
With an auto-follow pattern, you reference the
313
-
<<ccr-getting-started-remote-cluster,remote cluster>> connected to your
314
-
local cluster. You must also specify a collection of patterns that match the
315
-
indices you want to automatically follow.
262
+
An auto-follow pattern specifies the remote cluster you want to replicate from,
263
+
and one or more index patterns that specify the rolling time series indices you
264
+
want to replicate.
316
265
317
266
// tag::ccr-create-auto-follow-pattern-tag[]
318
-
To create follower indices from an {kibana-ref}/managing-cross-cluster-replication.html#_create_follower_indices_from_an_auto_follow_pattern[auto-follow pattern],
319
-
access {kib} on your remote cluster and go to
320
-
*Management > Stack Management*. In the side navigation, select
321
-
*Cross Cluster Replication* and choose the *Auto-follow patterns* tab.
322
-
323
-
[role="screenshot"]
324
-
image::images/auto-follow-patterns.png["The Auto-follow patterns page in {kib}"]
325
-
326
-
* Enter a name for the auto-follow pattern. For this tutorial, enter `beats`
327
-
as the name.
328
-
* Choose the remote cluster containing the index you want to replicate, which
329
-
is `leader` if you are following the tutorial.
330
-
* Enter one or more index patterns that identify the indices you want to
331
-
replicate from the remote cluster. For this tutorial, enter
332
-
`metricbeat-*,packetbeat-*` as the index pattern.
333
-
* Enter *copy-* as the prefix to apply to the names of the follower indices so
267
+
To create an auto-follow pattern from Stack Management in {kib}:
268
+
269
+
. Select *Cross Cluster Replication* in the side navigation and choose the
270
+
*Auto-follow patterns* tab.
271
+
. Enter a name for the auto-follow pattern, such as `beats`.
272
+
. Choose the remote cluster that contains the index you want to replicate,
273
+
which in the example scenario is Cluster A.
274
+
. Enter one or more index patterns that identify the indices you want to
275
+
replicate from the remote cluster. For example, enter
276
+
`metricbeat-* packetbeat-*` to automatically create followers for {metricbeat} and {packetbeat} indices.
277
+
. Enter *follower-* as the prefix to apply to the names of the follower indices so
334
278
you can more easily identify replicated indices.
335
279
336
280
As new indices matching these patterns are
337
-
created, they are replicated to the follower indices.
281
+
created on the remote, {es} automatically replicates them to local follower indices.
282
+
283
+
[role="screenshot"]
284
+
image::images/auto-follow-patterns.png["The Auto-follow patterns page in {kib}"]
0 commit comments