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

Alter system_auth and repair it before remote restores #54

Open
sync-by-unito bot opened this issue Jun 7, 2021 · 3 comments
Open

Alter system_auth and repair it before remote restores #54

sync-by-unito bot opened this issue Jun 7, 2021 · 3 comments

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Jun 7, 2021

Remote restores will require to keep the existing system_auth keyspace so that existing credentials can be retained. As token ownership will change, auth data could become unavailable after the restore. To avoid this and as preliminary step to a remote restore, the system_auth keyspace should be altered to be replicated on all nodes in the cluster and then repaired.

┆Issue is synchronized with this Jiraserver Feature by Unito
┆Epic: Remote Cluster Restore
┆Issue Number: K8SSAND-527
┆Priority: Medium

@jsanda
Copy link
Contributor

jsanda commented Jun 18, 2021

@adejanovski I have some follow up questions/comments...

If the target cluster expands after the restore, should we continue updating system_auth so it replicates on all nodes? I assume it is not necessary, but I want to run it by you.

We do not yet have any sort of workflow in place within the operators for scheduling a repair. I think we could break this out into a separate ticket especially as it will involves reaper-operator. wdyt?

@adejanovski
Copy link
Contributor

It's not necessary, and I would actually rather reduce the replication back to 3 post restore (but I'm not sure how we could achieve this).
For the repair, I was thinking of a simpler nodetool repair system_auth --full command on a single node which would do the trick as data is replicated on all nodes.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Jun 21, 2021

➤ Jeff DiNoto commented:

  • Inspect cluster to learn how many nodes are present
    • Use management API to alter system_auth keyspace to replicate across all nodes
    • Use management API to trigger repair on system_auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants