flexible wide area consistency management
DESCRIPTION
Flexible Wide Area Consistency Management . Sai Susarla. The Problem. Wide area services are not alike Different consistency & availability requirements But many common issues & mechanisms Concurrency control, update propagation, conflict detection, etc. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/1.jpg)
PhD Proposal Defense
Flexible Wide Area Consistency Management
Sai Susarla
![Page 2: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/2.jpg)
PhD Proposal Defense
The ProblemWide area services are not alike
Different consistency & availability requirementsBut many common issues & mechanisms
Concurrency control, update propagation, conflict detection, etc.Ideal: Reuse mechanisms from existing systemsProblem: Each system designs monolithic solution
Suited to its own particular needs Hard to isolate individual mechanisms and reuse differently
Managing consistency of wide area replicated data requires significant development effort
![Page 3: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/3.jpg)
PhD Proposal Defense
Thesis"A consistency management system that provides
a small set of customizable coherence mechanisms
can efficiently satisfy the data coherence needs
of a wide variety of distributed applications."
![Page 4: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/4.jpg)
PhD Proposal Defense
Thesis"A consistency management system that provides
a small set of customizable coherence mechanisms
can efficiently satisfy the data coherence needs of a
wide variety of distributed applications."
![Page 5: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/5.jpg)
PhD Proposal Defense
Thesis"A consistency management system that provides a
small set of customizable coherence mechanisms can efficiently satisfy the data coherence needs of a
wide variety of distributed applications."
![Page 6: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/6.jpg)
PhD Proposal Defense
Thesis"A consistency management system that provides a
small set of customizable coherence mechanisms can efficiently satisfy the data coherence needs of a
wide variety of distributed applications."
![Page 7: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/7.jpg)
PhD Proposal Defense
Contributions
Identify policies, mechanisms that together satisfy a variety of data coherence needsImplement them in a wide area framework, retaining
Reusability: by application-independence of mechanisms Efficiency: by letting applications customize system behavior
Evaluate its effectiveness and scalability for a variety of applications
![Page 8: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/8.jpg)
PhD Proposal Defense
Wide Area Consistency Management
Many common policy issues & design choices When is access allowed to a replica? (optimistic vs. pessimistic) Where are updates issued? (single/multiple masters) How are updates propagated? (push vs. pull) What triggers update transfers? (timer, staleness, eager, lazy)
Many apps hardwire a combination of above choicesHard to isolate & reuse in other combinations
![Page 9: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/9.jpg)
PhD Proposal Defense
Exploit Commonality
Optimisticlast-writer-wins,append-only
Single-master
Multi-masterPull updates
Push updates
Pull updates
Push updates
System files, static web content
Scoreboard, Active Dir. schemaconfig files, multimedia streaming
Bayou, Coda, calendar,sensor logging, mobile file access
Active Directory data, chat, whiteboard
![Page 10: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/10.jpg)
PhD Proposal Defense
Exploit Commonality
Optimisticlast-writer-wins,append-only
Single-master
Multi-masterPull updates
Push updates
Pull updates
Push updates
System files, static web content
Scoreboard, Active Dir. schemaconfig files, multimedia streaming
Bayou, Coda, calendar,sensor logging, mobile file access
Active Directory data, chat, whiteboard
Current Approach: Implement one combination effectively to suit one
app. Restricts reusability
![Page 11: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/11.jpg)
PhD Proposal Defense
Exploit Commonality
Optimisticlast-writer-wins,append-only
Single-master
Multi-masterPull updates
Push updates
Pull updates
Push updates
System files, static web content
Scoreboard, Active Dir. schemaconfig files, multimedia streaming
Bayou, Coda, calendar,sensor logging, mobile file access
Active Directory data, chat, whiteboard
Approach: Implement common mechanisms in app-independent
manner Provide hooks to let applications customize their
behavior
![Page 12: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/12.jpg)
PhD Proposal Defense
Evaluation PlatformKhazana: configurable caching infrastructure
File-like data abstraction, page-grained consistency Performs caching, concurrency control Asynchronous update notifications
Application controls per-file behavior Consistency policy (last-writer-wins, append-only, or strict) Control over per-replica quality Optimistic vs. pessimistic access Push vs. pull updates, single vs. multiple masters
Per-file dynamic cache hierarchy
![Page 13: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/13.jpg)
PhD Proposal Defense
. . .
. . .
Object O1: multi-master, pull-updates optimistic consistency (e.g., shared file)Object O2: single-master, push-updates strict consistency (e.g., shared password db)
S1 S2S3
S4S5
P
P
Parent-child relationship between object replicas
P: Primary replicaSn: Khazana server
Client accesses replica
Replicated Objects in Khazana
![Page 14: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/14.jpg)
PhD Proposal Defense
. . .
. . .
Object O1: multi-master, pull-updates optimistic consistency (e.g., shared file)Object O2: single-master, push-updates strict consistency (e.g., shared password db)
S1 S2S3
S4S5
P
P
Parent-child relationship between object replicas
P: Primary replicaSn: Khazana server
Client accesses replica
Replicated Objects in Khazana
S2 Crashes
O2 copy inaccessibleLink down
Broken link
![Page 15: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/15.jpg)
PhD Proposal Defense
. . .
. . .
Object O1: multi-master, pull-updates optimistic consistency (e.g., shared file)Object O2: single-master, push-updates strict consistency (e.g., shared password db)
S1 S2S3
S4S5
P
P
Parent-child relationship between object replicas
P: Primary replicaSn: Khazana server
Client accesses replica
Replicated Objects in Khazana
S2 Recovers
Link Up
Broken link
Link down
![Page 16: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/16.jpg)
PhD Proposal Defense
Thesis"A consistency management system that provides a
small set of customizable coherence mechanisms can efficiently satisfy the data coherence needs of a
wide variety of distributed applications."
![Page 17: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/17.jpg)
PhD Proposal Defense
Representative ApplicationsDataStations: Distributed file store that supports multiple file sharing patternsChat room: Concurrent appends to a transcript fileScoreboard: Broadcasts game state to registered listenersDirectory Service: Hash table implemented in a shared file
![Page 18: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/18.jpg)
PhD Proposal Defense
A Khazana-based Chat Roomcallback(handle, newdata){ display(newdata);}main(){ handle = kh_open(kid, "a+"); kh_snoop(handle, callback); while (! done) { read(&newdata); display(newdata); kh_write(handle, newdata); } kh_close(handle);}
Chat transcript: multi-master, push updates, optimistic append-only consistency
21
3
4
Update propagation path
P
Sample Chat client code
![Page 19: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/19.jpg)
PhD Proposal Defense
EvaluationEvaluate
Scalability, resilience to wide-area conditions (DataStations) Performance
» Microbenchmarks (latency, bandwidth utilization)» Per-application macrobenchmarks
Demonstrate Application control over system mechanisms Scalable real-time data exchange (Chat room) Control over per-replica data quality (Scoreboard)
Compare performance Chat room with IRC Directory service with MS Active directory
![Page 20: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/20.jpg)
PhD Proposal Defense
Related Work
Support for multiple consistency policies Munin, WebFS, Fluid Replication TACT
Wide area issues in consistency management Coda, Ficus, Bayou
Applications with specific consistency semantics Active Directory, Thor
Peer-to-peer data sharing systems Napster, PAST, Farsite, Freenet
![Page 21: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/21.jpg)
PhD Proposal Defense
Open IssuesOptimal replica placementEfficient replica topologies reflecting Internet routingSecurity
![Page 22: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/22.jpg)
PhD Proposal Defense
TimelineSep
Khazana on WAN, last-writer, push updates, DataStations
Defend proposal
Oct Other policies, push, multi-
master (req. file versioning) Experiments 1 & 2
Nov Op. timeouts, node failures Experiment 3
Dec Async updates, update
triggers (timer, staleness ...) Scoreboard & chat Experiments 5 and 6
Jan Directory service Experiment 4
Feb Start writing thesis
April/May Finish thesis and defend.
![Page 23: Flexible Wide Area Consistency Management](https://reader036.vdocument.in/reader036/viewer/2022062323/5681675d550346895ddc2a79/html5/thumbnails/23.jpg)
PhD Proposal Defense
ConclusionManaging consistency of replicated data is hard
Many mechanisms available, but hard to reuse efficiently Current approach: reinvent the wheel
Proposed a solution: generic consistency framework Offloads this complexity from applications Reusable, customizable, scalable
Contributions Identify policies, mechanisms that serve a variety of coherence
needs Design a wide area framework to leverage them efficiently Evaluate its effectiveness & scalability for a variety of useful
applications