Docsity

Transaction Processing Replication: Primary-Copy, Multi-Master, and Sync Replication, Slides of Fundamentals of E-Commerce

Partial preview of the text

Download Transaction Processing Replication: Primary-Copy, Multi-Master, and Sync Replication and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

10. Replication

Transaction Processing

Outline

1. Introduction2. Primary-Copy Replication3. Multi-Master Replication4. Other Approaches5. Products

Replicated Server

-^

Can replicate servers on a common resource^ –

Data sharing - DB servers communicate with shared disk

Resource

Server Replica 1

Server Replica 2

Client

  • Helps availability in primary-backup scenario• Requires replica cache coherence mechanism …• Hence, this helps performance only if
    • little conflict between transactions at different servers or– loose coherence guarantees (e.g. read committed)

Replicated Resource

-^

To get more improvement in availability,replicate the resources (too)

-^

Also increases potential throughput

-^

This is what’s usually meant by replication

-^

It’s the scenario we’ll focus on

Server Replica 1 Resource replica

Server Replica 2

Client

Client

Resource replica

Synchronous Replication - Issues r^1

[x

A

]

r^2

[y

D

]^

w

[x 2

B

]

w

[y 1

C

]

y

D

fails

x

A

fails

Not equivalent to aone-copy execution,even if x

A^

and y

D

never recover!

•^

DBMS products support it only in special situations

-^

If you just use transactions, availability suffers.

-^

For high-availability, the algorithms are complex andexpensive, because they require heavy-dutysynchronization of failures.

-^

… of failures? How do you synchronize failures?