Skip to main content
OpenDC2 is no longer being developed

This page documents OpenDC2. OpenDC3 can still run OpenDC2 experiment files with opendc --legacy run, but new features are only added to OpenDC3. See the OpenDC3 documentation, or Migrating to OpenDC3.

Checkpoint model

With checkpointing, tasks regularly save their progress. When a host fails, its tasks restart from their last checkpoint instead of from the beginning. Checkpointing is off by default.

FieldTypeDefaultDescription
checkpointIntervalinteger3600000 (1 hour)The time between two checkpoints, in milliseconds.
checkpointDurationinteger300000 (5 minutes)How long it takes to create a checkpoint, in milliseconds.
checkpointIntervalScalingnumber1.0The factor by which checkpointInterval is multiplied after each checkpoint. 1.0 keeps it the same.

Example​

"checkpointModels": [
null,
{ "checkpointInterval": 3600000, "checkpointDuration": 300000, "checkpointIntervalScaling": 1.5 }
]

This runs every scenario without and with checkpointing. With checkpointing, the time between checkpoints grows after each checkpoint: 1 hour, 1.5 hours, 2.25 hours, and so on.