@@ -36,7 +36,8 @@ async def delete_auto_follow_pattern(
36
36
pretty : t .Optional [bool ] = None ,
37
37
) -> ObjectApiResponse [t .Any ]:
38
38
"""
39
- Deletes auto-follow patterns.
39
+ Delete auto-follow patterns. Delete a collection of cross-cluster replication
40
+ auto-follow patterns.
40
41
41
42
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-delete-auto-follow-pattern.html>`_
42
43
@@ -111,7 +112,10 @@ async def follow(
111
112
body : t .Optional [t .Dict [str , t .Any ]] = None ,
112
113
) -> ObjectApiResponse [t .Any ]:
113
114
"""
114
- Creates a new follower index configured to follow the referenced leader index.
115
+ Create a follower. Create a cross-cluster replication follower index that follows
116
+ a specific leader index. When the API returns, the follower index exists and
117
+ cross-cluster replication starts replicating operations from the leader index
118
+ to the follower index.
115
119
116
120
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-put-follow.html>`_
117
121
@@ -231,8 +235,10 @@ async def follow_info(
231
235
pretty : t .Optional [bool ] = None ,
232
236
) -> ObjectApiResponse [t .Any ]:
233
237
"""
234
- Retrieves information about all follower indices, including parameters and status
235
- for each follower index
238
+ Get follower information. Get information about all cross-cluster replication
239
+ follower indices. For example, the results include follower index names, leader
240
+ index names, replication options, and whether the follower indices are active
241
+ or paused.
236
242
237
243
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-get-follow-info.html>`_
238
244
@@ -273,8 +279,9 @@ async def follow_stats(
273
279
pretty : t .Optional [bool ] = None ,
274
280
) -> ObjectApiResponse [t .Any ]:
275
281
"""
276
- Retrieves follower stats. return shard-level stats about the following tasks
277
- associated with each shard for the specified indices.
282
+ Get follower stats. Get cross-cluster replication follower stats. The API returns
283
+ shard-level stats about the "following tasks" associated with each shard for
284
+ the specified indices.
278
285
279
286
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-get-follow-stats.html>`_
280
287
@@ -327,7 +334,23 @@ async def forget_follower(
327
334
body : t .Optional [t .Dict [str , t .Any ]] = None ,
328
335
) -> ObjectApiResponse [t .Any ]:
329
336
"""
330
- Removes the follower retention leases from the leader.
337
+ Forget a follower. Remove the cross-cluster replication follower retention leases
338
+ from the leader. A following index takes out retention leases on its leader index.
339
+ These leases are used to increase the likelihood that the shards of the leader
340
+ index retain the history of operations that the shards of the following index
341
+ need to run replication. When a follower index is converted to a regular index
342
+ by the unfollow API (either by directly calling the API or by index lifecycle
343
+ management tasks), these leases are removed. However, removal of the leases can
344
+ fail, for example when the remote cluster containing the leader index is unavailable.
345
+ While the leases will eventually expire on their own, their extended existence
346
+ can cause the leader index to hold more history than necessary and prevent index
347
+ lifecycle management from performing some operations on the leader index. This
348
+ API exists to enable manually removing the leases when the unfollow API is unable
349
+ to do so. NOTE: This API does not stop replication by a following index. If you
350
+ use this API with a follower index that is still actively following, the following
351
+ index will add back retention leases on the leader. The only purpose of this
352
+ API is to handle the case of failure to remove the following retention leases
353
+ after the unfollow API is invoked.
331
354
332
355
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-post-forget-follower.html>`_
333
356
@@ -383,8 +406,7 @@ async def get_auto_follow_pattern(
383
406
pretty : t .Optional [bool ] = None ,
384
407
) -> ObjectApiResponse [t .Any ]:
385
408
"""
386
- Gets configured auto-follow patterns. Returns the specified auto-follow pattern
387
- collection.
409
+ Get auto-follow patterns. Get cross-cluster replication auto-follow patterns.
388
410
389
411
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-get-auto-follow-pattern.html>`_
390
412
@@ -428,7 +450,14 @@ async def pause_auto_follow_pattern(
428
450
pretty : t .Optional [bool ] = None ,
429
451
) -> ObjectApiResponse [t .Any ]:
430
452
"""
431
- Pauses an auto-follow pattern
453
+ Pause an auto-follow pattern. Pause a cross-cluster replication auto-follow pattern.
454
+ When the API returns, the auto-follow pattern is inactive. New indices that are
455
+ created on the remote cluster and match the auto-follow patterns are ignored.
456
+ You can resume auto-following with the resume auto-follow pattern API. When it
457
+ resumes, the auto-follow pattern is active again and automatically configures
458
+ follower indices for newly created indices on the remote cluster that match its
459
+ patterns. Remote indices that were created while the pattern was paused will
460
+ also be followed, unless they have been deleted or closed in the interim.
432
461
433
462
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-pause-auto-follow-pattern.html>`_
434
463
@@ -469,8 +498,10 @@ async def pause_follow(
469
498
pretty : t .Optional [bool ] = None ,
470
499
) -> ObjectApiResponse [t .Any ]:
471
500
"""
472
- Pauses a follower index. The follower index will not fetch any additional operations
473
- from the leader index.
501
+ Pause a follower. Pause a cross-cluster replication follower index. The follower
502
+ index will not fetch any additional operations from the leader index. You can
503
+ resume following with the resume follower API. You can pause and resume a follower
504
+ index to change the configuration of the following task.
474
505
475
506
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-post-pause-follow.html>`_
476
507
@@ -545,9 +576,14 @@ async def put_auto_follow_pattern(
545
576
body : t .Optional [t .Dict [str , t .Any ]] = None ,
546
577
) -> ObjectApiResponse [t .Any ]:
547
578
"""
548
- Creates a new named collection of auto-follow patterns against a specified remote
549
- cluster. Newly created indices on the remote cluster matching any of the specified
550
- patterns will be automatically configured as follower indices.
579
+ Create or update auto-follow patterns. Create a collection of cross-cluster replication
580
+ auto-follow patterns for a remote cluster. Newly created indices on the remote
581
+ cluster that match any of the patterns are automatically configured as follower
582
+ indices. Indices on the remote cluster that were created before the auto-follow
583
+ pattern was created will not be auto-followed even if they match the pattern.
584
+ This API can also be used to update auto-follow patterns. NOTE: Follower indices
585
+ that were configured automatically before updating an auto-follow pattern will
586
+ remain unchanged even if they do not match against the new patterns.
551
587
552
588
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-put-auto-follow-pattern.html>`_
553
589
@@ -671,7 +707,11 @@ async def resume_auto_follow_pattern(
671
707
pretty : t .Optional [bool ] = None ,
672
708
) -> ObjectApiResponse [t .Any ]:
673
709
"""
674
- Resumes an auto-follow pattern that has been paused
710
+ Resume an auto-follow pattern. Resume a cross-cluster replication auto-follow
711
+ pattern that was paused. The auto-follow pattern will resume configuring following
712
+ indices for newly created indices that match its patterns on the remote cluster.
713
+ Remote indices created while the pattern was paused will also be followed unless
714
+ they have been deleted or closed in the interim.
675
715
676
716
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-resume-auto-follow-pattern.html>`_
677
717
@@ -736,7 +776,11 @@ async def resume_follow(
736
776
body : t .Optional [t .Dict [str , t .Any ]] = None ,
737
777
) -> ObjectApiResponse [t .Any ]:
738
778
"""
739
- Resumes a follower index that has been paused
779
+ Resume a follower. Resume a cross-cluster replication follower index that was
780
+ paused. The follower index could have been paused with the pause follower API.
781
+ Alternatively it could be paused due to replication that cannot be retried due
782
+ to failures during following tasks. When this API returns, the follower index
783
+ will resume fetching operations from the leader index.
740
784
741
785
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-post-resume-follow.html>`_
742
786
@@ -818,7 +862,8 @@ async def stats(
818
862
pretty : t .Optional [bool ] = None ,
819
863
) -> ObjectApiResponse [t .Any ]:
820
864
"""
821
- Gets all stats related to cross-cluster replication.
865
+ Get cross-cluster replication stats. This API returns stats about auto-following
866
+ and the same shard-level stats as the get follower stats API.
822
867
823
868
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-get-stats.html>`_
824
869
"""
@@ -854,8 +899,13 @@ async def unfollow(
854
899
pretty : t .Optional [bool ] = None ,
855
900
) -> ObjectApiResponse [t .Any ]:
856
901
"""
857
- Stops the following task associated with a follower index and removes index metadata
858
- and settings associated with cross-cluster replication.
902
+ Unfollow an index. Convert a cross-cluster replication follower index to a regular
903
+ index. The API stops the following task associated with a follower index and
904
+ removes index metadata and settings associated with cross-cluster replication.
905
+ The follower index must be paused and closed before you call the unfollow API.
906
+ NOTE: Currently cross-cluster replication does not support converting an existing
907
+ regular index to a follower index. Converting a follower index to a regular index
908
+ is an irreversible operation.
859
909
860
910
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/ccr-post-unfollow.html>`_
861
911
0 commit comments