2021SC@SDUSC
DophinScheduler邮箱告警分析
1.首先,后台会通过API服务将告警类型信息写到t_ds_command表里
2.然后,Master会通过AlertManager实现三种级别的告警
也就是把告警信息写到了t_ds_alert表里
①超时告警:
private void runProcess(){
// submit start node 提交到private PeerTaskInstancePriorityQueue readyToSubmitTaskQueue = new PeerTaskInstancePriorityQueue();
submitPostNode(null);
boolean sendTimeWarning = false;
while(!processInstance.isProcessInstanceStop() && Stopper.isRunning()){
/**检查processInstance超时情况,如果超时将信息记录到告警的数据库表*/
if(!sendTimeWarning && checkProcessTimeOut(processInstance) ){
alertManager.sendProcessTimeoutAlert(processInstance,processService.findProcessDefineById(processInstance.getProcessDefinitionId()));
sendTimeWarning = true;
}......
②容错告