Lesson Flashcards
(48 cards)
What happens when Process P2 fails before logging the determinant for message m5?
Process P1 becomes an orphan because it had already processed m6 which depended on m5.
This leads to cascading rollbacks in P1 and P0.
What is the role of causal dependencies in recovery from failures?
The system tracks causal dependencies to restore a globally consistent state.
How does Communication-Induced Checkpointing work?
It piggybacks protocol-related information on each application message, allowing the receiver to decide if it needs a forced checkpoint.
What are the two types of checkpoints in Communication-Induced Checkpointing?
- Autonomous Checkpoints
- Forced Checkpoints
What are the advantages of Communication-Induced Checkpointing?
Avoids cascading rollbacks without requiring full coordination and balances overhead between uncoordinated and coordinated approaches.
What is a disadvantage of Communication-Induced Checkpointing?
Can introduce unnecessary checkpoints, increasing storage and processing costs.
What is the main difference between Blocking and Non-Blocking approaches in Coordinated Checkpointing?
Blocking: Processes pause execution during checkpointing. Non-blocking: Processes continue execution while coordination happens.
What are the two types of Communication-Induced Checkpointing?
- Model-Based Checkpointing
- Index-Based Checkpointing
What is Log-based rollback recovery?
A fault-tolerance mechanism where processes log events and messages during execution to replay them after a failure.
What is Pessimistic Logging?
Logs every nondeterministic event before execution to ensure recovery is always possible.
What are the pros and cons of Pessimistic Logging?
- Pros: Fast recovery, no dependency tracking
- Cons: High runtime overhead due to frequent logging.
What is Optimistic Logging?
Logs events asynchronously, allowing execution to proceed without waiting for logs to be written.
What are the pros and cons of Optimistic Logging?
- Pros: Low overhead during normal execution
- Cons: May require rollback of multiple processes due to dependency tracking.
What is Causal Logging?
Logs events based on causality tracking between processes to ensure only dependent processes rollback together.
What are the characteristics of a log-based rollback recovery system?
- Relies on Piecewise Deterministic (PWD) Assumption
- Logs nondeterministic events
- Recovery process restores a previous checkpoint and replays logged events.
What are orphan messages?
Messages with receive recorded but message send not recorded, often due to rollbacks.
What are duplicate messages?
Messages that arise due to logging and replaying during process recovery.
What are lost messages?
Messages whose send is not undone but receive is undone due to rollback.
What are delayed messages?
Messages whose receive is not recorded because the receiving process was either down or the message arrived after the rollback.
What is the domino effect in uncoordinated checkpointing?
A failure may require rolling back multiple checkpoints, leading to inefficiency.
What is the Koo-Toueg coordinated checkpointing algorithm?
A technique that takes a consistent set of checkpoints to avoid domino effect and livelock problems during recovery.
What are the two kinds of checkpoints in the Koo-Toueg algorithm?
- Permanent checkpoint
- Tentative checkpoint
What is the purpose of optimistic logging protocols?
To track causal dependencies during failure-free execution without synchronous access to stable storage.
What is the always-no-orphans property in logging?
Ensures that no process becomes an orphan if another fails.