Question 3 of 6 · Set 1 · 2 marks
Open in ChatGPTDefine checkpointing in distributed systems.
Checkpointing is the periodic saving of a process's state to stable storage so it can restart from there after a failure.
- Purpose: avoid redoing all the work since the start.
- Consistency: in a distributed system the checkpoints must form a consistent cut.
- Coordinated checkpointing: a two-phase protocol makes every process save at the same logical instant.
- Cost: proportional to the size of the state.
- Recovery: restore the last checkpoint and continue, or replay the log since it.