Week 12 Part 2 Flashcards
This stores multiple copies of a dataset on multiple nodes
Replication (the copies are called replicas)
What does replication provide?
Scalability and availability
The redundancy achieved through replication leads to _____ tolerance
fault tolerance
What are the 2 methods used to implement replication?
Master-slave
peer-to-peer
Master-slave replication: All data is written to a master node, what happens?
The slave nodes replicate the data
Master-slave replication: Where do write requests like insert, delete, and update occur? Where do read requests occur?
Write requests: Master
read requests: Slave
Is master-slave replication ideal for write intensive loads or read intensive loads? Why?
Read intensive loads. The system can be scaled horizontally by adding more slave nodes.
What happens to the master slave replication system when the amount of writes increases?
The system suffers. There’s only 1 master node.
T/F - If the master node fails, reads are no longer possible
False, can read from any slave node
T/F - A salve node can be configured as a backup for the master node
True
T/F - If the master node fails, writes are no longer possible
True, until a master node is reestablished
T/F - master node is either resurrected from a backup of the master node, or a new
master node is chosen from the slave nodes
True
T/F - In peer to peer, one node writes, the other reads
False
T/F - In P2P each write is copied by all peers
True
Name this ACID principle: ensures that all operations will always succeed or fail
completely (no partial transactions)
Atomicity