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

Create service and CLI stub for fast vnodes restore. #4200

Open
karol-kokoszka opened this issue Jan 13, 2025 · 0 comments · May be fixed by #4219
Open

Create service and CLI stub for fast vnodes restore. #4200

karol-kokoszka opened this issue Jan 13, 2025 · 0 comments · May be fixed by #4219
Assignees
Milestone

Comments

@karol-kokoszka
Copy link
Collaborator

The service can be located in /pkg/service/<new_restore_service_name> .

Tasks in Scylla Manager are started by the scheduler.

Every "task" service must implement Runner interface

type Runner interface {

that is used by the scheduler to trigger the task.

The stub must consist of the Runner implementation, constructor for the service accepting source-cluster-id, snapshot-id, nodes-mapping and the main method supervising the fast vnodes restore process.

The stub must be connected to the new CLI similar to (

restoreCmd := restore.NewCommand(&client)
) allowing to trigger the 1-1 restore.

The goal of this task is to have working (but not final) CLI that schedules the 1-1 vnodes restore to start immediately. The main (supervising) restore method from the service stub can just log that "Not yet implemented".

@karol-kokoszka karol-kokoszka added this to the 1-1 Restore milestone Jan 13, 2025
@karol-kokoszka karol-kokoszka changed the title Create service and CLI stub for fast nodes restore. Create service and CLI stub for fast vnodes restore. Jan 13, 2025
VAveryanov8 added a commit that referenced this issue Jan 20, 2025
This adds a new task type for fast vnode restore.

Fixes: #4200
VAveryanov8 added a commit that referenced this issue Jan 20, 2025
This introduces new cli command for fast vnode restore procedure.

Fixes: #4200
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

Successfully merging a pull request may close this issue.

2 participants