Skip to content

Commit f722add

Browse files
committed
[DOCS] Edit CCR operation summaries
1 parent d9bf86f commit f722add

File tree

14 files changed

+74
-0
lines changed

14 files changed

+74
-0
lines changed

specification/_doc_ids/table.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ cat-thread-pool,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}
4545
cat-trained-model,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-trained-model.html
4646
cat-transforms,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat-transforms.html
4747
cat,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/cat.html
48+
ccr,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/xpack-ccr.html
49+
ccr-auto-follow,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ccr-auto-follow.html
4850
ccr-delete-auto-follow-pattern,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ccr-delete-auto-follow-pattern.html
4951
ccr-get-auto-follow-pattern,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ccr-get-auto-follow-pattern.html
5052
ccr-get-follow-info,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/ccr-get-follow-info.html

specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Delete auto-follow patterns.
25+
* Delete a collection of cross-cluster replication auto-follow patterns.
2426
* @rest_spec_name ccr.delete_auto_follow_pattern
2527
* @availability stack since=6.5.0 stability=stable
2628
* @doc_id ccr-delete-auto-follow-pattern
29+
* @ext_doc_id ccr-auto-follow
2730
*/
2831
export interface Request extends RequestBase {
2932
path_parts: {

specification/ccr/follow/CreateFollowIndexRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import { integer, long } from '@_types/Numeric'
2424
import { Duration } from '@_types/Time'
2525

2626
/**
27+
* Create a follower.
28+
* Create a cross-cluster replication follower index that follows a specific leader index.
29+
* When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.
2730
* @rest_spec_name ccr.follow
2831
* @availability stack since=6.5.0 stability=stable
2932
* @doc_id ccr-put-follow

specification/ccr/follow_info/FollowInfoRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { Indices } from '@_types/common'
2222

2323
/**
24+
* Get follower information.
25+
* Get information about all cross-cluster replication follower indices.
26+
* For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused.
2427
* @rest_spec_name ccr.follow_info
2528
* @availability stack since=6.7.0 stability=stable
2629
* @doc_id ccr-get-follow-info
30+
* @ext_doc_id ccr
2731
*/
2832
export interface Request extends RequestBase {
2933
path_parts: {

specification/ccr/follow_stats/FollowIndexStatsRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ import { RequestBase } from '@_types/Base'
2121
import { Indices } from '@_types/common'
2222

2323
/**
24+
* Get follower stats.
25+
* Get cross-cluster replication follower stats.
26+
* The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices.
2427
* @rest_spec_name ccr.follow_stats
2528
* @availability stack since=6.5.0 stability=stable
2629
* @doc_id ccr-get-follow-stats
30+
* @ext_doc_id ccr
2731
*/
2832
export interface Request extends RequestBase {
2933
path_parts: {

specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,22 @@ import { RequestBase } from '@_types/Base'
2121
import { IndexName, Uuid } from '@_types/common'
2222

2323
/**
24+
* Forget a follower.
25+
* Remove the cross-cluster replication follower retention leases from the leader.
26+
*
27+
* A following index takes out retention leases on its leader index.
28+
* These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.
29+
* When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.
30+
* However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable.
31+
* While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index.
32+
* This API exists to enable manually removing the leases when the unfollow API is unable to do so.
33+
*
34+
* NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader.
35+
* The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked.
2436
* @rest_spec_name ccr.forget_follower
2537
* @availability stack since=6.7.0 stability=stable
2638
* @doc_id ccr-post-forget-follower
39+
* @ext_doc_id ccr
2740
*/
2841
export interface Request extends RequestBase {
2942
path_parts: {

specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Get auto-follow patterns.
25+
* Get cross-cluster replication auto-follow patterns.
2426
* @rest_spec_name ccr.get_auto_follow_pattern
2527
* @availability stack since=6.5.0 stability=stable
2628
* @doc_id ccr-get-auto-follow-pattern
29+
* @ext_doc_id ccr-auto-follow
2730
*/
2831
export interface Request extends RequestBase {
2932
path_parts: {

specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ import { RequestBase } from '@_types/Base'
2121
import { Name } from '@_types/common'
2222

2323
/**
24+
* Pause an auto-follow pattern.
25+
* Pause a cross-cluster replication auto-follow pattern.
26+
* When the API returns, the auto-follow pattern is inactive.
27+
* New indices that are created on the remote cluster and match the auto-follow patterns are ignored.
28+
*
29+
* You can resume auto-following with the resume auto-follow pattern API.
30+
* When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns.
31+
* Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim.
2432
* @rest_spec_name ccr.pause_auto_follow_pattern
2533
* @availability stack since=7.5.0 stability=stable
2634
* @doc_id ccr-pause-auto-follow-pattern
35+
* @ext_doc_id ccr-auto-follow
2736
*/
2837
export interface Request extends RequestBase {
2938
path_parts: {

specification/ccr/pause_follow/PauseFollowIndexRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { IndexName } from '@_types/common'
2222

2323
/**
24+
* Pause a follower.
25+
* Pause a cross-cluster replication follower index.
26+
* The follower index will not fetch any additional operations from the leader index.
27+
* You can resume following with the resume follower API.
28+
* You can pause and resume a follower index to change the configuration of the following task.
2429
* @rest_spec_name ccr.pause_follow
2530
* @availability stack since=6.5.0 stability=stable
2631
* @doc_id ccr-post-pause-follow

specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,17 @@ import { integer } from '@_types/Numeric'
2525
import { Duration } from '@_types/Time'
2626

2727
/**
28+
* Create or update auto-follow patterns.
29+
* Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
30+
* Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.
31+
* Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.
32+
*
33+
* This API can also be used to update auto-follow patterns.
34+
* NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns.
2835
* @rest_spec_name ccr.put_auto_follow_pattern
2936
* @availability stack since=6.5.0 stability=stable
3037
* @doc_id ccr-put-auto-follow-pattern
38+
* @ext_doc_id ccr-auto-follow
3139
*/
3240
export interface Request extends RequestBase {
3341
path_parts: {

0 commit comments

Comments
 (0)