

































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Encontra documentos específicos para os exames da tua universidade
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
An overview of various consistency models used in distributed systems, including strict consistency, sequential consistency, causal consistency, fifo consistency, weak consistency, release consistency, and entry consistency. Each model is explained in detail, along with their advantages and disadvantages.
Tipologia: Slides
1 / 73
Esta página não é visível na pré-visualização
Não perca as partes importantes!


































































(^) Organization of a distributed remote object shared by two different clients. But, how do we protect the object in the presence of multiple simultaneous access?
5
a) A remote object capable of handling concurrent invocations on its own. b) A remote object for which an object adapter is required to handle concurrent invocations (relies on middleware).
(^) Replication is a widely-used scalability technique: think of web clients and web proxies. (^) When systems scale, the first problems to surface are those associated with performance – as the systems get bigger (e.g., more users), they get often slower. (^) Replicating the data and moving it closer to where it is needed helps to solve this scalability problem. (^) A problem remains: how to efficiently synchronize all of the replicas created to solve the scalability issue? (^) Dilemma: adding replicas improves scalability, but incurs the (oftentimes considerable) overhead of keeping the replicas up- to-date!!! (^) As we shall see, the solution often results in a relaxation of any consistency constraints.
(^) A data-store can be read from or written to by any process in a distributed system. (^) A local copy of the data-store (replica) can support “fast reads”. (^) However, a write to a local replica needs to be propagated to all remote replicas.
i
i
i
(^) Behavior of two processes, operating on the same data item: a) A strictly consistent data-store. b) A data-store that is not strictly consistent.
Sequential Consistency Diagrams a) A sequentially consistent data-store – the “first” write occurred after the “second” on all replicas. b) A data-store that is not sequentially consistent – it appears the writes have occurred in a non-sequential order, and this is NOT allowed. In other words: all processes see the same interleaving set of operations, regardless of what that interleaving is.
Linearizability and Sequential Consistency (2) (^) Four valid execution sequences for the processes of the previous slide. The vertical axis is time. x = 1; print ((y, z); y = 1; print (x, z); z = 1; print (x, y); Prints: 001011 Signature: 001011 (a) x = 1; y = 1; print (x,z); print(y, z); z = 1; print (x, y); Prints: 101011 Signature: 101011 (b) y = 1; z = 1; print (x, y); print (x, z); x = 1; print (y, z); Prints: 010111 Signature: 110101 (c) y = 1; x = 1; z = 1; print (x, z); print (y, z); print (x, y); Prints: 111111 Signature: 111111 (d) But, for instance, 001001 is not allowed.
19
a) Violation of causal-consistency – P2’s write is related to P1’s write due to the read on ‘x’ giving ‘a’ (all processes must see them in the same order). b) A causally-consistent data-store: the read has been removed, so the two writes are now concurrent. The reads by P3 and P are now OK. incorrect correct
(^) Defined as follows: Writes done by a single process are seen by all other processes in the order in which they were issued, but writes from different processes may be seen in a different order by different processes. (^) This is also called “PRAM Consistency” – Pipelined RAM. The attractive characteristic of FIFO is that it is easy to implement. There are no guarantees about the order in which different processes see writes – except that two or more writes from a single process must be seen in order.