[ 
https://issues.apache.org/jira/browse/HAMA-445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190428#comment-13190428
 ] 

Thomas Jungblut commented on HAMA-445:
--------------------------------------

bq. Does checkpoint interval here imply the number of supersteps before we 
initiate a checkpoint process?

Yes.

bq. Should this be done within barrier synchronization period

There is already a part in the sync barrier that will do the checkpointing. 
(arround line 250)

{noformat}
      if (conf.getBoolean("bsp.checkpoint.enabled", false)) {
        checkpoint(checkpointedPath(), bundle);
      }
{noformat}

I guess it is enough to do somekind of modulo checking,

{noformat}
if(!disabled && getSuperStep() % interval == 0)
   doCheckpoint
{noformat}

bq.Please let me know if I have the correct understanding.
Yes you have ;)
                
> Make configurable checkpointing
> -------------------------------
>
>                 Key: HAMA-445
>                 URL: https://issues.apache.org/jira/browse/HAMA-445
>             Project: Hama
>          Issue Type: Improvement
>          Components: bsp
>    Affects Versions: 0.4.0
>            Reporter: Edward J. Yoon
>              Labels: newbie
>             Fix For: 0.5.0
>
>
> We should extend the BSPJob to let the user set the checkpoint intervals.
> bq.  job.setCheckpointInterval(5);
> This method should put the parameter into the configuration of the job with a 
> meaningful key, e.G. "bsp.checkpoint.interval".
> In the BSPPeerImpl we should check if this interval has been reached and make 
> the checkpointing accordingly.
> Checkpointing gets called in BSPPeerImpl#sync(), there is already a condition 
> which checks if checkpointing is enabled.
> Plus points:
> If you can provide an additional method in BSPJob that let's the user enable 
> or disable checkpointing. Hint: Configuration key is: 
> "bsp.checkpoint.enabled".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to