DMDB
DMDB
DMDB
Kartei Details
Karten | 14 |
---|---|
Sprache | English |
Kategorie | Informatik |
Stufe | Universität |
Erstellt / Aktualisiert | 18.08.2018 / 18.08.2018 |
Weblink |
https://card2brain.ch/box/20180818_dmdb
|
Einbinden |
<iframe src="https://card2brain.ch/box/20180818_dmdb/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Def: Synchronous
Synchronous replication propagates any changes to the data immediately to all ex- isting copies. Moreover, the changes are propagated within the scope of the trans- action making the changes. The ACID properties apply to all copy updates.
Pros: Synchronous
- No inconsistencies (identical copies)
- Reading the local copy yields the most up to date value
- Changes are atomic
Cons: Synchronous
- A transaction has to update all sites (longer execution time, worse response time)
Def: Asynchronous
Asynchronous replication first executes the updating transaction on the local copy. Then the changes are propagated to all other copies. While the propagation takes place, the copies are inconsistent (they have different values). The time the copies are inconsistent is an ad- justable parameter which is application de- pendent.
Pros: Asynchronous
- A transaction is always local (good response time)
Cons: Asynchronous
- Data inconsistencies
- A local read does not always return the most up to date value
- Changes to all copies are not guaranteed Replication is not transparent
Def: Primary copy
With a primary copy approach, there is only one copy which can be updated (the master), all others (secondary copies) are updated re- flecting the changes to the master.
Pros: Update everywhere
- Load is evenly distributed
- any site can run a transaction
Cons: Update everywhere
- Copies need to be synchronized
Def: Update everywhere
With an update everywhere approach, changes can be initiated at any of the copies. That is, any of the sites which owns a copy can update the value of the data item.
Pros: Primary copy
- There is always one site which has all the updates
- No inter-site synchronization is necessary (it takes place at the primary copy)
Cons: Primary copy
- The load at the primary copy can be quite large
- Reading the local copy may not yield the most up to date value
atmoic commitment properties:
- AC1 = All processors that reach a decision reach the same one (agreement, consensus).
- AC2 = A processor cannot reverse its decision.
- AC3 = Commit can only be decided if all processors vote YES (no imposed decisions).
- AC4 = If there are no failures and all processors voted YES, the decision will be to commit (non triviality).
- AC5 = Consider an execution with normal failures. If all failures are repaired and no more failures occur for sufficiently long, then all processors will eventually reach a decision (liveness).
Def: ACID
- ATOMICITY: a transaction is executed in its entirety or not at all
- ISOLATION: a transaction executes as if it were alone in the system
- CONSISTENCY: a transaction executed in its entirety over a consistent DB produces a consistent DB
- DURABILITY: committed changes of a transaction are never lost - can be recovered