TLA+ Quinceañera
FLoC TLA+ Workshop David Langworthy Microsoft Engineer
TLA+ Quinceaera FLoC TLA+ Workshop David Langworthy Microsoft - - PowerPoint PPT Presentation
TLA+ Quinceaera FLoC TLA+ Workshop David Langworthy Microsoft Engineer 2003: WS-Transaction April 2015: How AWS Uses Formal Methods December 2015: Christmas TLA+ December 26 th : Email from Satya to Me & 20 or so VPs Not Common
FLoC TLA+ Workshop David Langworthy Microsoft Engineer
200 deployments of 50 VMs each)
the code
which has many of the properties of TLA+ but at a much lower level
Extent Nodes (EN) Partition Server Partition Server Partition Server Partition Server Partition Master
Partition Layer Stream Layer
scale-out metadata: 1) create stream 2) create extent same data path – chain replication
Stream Mgr Stream Mgr Extent Mgr Extent Mgr
1 2 1 2
Extent Mgr Stream Mgr
vNext Master
Stream Mgr
M Paxos M M
AZ1
n1 n2 n3
AZ2
n4 n5 n6
AZ3
n7 n8 n9
n1 n2 n3 n4
vNext Master
configuration change: replace n2 w/ n4 metadata updates
initial ring: {n1, n2, n3}
S1 P0 S4 S2 S3 w1 w2 w1 w1 w1 w1 w1 w1 w1 w1 w1 w1 w2 w2 w2 w2 w2 w2 w2 w2 w2 w2
S3
S1 P0 S4 S2 w1 w2 w1 w1 w1 w1 w1 w2 w2 w2 w2 w2 S3 w1 w2 w1 w2
S2 S3
S1 P0 S4 w1 w2 S2 w1 w1 w1 w1 w1 w2 w2 w2 w2 w2 S3 w1 w2 w1 w2
1. Checkpoint lease given to secondary A 2. Secondary A finishes checkpoint before timeout 3. Secondary B dies 4. Secondary B recovers 5. Secondary B is rehydrated from checkpoint created by secondary A 6. Leader dies 7. Secondary B becomes leader
decrees.
!!
Database (Replicated)
R1 R2 R3 a b c
Database (Replicated) Database (Replicated)
Vector Clock
State Replication State Replication State Replication State Replication
GLSN ID CONTENT LSN ID CONTENT GLSN
Database (Replicated)
R1 R2 R3 a b c
Database (Replicated) Database (Replicated)
Vector Clock
State Replication State Replication State Replication State Replication
GLSN ID CONTENT PREVIOUS GLSN ID CONTENT PREVIOUS LSN
Database (Replicated)
R1 R2 R3 a b c
Database (Replicated) Database (Replicated)
Vector Clock
GLSN LSN ID
State Replication State Replication
Tentative Operation Log
Anti-Entropy Anti-Entropy
GLSN ID CONTENT CONTENT