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

WAL sync checkpointing support #1928

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

WAL sync checkpointing support #1928

wants to merge 1 commit into from

Conversation

penberg
Copy link
Collaborator

@penberg penberg commented Jan 22, 2025

This pull request adds WAL sync checkpointing support.

@penberg penberg force-pushed the sync-checkpoint branch 3 times, most recently from 4d8ae7e to 2fe87b5 Compare January 24, 2025 09:11
This patch adds support for checkpointing during WAL sync, which allows
us to sync multiple checkpoint generations from the server.

The protocol is as follows:

  1. A client uses the pull endpoint to fetch frames.

  2. When we reach the end of a generation, the server returns "I am a teapot"
     (yes, really) with a JSON containing the maximum generation number on the
     server.

  3. If we need to pull more generations, we first checkpoint the WAL on the
     client, and then continue pulling frames from the newer generation.
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 this pull request may close these issues.

1 participant