Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc as per SDH finding #101285

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Update doc as per SDH finding #101285

merged 1 commit into from
Oct 24, 2023

Conversation

volodk85
Copy link
Contributor

If customer follows strictly to current Tutorial: Disaster recovery based on bi-directional cross-cluster replication it is possible to fall into recursive auto-following trap.

In order to work properly leader_index_exclusion_patterns must use wildcard rather than template

Working setup (assuming clusterA and clusterB have bi-directional link)

### On cluster A ###
curl -X PUT "localhost:9200/_ccr/auto_follow/logs-generic-default" -H 'Content-Type: application/json' -d'{"remote_cluster":"clusterB","leader_index_patterns":["logs*"],"leader_index_exclusion_patterns":"*-replicated_from_clustera","follow_index_pattern":"{{leader_index}}-replicated_from_clusterb"}'

### On cluster B ###
curl -X PUT "localhost:19200/_ccr/auto_follow/logs-generic-default" -H 'Content-Type: application/json' -d'{"remote_cluster":"clusterA","leader_index_patterns":["logs*"],"leader_index_exclusion_patterns":"*-replicated_from_clusterb","follow_index_pattern":"{{leader_index}}-replicated_from_clustera"}'

### On cluster A (run few times) ###
curl -X POST "localhost:9200/logs-new_a/_doc" -H 'Content-Type: application/json' -d'{}'

### On cluster B (run few times) ###
curl -X POST "localhost:19200/logs-new_b/_doc" -H 'Content-Type: application/json' -d'{}'

curl -X GET "localhost:9200/_cat/indices"
yellow open logs-new_a                          dsK5Rns_Rvym1z145d1Q0w 1 1 3 0 8.9kb 8.9kb 8.9kb
yellow open logs-new_b-replicated_from_clusterb -kvsL0BYSeyOYt10dcfoeg 1 1 4 0 6.1kb 6.1kb 6.1kb

curl -X GET "localhost:19200/_cat/indices"
yellow open logs-new_b                          hacSzTt9R1G5EDU6BbbpaQ 1 1 4 0 11.7kb 11.7kb 11.7kb
yellow open logs-new_a-replicated_from_clustera HuSibqb2SkKr9872JLoUvA 1 1 3 0    6kb    6kb    6kb

@volodk85 volodk85 requested a review from esdocs October 24, 2023 20:58
@github-actions
Copy link
Contributor

Documentation preview:

@volodk85 volodk85 marked this pull request as ready for review October 24, 2023 21:17
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Oct 24, 2023
@volodk85 volodk85 added the >docs General docs changes label Oct 24, 2023
@elasticsearchmachine elasticsearchmachine added Team:Docs Meta label for docs team and removed needs:triage Requires assignment of a team area label labels Oct 24, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@jrodewig jrodewig requested review from a team and removed request for esdocs October 24, 2023 22:05
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@volodk85 volodk85 merged commit 66f7298 into elastic:main Oct 24, 2023
1 check passed
@volodk85 volodk85 deleted the ccr_update_doc branch October 24, 2023 22:17
shainaraskas pushed a commit to shainaraskas/elasticsearch that referenced this pull request May 23, 2024
@shainaraskas
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11
8.10
8.9
8.8

Questions ?

Please refer to the Backport tool documentation

shainaraskas pushed a commit to shainaraskas/elasticsearch that referenced this pull request May 23, 2024
shainaraskas pushed a commit to shainaraskas/elasticsearch that referenced this pull request May 23, 2024
shainaraskas pushed a commit to shainaraskas/elasticsearch that referenced this pull request May 23, 2024
shainaraskas added a commit that referenced this pull request May 23, 2024
(cherry picked from commit 66f7298)

Co-authored-by: Volodymyr Krasnikov <[email protected]>
shainaraskas added a commit that referenced this pull request May 23, 2024
(cherry picked from commit 66f7298)

Co-authored-by: Volodymyr Krasnikov <[email protected]>
shainaraskas added a commit that referenced this pull request May 23, 2024
(cherry picked from commit 66f7298)

Co-authored-by: Volodymyr Krasnikov <[email protected]>
shainaraskas added a commit that referenced this pull request May 23, 2024
(cherry picked from commit 66f7298)

Co-authored-by: Volodymyr Krasnikov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes Team:Docs Meta label for docs team v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants