Skip to content
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

Saturn-Console support restarting executor with new process #295

Closed
heziai opened this issue Dec 1, 2017 · 0 comments
Closed

Saturn-Console support restarting executor with new process #295

heziai opened this issue Dec 1, 2017 · 0 comments
Assignees
Milestone

Comments

@heziai
Copy link
Member

heziai commented Dec 1, 2017

需求

  • 用户可以在“executor总览”页面点击“重启”按钮,重启相应的executor

实现

  • 点击“重启”按钮,如果$SaturnExecutors/executors/${executorName}/restart结点不存在,则创建该结点;如果存在,则删除再创建;
  • saturn-job-executor.sh增加restart命令支持,先stop,再start;
  • executor监听restart结点的新增事件,执行以下逻辑:执行saturn-executor.sh restart命令;
  • executor启动时,删除restart结点;
  • executor总览页,如果executor在线并且restart结点存在,restart结点存在的时间<300s,executor状态列显示RESTARTING;如果restart结点存在的时间>=300s,则状态显示ONLINE,可以再次点击“重启”。

说明

  • 上述实现方案,可能不适应于容器,待测试。 容器可以直接在容器管理界面操作重启。
@heziai heziai added the feature label Dec 1, 2017
@heziai heziai added this to the 3.0.0 milestone Dec 1, 2017
@heziai heziai self-assigned this Dec 1, 2017
heziai added a commit that referenced this issue Dec 11, 2017
watch the dump node;  refactor code with #295
@kfchu kfchu modified the milestones: 3.0.0, 3.1.0 Jan 23, 2018
@kfchu kfchu assigned allen8203 and unassigned heziai Feb 28, 2018
IvyLee-cn added a commit that referenced this issue Mar 7, 2018
IvyLee-cn added a commit that referenced this issue Mar 7, 2018
heziai added a commit that referenced this issue Mar 20, 2018
@kfchu kfchu closed this as completed Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants