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

Introduce BackupBatch CRD #886

Closed
tamalsaha opened this issue Aug 30, 2019 · 4 comments
Closed

Introduce BackupBatch CRD #886

tamalsaha opened this issue Aug 30, 2019 · 4 comments

Comments

@tamalsaha
Copy link
Member

We want to take coordinated backup of multiple workloads. So, this CRD will have a []BackupConfigurtion.

This can also issue preBackup & postBackup hooks. https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers

@tamalsaha
Copy link
Member Author

tamalsaha commented Sep 1, 2019

Usecase: Imagine we want to take backup of a sharded mongodb database via VolumeSnapshotter. Each shard is managed by a different Statefulset. Also, some pre and post backup commands needs to be issued. So,

  • A BackupBatch object is created and one BackupConfiguration (no schedule and paused) for each statefulset shard.
  • Add a pre and post backup command to BackupBatch.
  • At the schedule defined in BackupBatch, stash operator performs these steps:
    • execs prebackup command,
    • creates a BackupSession for each BackupConfiguration,
    • waits for all of them to complete and exec a post backup command.

@tamalsaha tamalsaha changed the title Introduce BackupGroup CRD Introduce BackupBatch CRD Sep 1, 2019
@tamalsaha
Copy link
Member Author

tamalsaha commented Sep 1, 2019

  • How to not confuse users with BackupBlueprint with BackupBatch?
  • How to support BackupBatch in BackupBlueprint?

@tamalsaha
Copy link
Member Author

@tamalsaha
Copy link
Member Author

tamalsaha commented Oct 22, 2019

I have created a sample project to test the prober logic in kubelet.
https://github.com/tamalsaha/prober-demo

Things TODO:

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

No branches or pull requests

2 participants