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

docs: Add example of blueprint using pg_backup_start/pg_backup_stop #3340

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

hairyhum
Copy link
Contributor

Change Overview

pg_backup_start and pg_backup_stop require session to be active while files are copied.

This example blueprint allows doing that by:

  • Creating a pod to run for a duration of a backup with psql session in there: createBackupPod phase
  • Sending pg_backup_start command to the running psql session: startBackup phase
  • Copying the files: copyFiles phase
  • Sending pg_backup_stop command to the running psql session: stopBackup phase
  • Cleaning up the session pod in deferPhase

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test
  • 🏗️ Build

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

@hairyhum hairyhum force-pushed the postgres-start-stop-blueprint branch from 418f2df to fdb5b5e Compare January 23, 2025 19:34
@hairyhum hairyhum force-pushed the postgres-start-stop-blueprint branch from fdb5b5e to a75bfed Compare January 24, 2025 17:47
@hairyhum hairyhum marked this pull request as ready for review January 24, 2025 17:47
Copy link
Contributor

@mlavi mlavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@hairyhum hairyhum added the kueue label Jan 30, 2025
@mergify mergify bot merged commit d9c3354 into master Jan 30, 2025
24 checks passed
@mergify mergify bot deleted the postgres-start-stop-blueprint branch January 30, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants