You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "abzymeinsjtu (via GitHub)" <gi...@apache.org> on 2025/02/05 11:49:17 UTC
[I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
abzymeinsjtu opened a new issue, #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.
### Description
@EricGao888 has released a plugin earlier to implement batch job submission on Aliyun Serverless Spark. After a careful review, i think there are still something to be optimized. as listed below:
1. retry for remote api call is missing now, which may cause inconsistence state when some temporary issue occur like network failure
2. idempotent submitting is necessary especially for the same scheduled node in the same process instance
3. termination should be ensured cuz a single call on CancelJobRun Api can only turn a remote job into cancelling state, but not really canceled
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994#issuecomment-2637013361
1. In fact this also exists in other task plugins, we can set retry on task definition, if we want to set this on task plugin, this might bring additional parameter.
2. Do you means when failover we need to take-over the previous task which has already submitted to remote cluster?
3. +1, we have optimize this in the dev branch, right now, the task instances will not immediately enter the killed state, until the remote cluster return a final state.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
Posted by "abzymeinsjtu (via GitHub)" <gi...@apache.org>.
abzymeinsjtu commented on issue #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994#issuecomment-2639490744
> * Do you means when failover we need to take-over the previous task which has already submitted to remote cluster?
e.g.
when a scheduled task experienced a failover when remote application is still running, i think we should continue polling the state of existing application instead of start a new aone
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994#issuecomment-2642080744
> > > > * Do you means when failover we need to take-over the previous task which has already submitted to remote cluster?
> > >
> > >
> > > exactly
> > > e.g.
> > > when a scheduled task experienced a failover when remote application is still running, i think we should continue polling the state of existing application instead of starting a new one
> >
> >
> > Yes, this is recommmended implementation, this need to refactor the task plugin lifecycle, right now the task plugin in worker cannot know whether its a failover task instance or first run.
>
> this time i'll only make a practice in Aliyun Serverless Spark Task Plugin first. some common pieces of code may be put into abstract remote task plugin in the future.
OK, it's better to create sub issue for each task.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on issue #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994#issuecomment-2639703927
> > * Do you means when failover we need to take-over the previous task which has already submitted to remote cluster?
>
> exactly
>
> e.g.
>
> when a scheduled task experienced a failover when remote application is still running, i think we should continue polling the state of existing application instead of starting a new one
Yes, this is recommmended implementation, this need to refactor the task plugin lifecycle, right now the task plugin in worker cannot know whether its a failover task instance or first run.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement][AliyunServerlessSparkTask] Some Improvement on Aliyun Serverless Spark Task Plugin [dolphinscheduler]
Posted by "abzymeinsjtu (via GitHub)" <gi...@apache.org>.
abzymeinsjtu commented on issue #16994:
URL: https://github.com/apache/dolphinscheduler/issues/16994#issuecomment-2642029556
> > > * Do you means when failover we need to take-over the previous task which has already submitted to remote cluster?
> >
> >
> > exactly
> > e.g.
> > when a scheduled task experienced a failover when remote application is still running, i think we should continue polling the state of existing application instead of starting a new one
>
> Yes, this is recommmended implementation, this need to refactor the task plugin lifecycle, right now the task plugin in worker cannot know whether its a failover task instance or first run.
this time i'll only make a practice in Aliyun Serverless Spark Task Plugin first. some common pieces of code may be put into abstract remote task plugin in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org