-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make job fail when partial tasks' pre-dependent tasks finished and exceeds the waiting timeout #621
Conversation
Refer to #610 |
@zuston thanks.. can you update READ.me as well? also provide some examples and context in description? |
…ceeds the waiting timeout Signed-off-by: zhangjunfan <junfan.zhang@outlook.com>
Signed-off-by: zhangjunfan <junfan.zhang@outlook.com>
Signed-off-by: zhangjunfan <junfan.zhang@outlook.com>
@oliverhu Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls also update configurations in the wiki
* tony.application.group.a = worker,chief | ||
* tony.application.group.b = evaluator | ||
* | ||
* tony.application.dependency.b.timeout.after.a = 3600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does b
have to be a group? I think worker.timeout.after.a
also works from conversations. Can you clarify here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mistake for code comment, i will fix it.
And tony.application.dependency.evaluator.timeout.after.a
is best practise.
public static final String GROUP_REGEX = TONY_APPLICATION_PREFIX + "group\\.([A-Za-z]+)$"; | ||
public static final String GROUP_DEPEND_TIMEOUT_REGEX = | ||
TONY_APPLICATION_PREFIX + "dependency\\.([A-Za-z]+)\\.timeout\\.after\\.([A-Za-z]+)$"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also add some unit tests for these regex..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been tested in Utils.getAllGroupJobTypes
and Utils.getJobTypeDependentGrps
Updating configurations in wiki will be done after this PR merged @oliverhu |
…hed and exceeds the waiting timeout (tony-framework#621) PR: tony-framework#621 * Make job fail when partial tasks' pre-dependent tasks finished and exceeds the waiting timeout * Modify the config * Fix compile error * Correct the code comment Signed-off-by: zhangjunfan <junfan.zhang@outlook.com>
Backport: Make job fail when partial tasks' pre-dependent tasks finished and exceeds the waiting timeout (tony-framework#621) See merge request !72
This PR is to solve the problems of tf workers hang when chief has been finished and other bugs.
For example, tensorflow estimator training job will include some roles of ps/worker/evaluator/chief. Actually, due to the bug of tensorflow or misusing the estimator api, sometimes evaluator will hang. So if we use the configuration as follows, when evaluator is still running after timeout and chief and workers are all finished, the mechanism of dependency group timeout will make job failed.
Conf as follows, the evaluator will be alive 3600(sec) after workers and chief are all finished.
So, this PR introduce the conf of
tony.application.group.{GROUP_NAME}={JOB_TYPES}
andtony.application.dependency.{JOB_TYPE}.timeout.after.{GROUP_NAME} = 3600
Besides, due to tensorflow bug, sometimes the workers will hang after the chief finished. We could use above conf to solve it. The worker will be alive 3600(sec) after chief finished.