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] flink cluster failure alarm&failover #2423

Closed
2 of 3 tasks
Tracked by #2425
xujiangfeng001 opened this issue Mar 10, 2023 · 1 comment · Fixed by #2809
Closed
2 of 3 tasks
Tracked by #2425

[Feature] flink cluster failure alarm&failover #2423

xujiangfeng001 opened this issue Mar 10, 2023 · 1 comment · Fixed by #2809

Comments

@xujiangfeng001
Copy link
Contributor

Search before asking

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

Description

a. If cluster shutdown or lost is detected, an alarm will be sent.
b. If the job is running on the cluster, the job will alarm in batches. At this time, it is necessary to prevent the job from alarming.

Usage Scenario

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@xujiangfeng001
Copy link
Contributor Author

Hello everyone, after discussion, our solution for this issue is as follows:
Requirement:

  • When Flink Cluster encounters an exception and is unable to run, alert the user and block the job alert notification running in the Flink Cluster

Detailed logic:

  1. Flink Cluster implements mentality detection and status updates, as detailed in: [ISSUE-2498][Feature] [SubTask] The cluster supports remote and yarn session heartbeat monitoring #2675
  2. When an exception occurs in a job, it is necessary to determine whether the job deployment mode is remote, yarn session or k8s session:If not, send the job alarm directly. If so, obtain the flink cluster status through the Flink Cluster ID of the job:If the flink cluster status is STOP or LOST, block the job alarm and wait for the flink cluster alarm.If the status of flink cluster is RUNNING, actively trigger a flink cluster status update request to update the relevant status of flink cluster. If flink cluster is updated to STOP or LOST status in the latest update, the job alarm will be blocked; If the flink cluster status is still RUNNING, send an alarm notification for the job.
  3. Flink cluster alarm template uses job alarm template and adds information: number of affected jobs.
  4. Abstract the alarm template code to avoid code redundancy issues.

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 a pull request may close this issue.

1 participant