...
GroomServer is a process whose main responsibility is to manage bsp tasks. In addition to task management, GroomServer collaborates with BSPMaster so that job execution can be done correctly. Some works GroomServer performs in communicating with BSPMaster include:
...
- Check local disk:
- Check local disk if writable.
- Delete files under local dir (bsp.local.dir)
- Clear state table:
Wiki Markup Clean up tasks (Map\[TaskAttemptID \-> TaskInProgress\])
Wiki Markup Initialize job (Map\[BSPJobID \-> RunningJob\])
Wiki Markup Cleanup running tasks (Map\[TaskAttemptID \-> TaskInProgress\])
- Configure max tasks, default to 3.
- Start http server: An embedded http service.
- Registration: Enroll itself to BSPMaster by GroomServerStatus.
- Task Report:
...
- Report tasks status back BSPMaster periodically.
State Diagram
GroomServer state includes
...