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

[DSIP-16][Task] Support stream task #11352

Closed
2 of 9 tasks
Tracked by #14102
caishunfeng opened this issue Aug 8, 2022 · 3 comments
Closed
2 of 9 tasks
Tracked by #14102

[DSIP-16][Task] Support stream task #11352

caishunfeng opened this issue Aug 8, 2022 · 3 comments
Assignees
Labels
DSIP feature new feature help wanted Extra attention is needed

Comments

@caishunfeng
Copy link
Contributor

caishunfeng commented Aug 8, 2022

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Purpose

At present, DS is the scheduling of offline tasks, but as the business requires more and more timely addition of task results, there are more and more scenarios of stream-batch integration, so it is necessary to support real-time tasks.

Use case

  • define stream task, such as flink-stream.
  • stream task action in ds, such as start, stop, savepoint, monitor etc.
  • stream task in DAG, we can do impact analysis based on the relationship between tasks in the DAG, which is a proactive approach.

Related items

@caishunfeng caishunfeng added feature new feature Waiting for reply Waiting for reply DSIP and removed Waiting for reply Waiting for reply labels Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

  • In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
  • If you haven't received a reply for a long time, you can join our slack and send your question to channel #troubleshooting

@caishunfeng caishunfeng self-assigned this Aug 9, 2022
@caishunfeng caishunfeng changed the title [DSIP-16][Task] Stream task [DSIP-16][Task] Support Stream task Aug 10, 2022
@caishunfeng caishunfeng changed the title [DSIP-16][Task] Support Stream task [DSIP-16][Task] Support stream task Aug 10, 2022
@davidzollo
Copy link
Contributor

davidzollo commented Apr 26, 2024

Now the question list:

  1. There is no checkpoint/savepoint management;
  2. If the ds service is republished/restarted, the logic is to kill the old task first and then reschedule the new task (Is this logic reasonable for the stream task? If the new task is rescheduled, it should also be started from the latest ckp, otherwise data will be lost)
  3. When submitting a flink stream task, you need to ensure that the local pid does not exit. If the pid exits abnormally, the flink task cannot be killed (the current ds kill task is based on memory, and if the pid exits, the memory of the task will be cleared)
  4. Lack of logic to pull up the task if the task fails abnormally. (For example, after the yarn cluster hangs and recovers, will the tasks be rescheduled? Is it necessary to add new task status detection logic?)

Extensions:
Currently, flink task submission is done through the shell, and whether the follow-up is based on the shell or the API


现在的问题:
1)没有对checkpoint/savepoint管理;
2)ds服务如果重新发布/重启,逻辑是先kill老任务,再重新调度新任务(这个逻辑对于stream任务是否合理?如果重新调度新任务也应该从最新的ckp启动,不然会丢数据)
3)提交flink stream任务需要保证本地的pid不退出才行,如果pid异常退出,会导致flink任务无法kill(目前ds kill任务是基于内存做的,如果pid退出会清掉任务的内存)
4)缺少任务异常失败,拉起任务的逻辑。(比如yarn集群挂掉恢复后,任务是否会重新调度?是否需要新增任务状态检测的逻辑?)
扩展:
目前flink任务提交是通过shell做的,后续是基于shell还是api

@davidzollo davidzollo added the help wanted Extra attention is needed label May 10, 2024
@davidzollo
Copy link
Contributor

If there is anybody who'd like to implement this feature, please leave a message, thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSIP feature new feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants