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

[Feature] Entrance support ha and failover task #4282

Merged
merged 66 commits into from
Nov 19, 2023

Conversation

guoshupei
Copy link
Collaborator

What is the purpose of the change

Improve the stability of Entrance service

Related issues/PRs

Related issues: #4181

Brief change log

  • The task status and progress can be obtained using taskId;
  • failover task when entrance shutdown;
  • Dynamically adjust the runningjobs parameter.

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
  • If this is a code change: I have written unit tests to fully verify the new behavior.

- add isInitedStr,isRunningStr method and remove uncompleteStatusArray method in SchedulerEventState
…-1.3.3-feature-ha-4181

� Conflicts:
�	linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java
�	linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/server/DefaultEntranceServer.java
�	linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/conf/EntranceConfiguration.scala
�	linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/utils/JobHistoryHelper.scala
�	linkis-public-enhancements/linkis-jobhistory/src/main/java/org/apache/linkis/jobhistory/dao/JobHistoryMapper.java
@guoshupei
Copy link
Collaborator Author

LKIP-27 Linkis entrance 支持高可用和任务故障转移

  • 状态
    【进展情况记录】:
    提议时间:2022/12/18
    讨论时间:
    接受/拒绝时间:
    完成时间:
    【issues】:[Feature][Entrance] Supports HA and task failover #4020
    【email】:
    【发布】:
    【提议人】: 郭书培
  • 背景
    目前Entrance服务是单点的,并且entrance承载的是服务入口功能,如果出现问题,那么将导致整个服务对外不可用,所以需要将entrance做到高可用,并且对已提交任务实现一定程度的接管,尽可能保障任务正常执行,用户无感。
  • 实现的目标
    1.服务高可用
    2.任务故障转移
  • 实现大体思路
    具体参见文档
    Linkis Entrance 高可用实现梳理.pdf

@peacewong peacewong changed the base branch from dev-1.4.0 to master June 20, 2023 09:39
…3.3-feature-ha-4181

� Conflicts:
�	linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/service/TaskExecutionServiceImpl.scala
�	linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/restful/EntranceRestfulApi.java
�	linkis-computation-governance/linkis-entrance/src/main/java/org/apache/linkis/entrance/server/DefaultEntranceServer.java
�	linkis-computation-governance/linkis-entrance/src/main/scala/org/apache/linkis/entrance/EntranceServer.scala
�	linkis-dist/package/conf/linkis-cg-entrance.properties
�	linkis-dist/package/conf/linkis-mg-gateway.properties
Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 0453b07 into apache:master Nov 19, 2023
12 checks passed
@guoshupei guoshupei deleted the dev-1.3.3-feature-ha-4181 branch July 11, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants