


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of lecture notes on the topic of replication and replica management in distributed systems. The notes cover various aspects of replication, including enhancing services, load balancing, fault tolerance, and replication transparency and consistency. The document also discusses the role of replica managers in handling requests and ensuring agreement among replicas. The notes include examples and illustrations to help clarify the concepts.
Typology: Study notes
1 / 4
This page cannot be seen from the preview
Don't miss anything!



2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-1Lecture 23-
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-2Lecture 23-
binding all the server IP addresses to the service’s DNS name. A DNS lookup of the site results in one of the servers’ IP addresses being returned, in a round-robin fashion.
least one remains to supply the service.
Service may not be available when servers fail or when the network is partitioned.
P: probability that one server fails= 1 – P= availability of service. e.g. P = 5% => service is available 95% of the time.
Pn: probability that n servers fail= 1 – Pn= availability of service. e.g. P = 5%, n = 3 => service available 99.875% of the time
^ ^ 2002, M. T. Harandi and J. Hou (modified: I. Gupta)^ Lecture 23-3Lecture 23-
User/client need not know that multiple physical copies of data exist.
Data is consistent on all of the replicas (or is in the process of becoming consistent)
Client Front End RM
Client Front End
Client Front End
Service
server
server
server
Replica Manager`
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-4Lecture 23-
RM handles r and then r’.
the issue of r’, then any correct RM handles r and then r’.
then any correct RM handles r and then r’.
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-5Lecture 23-
response to arrive.
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-6Lecture 23-
Group Send
Address Expansion
Multicast Comm.
Membership Management
Leave
Fail
Join
Group
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-7Lecture 23-
Example: V (^) p.0(g) = {p}, V (^) p.1(g) = {p, q}, V (^) p.2 (g) = {p, q, r}, V (^) p.3 (g) = {p,r}
“view change” message (requires causal-total ordering for multicasts)
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-8Lecture 23-
p, and at the time of event occurrence, p has delivered vp,i(g) but has not yet delivered vp,i+1(g).
at all members in the group (“What happens in the View, stays in the View”)
delivers vi+1(g) before vi(g).
from process p, then eventually, q will always be present in the views that delivered at p.
Primary partition: allow only majority partition to proceed Allow any and all partitions to proceed Choice depends on consistency requirements.
^ ^ 2002, M. T. Harandi and J. Hou (modified: I. Gupta)^ Lecture 23-9Lecture 23-
Service + Reliable multicast
messages:
Also p ∈∈∈∈ group (m).
if p delivers message m in view v(g), and some process q∈∈ ∈∈ v(g) does not deliver m in view v(g), then the next view v’(g) delivered at p will not include q.
in any view. if p delivers m in V, and then delivers V’, then all processes in V ∩∩∩∩ V’ deliver m in view V
conditions, from last slide) are satisfied
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-10Lecture 23-
p
q
r
V(p,q,r)
p
q
r
V(p,q,r)
p
q
r
V(p,q,r)
p
q
r
V(p,q,r)
X X^ X
V(q,r)
V(q,r)
V(q,r)
V(q,r)
X
X (^) X
Not Allowed (^) Not Allowed
Allowed (^) Allowed
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-11Lecture 23-
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-12Lecture 23-
Client Front End^ RM
Client Front End
Client Front End
Service
server
server
server
Need consistent updates to all copies of an object •Linearizability •Sequential Consistency
2002, M. T. Harandi and J. Hou (modified: I. Gupta) Lecture 23-19Lecture 23-