Creating a Periodic Checkpoint

The creation of periodic checkpoints and the number of checkpoints to retain is specified when you configure your data grid.

Prerequisites

Before creating a checkpoint, ensure that the following prerequisites are met:
  • Ensure that a quorum of state keepers is running.
The following grid configuration options apply to periodic checkpoints:
checkpoint_interval
Use to specify the time interval (in seconds) for creating checkpoints. Default is 0, which means periodic checkpoints are not created.
checkpoint_retention_limit
Use to specify the number of checkpoints to retain. Older checkpoints are automatically removed as long as no active queries use the checkpoint.

Procedure

  • To enable the creation of a periodic checkpoint, use the grid create command as is shown in the following example:
    grid create copyset_size=2 statekeeper_count=3 checkpoint_interval=600 checkpoint_retention_limit=5 mygrid