Low-Latency Multi-Writer Atomic Registers

17
Towards Feasible Implementations of Low-Latency Multi-Writer Atomic Registers Chryssis Georgiou, Nicolas Nicolaou, Alexander C. Russell, Alexander A. Shvartsman Maria Stylianou – [email protected] 34335 DS – Decentralized Systems

description

Course: Decentralized Systems (12min): Low-Latency Multi-Writer Atomic Registers. Specific tasks: Present a paper of interest in class

Transcript of Low-Latency Multi-Writer Atomic Registers

Page 1: Low-Latency Multi-Writer Atomic Registers

Towards Feasible Implementations

of Low-Latency Multi-Writer Atomic

Registers

Chryssis Georgiou, Nicolas Nicolaou,

Alexander C. Russell, Alexander A. Shvartsman

Maria Stylianou – [email protected]

34335 DS – Decentralized Systems

Page 2: Low-Latency Multi-Writer Atomic Registers

Overview

• Problem, Theory & Motivation

• Contributions

▫ APRX-SFW algorithm

▫ CWFR algorithm

• Experiments & Results

• Conclusions

34335 DS – Decentralized Systems

2

Page 3: Low-Latency Multi-Writer Atomic Registers

Problem

34335 DS – Decentralized Systems

3

Distributed Storage System

• Data Replication

• Servers Failures

• Read/Write Operations

• Consistency?

Page 4: Low-Latency Multi-Writer Atomic Registers

Conditions for Consistency

34335 DS – Decentralized Systems

4

Safety

Regularity

Atomicity

Page 5: Low-Latency Multi-Writer Atomic Registers

Model Characteristics

5

• MWMR

• Asynchrony

• Concurrency

• Fault Tolerance

• Availability

• Reliability

• 1 operation / 1 process

3 Sets of Processes • R: readers • W: writers • S: servers

34335 DS – Decentralized Systems

Page 6: Low-Latency Multi-Writer Atomic Registers

Model Characteristics

34335 DS – Decentralized Systems

6

Quorum Systems

Efficiency

Read/Write ops Latency

Communication cost FAST:1 comm-round

SLOW: 2 comm-round

Communication cost +

Computation cost

Page 7: Low-Latency Multi-Writer Atomic Registers

Model Characteristics

34335 DS – Decentralized Systems

7

Communication Round 1. User sends msg to a set of

servers 2. Each server that receives msg replies with ACK 3. User receives ACK from a quorum of servers

Tag <timestamp, wid>

• timestamp: counter • wid: last writer’s id

Page 8: Low-Latency Multi-Writer Atomic Registers

Motivation & Contributions

• Motivation – SFW algorithm

▫ Use of predicates

▫ Pros: Fast READ/WRITE ops

▫ Cons#1: Too much computation

▫ Cons#2: Dependent on the QS construction

• Contribution – APRX-SFW algorithm

▫ Polynomial log-approximation complexity

▫ Speeds up computation of SFW

8

34335 DS – Decentralized Systems

Page 9: Low-Latency Multi-Writer Atomic Registers

Contributions: CWFR Algorithm

• Independent from the QS construction!

• Writer – 2 rounds

▫ 1st round: Send a READ to find the most recent tag

▫ 2nd round: Increase tag & Send a WRITE msg

• Reader – 1 or 2 round(s)

▫ 1st round: Send a READ to find the most recent tag

▫ Use of Quorum Views Decide if 2nd round is needed

• Server – passive role

▫ Answers to received messages

34335 DS – Decentralized Systems

9

Page 10: Low-Latency Multi-Writer Atomic Registers

Quorum Views

• 1st check: All servers of Qj keep the latest tag qView(1) (a)

▫ WRITE is complete READ FAST!

34335 DS – Decentralized Systems

10

Qj

Page 11: Low-Latency Multi-Writer Atomic Registers

Quorum Views

• 1st check: All servers of Qj keep the latest tag qView(1) (a)

▫ WRITE is complete READ FAST!

• 2nd check: There is at least one intersection where all servers keep the latest tag qView(3) (c + d)

▫ No info if WRITE is complete READ SLOW!

34335 DS – Decentralized Systems

11

Qj

Page 12: Low-Latency Multi-Writer Atomic Registers

Quorum Views

• 1st check: All servers of Qj keep the latest tag qView(1) (a)

▫ WRITE is complete READ FAST!

• 2nd check: There is at least one intersection where all servers keep the latest tag qView(3) (c + d)

▫ No info if WRITE is completed READ SLOW!

• 3rd check: Each intersection has an older tag qView(2) (b)

▫ Remove servers with latest tag and repeat checks

34335 DS – Decentralized Systems

12

Qj

Page 13: Low-Latency Multi-Writer Atomic Registers

QS with small intersection degree

34335 DS – Decentralized Systems

13

APRX-SFW

CWFR

SIMPLE

Page 14: Low-Latency Multi-Writer Atomic Registers

QS with large intersection degree

34335 DS – Decentralized Systems

14

SIMPLE

APRX-SFW

CWFR

Page 15: Low-Latency Multi-Writer Atomic Registers

Conclusions

• Performance of APRX-SFW

▫ Number of writers

▫ Intersection degree

• CWFR has more stable performance

34335 DS – Decentralized Systems

15

Page 16: Low-Latency Multi-Writer Atomic Registers

Web References

• Towards Feasible Implementations of Low-Latency Multi-Writer Atomic Registers, http://www.cs.ucy.ac.cy/fastMWMR/pubs/MWMR_NCA11_IEEE.pdf

• Towards Feasible Implementations of Low-

Latency Multi-Writer Atomic Registers, Technical Report, http://www.cs.ucy.ac.cy/fastMWMR/MWMR-TR.pdf

34335 DS – Decentralized Systems

16

Page 17: Low-Latency Multi-Writer Atomic Registers

Towards Feasible Implementations

of Low-Latency Multi-Writer Atomic

Registers

Chryssis Georgiou, Nicolas Nicolaou,

Alexander C. Russell, Alexander A. Shvartsman

Maria Stylianou – [email protected]

34335 DS – Decentralized Systems