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

Citus automated backup #5306

Closed
steven-sheehy opened this issue Jan 30, 2023 · 4 comments · Fixed by #9541 or #9638
Closed

Citus automated backup #5306

steven-sheehy opened this issue Jan 30, 2023 · 4 comments · Fixed by #9541 or #9638
Assignees
Labels
citus Area: Citus database Area: Database enhancement Type: New feature
Milestone

Comments

@steven-sheehy
Copy link
Contributor

steven-sheehy commented Jan 30, 2023

Problem

We need to ensure our Citus installation has automated backups.

Solution

  • Investigate Stackgres backup functionality
  • Automate backup with multi-node setup.
  • Document manual restore process in database.md
  • Update existing citus.md and database.md to make sure the backup restore process is documented for the correct approach

Alternatives

@steven-sheehy steven-sheehy added enhancement Type: New feature database Area: Database labels Jan 30, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Mirror Node Jan 30, 2023
@steven-sheehy steven-sheehy mentioned this issue Jan 30, 2023
@steven-sheehy steven-sheehy moved this from 📋 Backlog to 🏃‍♀ Sprint backlog in Mirror Node Jan 30, 2023
@steven-sheehy steven-sheehy moved this from 🏃‍♀ Sprint backlog to 📋 Backlog in Mirror Node Jan 30, 2023
@jnels124
Copy link
Contributor

the manual backup approach has been documented in citus.md

@steven-sheehy steven-sheehy moved this from 📋 Backlog to 🏃‍♀ Sprint backlog in Mirror Node May 10, 2024
@xin-hedera xin-hedera self-assigned this May 14, 2024
@xin-hedera xin-hedera moved this from 🏃‍♀ Sprint backlog to 👷 In progress in Mirror Node May 14, 2024
@xin-hedera xin-hedera moved this from 👷 In progress to 🏃‍♀ Sprint backlog in Mirror Node May 22, 2024
@jnels124
Copy link
Contributor

The restore side of this is currently blocked by upstream issue.

@xin-hedera
Copy link
Contributor

Issues / findings from testing stackgres

  • pg basebackup isn't feasible for large database since every base backup takes too long to create and consumes too much storage
  • using volumesnapshot as the base backup took much longer than expected, 20+ minutes for a database with less than 1GB data
  • creating volumesnapshot sometimes can fail consecutively, however with different errors
    • first Failed to create snapshot content with error snapshot controller failed to update mirror-citus-coord-data-mirror-citus-coord-0 on API server: Operation cannot be fulfilled on persistentvolumeclaims \"mirror-citus-coord-data-mirror-citus-coord-0\": the object has been modified; please apply your changes to the latest version and try again
    • subsequently Error from server (AlreadyExists): error when creating "STDIN": volumesnapshots.snapshot.storage.k8s.io "manual-test-coord" already exists
  • Can't turn off continuous archiving which enables PITR, it's a log of WAL segments to backup under high TPS

@steven-sheehy steven-sheehy moved this from 🏃‍♀ Sprint backlog to 📋 Backlog in Mirror Node May 24, 2024
@Abhinandan-Purkait
Copy link

The restore side of this is currently blocked by upstream issue.

@jnels124 Can you share the steps and exact properties of the volumes used on how to go about reproducing this issue? This doesn't seem to hit in the e2e testing for openebs/zfs-localpv.

@steven-sheehy steven-sheehy added the citus Area: Citus label Aug 30, 2024
@steven-sheehy steven-sheehy moved this from 📋 Backlog to 🏃‍♀ Sprint backlog in Mirror Node Sep 3, 2024
@jnels124 jnels124 self-assigned this Sep 4, 2024
@steven-sheehy steven-sheehy added this to the 0.115.0 milestone Sep 16, 2024
@steven-sheehy steven-sheehy modified the milestones: 0.115.0, 0.116.0 Sep 29, 2024
@jnels124 jnels124 linked a pull request Oct 9, 2024 that will close this issue
2 tasks
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Mirror Node Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
citus Area: Citus database Area: Database enhancement Type: New feature
Projects
Status: ✅ Done
4 participants