Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
4a08fe19
Commit
4a08fe19
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
point out why the replica must be kept fresh
parent
dfb21aa9
Branches
Branches containing commit
No related tags found
1 merge request
!293
Design document for replication and recovery system
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/designs/backup-recovery.rst
+5
-0
5 additions, 0 deletions
docs/source/designs/backup-recovery.rst
with
5 additions
and
0 deletions
docs/source/designs/backup-recovery.rst
+
5
−
0
View file @
4a08fe19
...
...
@@ -110,6 +110,11 @@ Database Copying
All of the internal state resides in a single SQLite3 database.
This file can be copied to the on-grid storage location.
This requires a ZKAPAuthorizer API to suspend writes to the database so a consistent copy can be made.
The replica must be kept fresh for two reasons:
* When a new voucher is funded or redeemed for new ZKAPs there is new value present in the database that is not present in an old copy of it.
* As ZKAPs in the replica are spent by the client the cost to discard these after recovery grows.
To keep the replica fresh multiple complete copies of the database need to be uploaded.
This requires a large amount of bandwidth to upload full copies of the database periodically.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment