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

[ENH] - Scheduled Nebari Backups #2297

Closed
1 of 2 tasks
pt247 opened this issue Mar 7, 2024 · 2 comments
Closed
1 of 2 tasks

[ENH] - Scheduled Nebari Backups #2297

pt247 opened this issue Mar 7, 2024 · 2 comments
Labels
area: backup-and-restore 💾 All items related to backup and restore

Comments

@pt247
Copy link
Contributor

pt247 commented Mar 7, 2024

Feature description

We want to expand the existing configuration to allow it to specify backup parameters.
Backing up Nebari includes the following:

  1. KeyCloak user details.
  2. User data
  3. Conda environments

Interface

backup
  location: <BACKUP LOCATION>>
  schedule: <CRON EXPRESSION>
  retention_period: <NUMBER OF DAYS>

Implementation

There are several ways this can be achieved:

  1. Kubernetes CronJob
    1. Pros:
      1. Native to K8
      2. Good for simple disconnected tasks
    2. Cons:
      2. Will need to custom build and maintain status, monitoring, and alerting.
  2. Argo Workflows
    1. Pros:
      1. Fully featured UI
      2. Native artifact support
      3. Workflow archive
      4. Rest API
    2. Cons:
      1. Argo becomes a core component in Nebari.
      2. Most of our workflows might not be DAGs; it's possible that all the tasks can be independently executed.

Value and/or benefit

  1. It will save the state from accidental deletes.

Anything else?

No response

Tasks

Preview Give feedback
@Adam-D-Lewis
Copy link
Member

Adam-D-Lewis commented Mar 19, 2024

BTW, I think you would use k8s Jobs instead of k8S Cronjobs. Also, one option to run things sequentially with k8s Jobs - https://stackoverflow.com/questions/40713573/how-to-run-containers-sequentially-as-a-kubernetes-job (haven't tried it myself, but worth a try)

@pt247 pt247 closed this as completed Jun 18, 2024
@github-project-automation github-project-automation bot moved this from New 🚦 to Done 💪🏾 in 🪴 Nebari Project Management Jun 18, 2024
@pt247
Copy link
Contributor Author

pt247 commented Jun 18, 2024

Closing in favor of #2518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backup-and-restore 💾 All items related to backup and restore
Projects
Development

No branches or pull requests

2 participants