











































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












































































Andrew S. Tanenbaum, Distributed Systems: Principles and Paradigm,
Prentice Hall; 1st edition, 2002. ISBN: 0130888931
7.1 INTRODUCTION
7.1.1 Reasons for Replication
7.4 REPLICA MANAGEMENT
7.4.1 Replica-Server Placement
p
7.1.2 Replication as Scaling Technique
7.2 DATA-CENTRIC CONSISTENCY MODELS
(Old AST Text)7.2.1 Strict Consistency
p
7.4.2 Content Replication and Placement7.4.3 Content Distribution
7.5 CONSISTENCY PROTOCOLS
7.5.1 Continuous Consistency
7.2.2 Linearizability and Sequential Consistency7.2.3 Causal Consistency7.2.4 FIFO Consistency7.2.5 Weak Consistency7 2 6 Release Consistency
7.5.2 Primary-Based Protocols7.5.3 Replicated-Write Protocols7.5.4 Cache-Coherence Protocols7.5.5 Implementing Client-Centric Consistency
7 6 SUMMARY
7.2.6 Release Consistency7.2.7 Entry Consistency7.2.8 Summary of Consistency Models
7.3 CLIENT-CENTRIC CONSISTENCY MODELS
7.3.1 Eventual Consistency
7.6 SUMMARY
y
7.3.2 Monotonic Reads7.3.3 Monotonic Writes7.3.4 Read Your Writes7.3.5 Writes Follow Reads
Continue operations when one replica is overloaded or crashes
-^
Protection from data corruptions by multiple source comparison
-^
Write errors
-^
Intentional or unintentional corruption of data (virus or bugs)
Provide a means for scaling upG
hi
l di t ib ti
f
Geographical distribution of servers
-^
Previous topics: super-servers, concurrent servers, object adapters
Replica consistencyNetwork bandwidth for replication and consistency
-^
Network bandwidth for replication and consistency
-^
Naming and location service requirements
Global ordering
-^
Lamport timestamps, centralized coordinator, and other approachesIs the solution worse than the original problem?
-^
Is the solution worse than the original problem?
Can help to avoid global synchronization
-^
But copies may not always be identical (web page caches and updating)
-^
Loosening of constraints are based on the access and update patterns ofthe data/object.
j
-^
Based on the type of data being used
-^
Based on the purpose for which the data will to be used
-^
-^
A unit over which consistency is to be measured
y
Examples follow
-^
Granularity: large measures or small measures
-^
False sharing of conit? Are they independent by counted together
-^
False sharing of conit? Are they independent by counted together.
Figure 7-2. An example of keeping track of consistency
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-
Hall, Inc. All rights reserved. 0-13-239227-
g^
p^
p^
g^
y
deviations [adapted from (Yu and Vahdat, 2002)], p. 279.
Figure 7-3. Choosing the appropriate granularity for a conit.
(b) No update propagation is needed (yet)
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007
(b) No update propagation is needed (yet).Prentice-Hall, Inc. All rights reserved. 0-13-239227-
the most recent write.
The result of any execution is the same as if the (read and write)operations by all processes on the data stores were executed in somesequential order AND the operations of each individual process appear inthis sequence in the order specified by the program. In addition, if
q^
p^
y^
p^
g^
ts[OP1(X)] < ts[OP2(y)], then operation OP1(x) should precededoperation OP2(y) in this sequence.
operations by all processes on the data stores were executed in somesequential order AND the operations of each individual process appear in sequential order AND the operations of each individual process appear inthis sequence in the order specified by its program.
-^
-^
Linearizable Consistency
The result of any execution is the same as if the (read and write) operations by allprocesses on the data stores were executed in some sequential order AND theprocesses on the data stores were executed in some sequential order AND theoperations of each individual process appear in this sequence in the order specifiedby the program. In addition, if ts[OP1(X)] < ts[OP2(y)], then operation OP1(x)should preceded operation OP2(y) in this sequence.
Process P
Process P
Process P
x = 1; print ( y, z);
y = 1; print (x, z);
z = 1; print (x, y);
x = 1;print ((y, z);
x = 1;y = 1;
y = 1;z = 1;
y = 1;x = 1;
y = 1;print (x, z);z = 1;
print (x,z);print(y, z);z = 1;
print (x, y);print (x, z);x = 1;
z = 1;print (x, z);print (y, z);
print (x, y);Prints: 001011
print (x, y);Prints: 101011
print (y, z);Prints: 010111
p^
(y
)
print (x, y);Prints: 111111
Signature:
001011
Signature:
101011
Signature:
110101
Signature:
111111
(a)
(b)
(c)
(d)