Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Asynchronous snapshot upload #574

Merged
merged 8 commits into from
Sep 5, 2023

Conversation

Horusiath
Copy link
Contributor

Build on top of #547

This PR introduces async DB file snapshotting. Basically when checkpoint happens, we trigger asynchronous DB file backup. If the next checkpoint happens, it first waits until previous snapshot upload completes before continuing.

@psarna
Copy link
Contributor

psarna commented Aug 11, 2023

I'm on vacation next two weeks, so just to keep priorities straight - either this PR, or #547, need to be applied, so that we're 100% sure we don't have autocheckpoint enabled on connections, and only control the checkpoints ourselves. More importantly, in the fiber that performs the checkpoint, we need to make sure that it's performed from a connection that has our custom WAL methods registered, so that we call the on_checkpoint behavior for bottomless, implemented here:

@Horusiath Horusiath force-pushed the bart/async-snapshot-upload branch from eac46d2 to 495d77c Compare August 29, 2023 10:41
@Horusiath
Copy link
Contributor Author

@haaawk we still need unlock from @psarna to merge this.

@Horusiath Horusiath enabled auto-merge August 29, 2023 11:10
Copy link
Contributor

@psarna psarna left a comment

Choose a reason for hiding this comment

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

Looks like #547 is applied and turns off autocheckpointing where applicable

@Horusiath Horusiath force-pushed the bart/async-snapshot-upload branch from 495d77c to c9126e1 Compare September 4, 2023 12:38
@Horusiath Horusiath requested a review from psarna September 4, 2023 13:24
@Horusiath Horusiath added this pull request to the merge queue Sep 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2023
@Horusiath Horusiath added this pull request to the merge queue Sep 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 4, 2023
@Horusiath Horusiath added this pull request to the merge queue Sep 5, 2023
Merged via the queue into libsql:main with commit 4b2e9f4 Sep 5, 2023
@Horusiath Horusiath deleted the bart/async-snapshot-upload branch September 5, 2023 06:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants