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

[Discuss] How ccr replicated index integrate with ism policy correctly #1364

Open
wdongyu opened this issue Apr 11, 2024 · 1 comment
Open
Labels
bug Something isn't working untriaged

Comments

@wdongyu
Copy link

wdongyu commented Apr 11, 2024

What is the current behavior?
I create some auto-follow tasks to replicate indices between two clusters, meanwhile I set up separate ISM policies to manage leader and follower indices.

The policy for follower indices transit to "delete" state in several days, obviously it will fail due to the block created by CCR:index [follower-000001] blocked by: [FORBIDDEN/1000/index read-only(cross-cluster-replication)]

What is the expected behavior?
At present, leader indices will be deleted regularly but follower indices are not.

If CCR ease the limitation and allow follower indices to be deleted, another question comes: the follower indices will be created again due to the auto-follow tasks(because leader indices have not been deleted). So we need to confirm that matching leader indices have been already deleted before deleting the follower indices? That really confuses me.

So, what's the expected way to use CCR and ISM policy? Any help will be thankful

What is your host/environment?

  • Version:Any
  • Plugins:CCR
@wdongyu wdongyu added bug Something isn't working untriaged labels Apr 11, 2024
@wdongyu
Copy link
Author

wdongyu commented Apr 11, 2024

I have found a better way from an ism issue that, if an "unfollow" action can be implemented, then ISM will check regularly if the ccr task is done(condition may include: leader indices are deleted or other). Once done, it will allow the follower cluster to stop the task, clean the cluster state and etc, and follower indices finally transit to "delete" state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant