Specifying checkpoint frequency
You should specify checkpoint frequency in your program so that you can easily modify it when the frequency needs to be adjusted.
You can do this by:
- Using a counter in your program to keep track of elapsed time, and issuing a checkpoint call after a certain time interval.
- Using a counter to keep track of the number of root segments your program accesses, and issuing a checkpoint call after a certain number of root segments.
- Using a counter to keep track of the number of updates your program performs, and issuing a checkpoint call after a certain number of updates.