Title: Cuts
1Cuts
2(No Transcript)
3consists from an event from each process
Cut
4no messages cross the cut
Consistent cut
5messages can cross from left to right of the cut
Consistent cut
6messages cross from right to left of the cut
Inconsistent cut
7messages cross from right to left of the cut
Inconsistent cut
8Maximal Consistent Cut
Consider some (inconsistent) cut
Maximal Consistent Cut of
A consistent cut such that
and contains most recent events
9(inconsistent cut)
10maximal consistent cut
(inconsistent cut)
11Theorem
For every cut , there is a unique maximal
consistent cut
Proof
Proof by contradiction
12Assume for contradiction there are two (or more)
maximal cuts of
maximal consistent cuts
13It cannot be that and dont cross
not maximal!
14 and cross
15 and cross
new cut
16 and cross
impossible
is consistent
since
17 and cross
impossible
is consistent
since
18 and cross
Contradiction!
not maximal!
not maximal!
is consistent
End of proof
19A distributed algorithm for computing the
maximum consistent cut of
- Use vector clocks
- For each processor
- Find most recent event with
- vector clock
20(No Transcript)
21(No Transcript)
22OK
23OK
OK
24OK
OK
25OK
OK
OK
26(No Transcript)
27Distributed Snapshot
- A set of processors initiate the
- computation for obtaining a global snapshot
(these processors receive special marker
messages from the system)
- The cut contains the state of at least
- one processor in in the initiation
28A Distributed Snapshot Algorithm
Processor
- Upon receiving a marker message
If then
set
send marker to all neighbors
29(No Transcript)
30m
31m
m
m
32m
m
m
33m
m
m
m
m
m
m
m
34m
m
m
m
m
m
m
m
35m
m
m
m
m
m
m
m
m
36m
m
m
m
m
m
m
m
m
cut
37Theorem
The cut obtained by the algorithm is consistent
By contradiction
Proof
38Suppose the cut is incosistent
39(we assume FIFO)
It must be
m
Impossible!
End of proof