WIP: K2V PollRange (old proposal, abandonned) #467
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#467
Loading…
Reference in a new issue
No description provided.
Delete branch "k2v-watch-range"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is the first proposal of an implementation of PollRange for K2V.
The hard part with implementing this new endpoint is that we need to define a "seen marker" type, which is compact enough but yet transmits enough information so that items that have already been seen will not be retransmitted upon further PollRange call, but most importantly, that items will never be missed, which could happen for example if they arrive out of order at the various storage nodes (because we do not have something like causal-order delivery).
In this first proposal, we wanted to emulate causal order delivery by having a history table where nodes store all the operations they do in order, so that we can define the possible results of PollRange as prefixes of this operation sequence, and thus the seen marker is just an integer per node (the most compact thing that can be done). The downside is that the entire history has to be stored and managed (transmitted between nodes; garbage collected after some time), which makes this solution very inefficient in the case of frequent K2V inserts.
This proposal is mostly abandonned in favor of the version 2, which reports the cost on the caller of PollRange with a bigger "seen marker" type, but no further storage complexity on the server side (except making k2v timestamps globally increasing on each node).
K2VItem
7a23def61f
tob337895fce
96232d5ff9
to32715d462e
WIP: K2V PollRangeto WIP: K2V PollRange (old proposal, abandonned)Pull request closed