Replication (6) Flashcards
What are the benefits of replication?
Better performance(parallel processing of client requests)
Less delay and network traffic because servers can be located closer to clients.
Better availability, if a replicated server fails we can just use a different while fixing it.
How can updates be propagated among replicas?
Push- based
Pull- based
Hybrid push- pull(lease- based, or pushing invalidations)
What is push- based propagation?
A replica pushes updates to everyone else.
Could push new data or parameters of update operation.
What is pull- based propagation?
A replica requests that another send their newest data. They first poll for new data.
What is ideal consistency?
If a system has ideal consistency it means that its behaviour is identical to a non- replicated system.
What is sequential consistency?
That for every possible global history produced by a system execution, there should exist a linearisation that fulfils the specification of each object (the order of operations should make sense basically)
What is active replication? (aka replicated state machine)
Every replica sees the exact same set of update messages in the same order and will process them in that order.
What are the advantages of using active replication?
Each server can respond to client queries with updated data.
If a server crashes, a different server can immediately complete its queries.
What are the limitations of using active replication?
Waste of resources since all replicas do the same operation.
It has update propagation only which demands determinism. (I think this means that every replica has to see the same set of update messages in same order)
what is passive replication(primary- backup replication)?
One server plays a primary role. The primary completes all updates and can propagate them to backups eagerly or lazily.
What are some advantages with passive replication compared to active?
It can be implemented without deterministic operations.
Easier to implement.
Creates less network traffic during normal operation.
What types passive replication have we gone through?
Cold backup
Warm backup
Hot standby
Local -write scheme
What is cold backup?
Only primary server is active. It checkpoints its state to backup periodically.
If primary falters, a backup is initiated.
What is warm backup?
It is similar to cold backup, but in this type the backup server is partially live so that recovery is quicker.
What is hot standby?
There is a primary server, but the backup server is also active and is constantly updated about changes in primary’s condition.