Intelligent enterprise digital service monitoring alarm system
The intelligent enterprise digital business monitoring and alarm system solves the problems in the existing technology of scattered classification and notification groups, no life cycle of event processing, and the task scheduling engine does not support step-by-step, and realizes dynamic configuration of tasks and balanced distribution of multiple nodes. It improves the availability of alarm receiving services and the intelligence of event processing, and improves the stability of business operations.
Patent Information
- Application Number
- CN202410938885.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-01
AI Technical Summary
The existing business monitoring and alarm system has problems such as scattered classification and notification groups, no life cycle for event processing, task scheduling engine that does not support step-by-step and weak external alarm event reception and carrying capacity, resulting in reduced alarm credibility, unintelligent processing and Service stability is poor.
Design an intelligent enterprise digital business monitoring and alarm system, including a task scheduling engine module, an alarm receiving module and a self-service system platform. Through in-depth expansion development based on the elasticJob framework and the zookeeper registration center, dynamic task scheduling and multi-node balanced allocation are realized, combined with The current limiter and Kafka message queue improve the receiving capacity, and form the life cycle and closed-loop processing of alarm events through the self-service system platform and event processing module.
It realizes the dynamic real-time configuration and balanced distribution of tasks, improves the availability of alarm receiving services and the intelligence of event processing, forms a closed-loop processing mechanism, and improves the stability of business operations and the self-service of the system.
Abstract
Description
Technical Field
[0001] The present invention relates to the field of business monitoring, and in particular to an intelligent enterprise digital business monitoring and alarm system. Background Art
[0002] Business monitoring alarms usually adopt the method of monitoring business data and business code tracking. Monitoring business data triggers logical SQL queries to the data source through scheduled tasks, and triggers alarms when SQL hits. Business code tracking introduces a JAR package for specific exception interception processing in the project code, or directly adds trigger code to the business code to send alarm events.
[0003] The existing monitoring alarms have the following defects:
[0004] 1. The classification and notification groups of monitoring management are relatively scattered, which makes it difficult to cope with personnel and business changes. It will also cause certain redundancy and mutual interference, reduce the credibility of alarms, and cannot handle abnormal scenarios of message bombardment.
[0005] 2. The alarm event processing has no life cycle or cannot form a closed loop, the event processing plan is not profound, and the event processing does not associate the relevant responsible persons and upstream and downstream instances, which is not intelligent enough.
[0006] 3. The technology used by the scheduling engine of the core task does not support step-by-step (such as Spring's @Scheduled) and can only be deployed on a single machine, which is risky. Some open source packaged step-by-step task frameworks such as elasticjob and xxl-job do not support dynamic configuration of tasks. When elasticjob only needs to execute a large number of tasks once, configuring a shard will cause all tasks to be executed on the same node, and other nodes will remain idle.
[0007] 4. The receiving and carrying capacity of externally triggered alarm events is weak, unable to cope with a large number of concurrent bombardments, and may even directly cause the service to fail to work; the entry point for receiving external events is single and cannot be managed separately, resulting in chaotic external event management. Summary of the invention
[0008] The purpose of the present invention is to address the problems existing in the background technology and propose an intelligent enterprise digital business monitoring and alarm system that supports multi-node step-by-step distribution of tasks while evenly distributing tasks to each node to achieve maximum carrying capacity, supports fully customized dynamic real-time configuration of tasks, highly available alarm receiving services, a fully self-service system platform, an open and orderly, more intelligent event processing mechanism, which gives alarm events a life cycle to form a closed loop and precipitates alarm processing solutions.
[0009] The technical solution of the present invention is an intelligent enterprise digital business monitoring and alarm system, including a task scheduling engine module, an alarm receiving module, a self-service system platform and an event processing module. For the task scheduling engine module, a. Based on the open source elasticJob framework, deep expansion and development are carried out, the step-by-step architecture is retained, the zookeeper registration center is rewritten, the triggering business service method is supported to realize dynamic scheduling, and the real-time addition, deletion, deactivation and activation functions of dynamic tasks are extended; b. The task distribution logic is rewritten to make the tasks evenly distributed on multiple nodes to achieve maximum carrying performance. The alarm receiving module is used to receive alarm events generated by business systems, third-party systems, and operation and maintenance skywalking and prometheus tools. The self-service system platform is isolated from each other by "business", and notification policies are configured under "business", SQL alarm rules are configured under "business", and alarm integration is configured under "business". The event processing module gives the generated alarm event a life cycle from pending-processing-closed, and records and precipitates the problem description and processing plan when the event is closed.
[0010] Preferably, for a in the task scheduling engine module, the specific implementation steps are as follows:
[0011] S11. Build the Zookeeper registration center. The system defines a unified and universal task processor handler. The parameter passed to this task processor is the task ID.
[0012] S12. When the system creates a new task, the task ID + cron expression + unified task processor address is written into the zookeeper registration center. When the task is triggered in the zookeeper registration center through the frequency of the cron expression, the task processor handler method is called according to the processor address, with the task ID as the parameter. The task processor queries the task details according to the ID parameter, obtains the configured data source connection, and executes the SQL configured for the task, so as to achieve the effect of dynamically adding tasks.
[0013] S13. When a task is to be deleted, first find the task in the zookeeper registration center according to the task ID and delete it to achieve the effect of dynamically deleting the task. When the task is disabled and enabled, find the task ID in the zookeeper registration center to disable and enable it accordingly.
[0014] Preferably, for b in the task scheduling engine module, the specific implementation steps are as follows:
[0015] S21. When creating a new task, obtain the total number of servers deployed by the task scheduling engine module, and use this as the total number of execution nodes for the initialization task;
[0016] S22. Randomly select a server from the identified execution nodes as the final execution server for the new task.
[0017] Preferably, the alarm receiving module uses a flow limiter for the receiving inlet and uses a Kafka message queue to smooth out the peaks and fill the valleys.
[0018] Preferably, when the alarm receiving module uses a rate limiter for the receiving entrance, a RateLimiter of 500QPS is set for a single receiving service, and when the value is greater than 500, blocking waiting is performed.
[0019] Compared with the prior art, the present invention has the following beneficial technical effects:
[0020] The present invention establishes a business-driven, top-down, panoramic monitoring and alarm system that covers business monitoring, application monitoring, and resource monitoring, helping enterprises build a digital business system and effectively improving the stability of business operations. DETAILED DESCRIPTION
[0021] This embodiment provides an intelligent enterprise digital business monitoring and alarm system, including a task scheduling engine module, an alarm receiving module, a self-service system platform and an event processing module.
[0022] 1. Task scheduling engine module:
[0023] a. Based on the open source elasticJob framework, we develop deep extensions, retain the step-by-step architecture, rewrite the Zookeeper registry, support triggering business service methods to achieve dynamic scheduling, and extend the real-time addition, deletion, deactivation, and activation functions of dynamic tasks. The specific implementation steps are as follows:
[0024] S11. Build the Zookeeper registration center. The system defines a unified and universal task processor handler. The parameter passed to this task processor is the task ID.
[0025] S12. When the system creates a new task, the task ID + cron expression + unified task processor address is written into the zookeeper registration center. When the task is triggered in the zookeeper registration center through the frequency of the cron expression, the task processor handler method is called according to the processor address, with the task ID as the parameter. The task processor queries the task details according to the ID parameter, obtains the configured data source connection, and executes the SQL configured for the task, so as to achieve the effect of dynamically adding tasks.
[0026] S13. When a task is to be deleted, first find the task in the zookeeper registry center according to the task ID and delete it to achieve the effect of dynamically deleting the task. When the task is disabled and enabled, find the task ID in the zookeeper registry center to disable and enable it.
[0027] b. Rewrite the task distribution logic to evenly distribute tasks across multiple nodes to achieve maximum load-bearing performance. The specific implementation steps are as follows:
[0028] S21. When creating a new task, obtain the total number of servers deployed by the task scheduling engine module, and use this as the total number of execution nodes for the initialization task; for example, if the task scheduling engine module deploys 4 machines, the sequence identifiers generated for this new task are 1, 2, 3, 4, a total of 4 execution nodes, that is, 4 shards;
[0029] S22. For the new task, randomly select one of the execution nodes with identifications 1-4 as the final execution server; for example, the final execution node of the newly created task is randomly identified as 3. When the task is triggered, match the server with identification 3 to execute the alarm task.
[0030] 2. Alarm receiving module: It has high availability and can receive alarm events generated by business systems, third-party systems, and operation and maintenance tools such as skywalking and prometheus;
[0031] A rate limiter is used for the receiving entrance to solve the problem of a large number of event request bombardment in a short period of time affecting the normal operation of the server and ensure the stability of the service. A RateLimiter of 500QPS is set for a single receiving service, that is, 500 requests per second (this number is calculated based on the server configuration). When the value is greater than 500, blocking and waiting are performed; the Kafka message queue is used to smooth the peak and fill the valley. All received alarm request events are batch-written to Kafka for asynchronous processing to achieve powerful service processing capabilities and throughput.
[0032] 3. Self-service system platform:
[0033] Completely self-help, open and orderly;
[0034] (1) "Business" is a circle that is isolated from each other. "Business" can be customized and independently managed. Business members and member roles are configured in the business. Resources are shared among members and they are visible to each other.
[0035] (2) Configure notification policies under "Business" and decide how the alarm message will be delivered to the user based on the notification method (group notification, phone, robot, private message, etc.), notification person, and notification period in the notification policy;
[0036] (3) Configure SQL alarm rules under "Business", create a new rule, customize the rule name, CRON expression (trigger frequency), validity period, specify the data source, fill in the SQL statement, and after the administrator role in the business member approves it, it will automatically join the task scheduling engine and start to take effect. When the SQL hits the result, it will reach the user end with the notification policy under the business;
[0037] (4) Configure alarm integration under "Business". Each new alarm integration creates a unique URL address and can be enabled or disabled individually. Alarm events generated by business systems, third-party systems, and operation and maintenance tools such as skywalking and prometheus are sent to this address in a fixed format, generating events in the system, and then reaching the user end using the notification strategy configured under "Business";
[0038] 4. Event processing module:
[0039] The generated alarm events are given a life cycle from pending to being claimed - being processed - closed, and support shielding, upgrading, etc.; the problem description and processing plan when the event is closed are recorded and deposited as a reference for solving such alarms when they break out again. At the same time, ChatGPT is integrated to automatically analyze some alarm error information and provide solution suggestions.
[0040] This embodiment establishes a top-down, panoramic monitoring and alarm system driven by business, covering business monitoring, application monitoring, and resource monitoring, helping enterprises build a digital business system, effectively improving the stability of business operations, and achieving the following goals:
[0041] 1. Create a dedicated task scheduling engine that supports multi-node step-by-step scheduling while evenly distributing tasks to each node to achieve maximum carrying capacity, and supports fully customized dynamic real-time configuration of tasks.
[0042] 2. Create a highly available alarm receiving service.
[0043] 3. Create a fully self-service system platform that is open and orderly.
[0044] 4. Create a more intelligent event handling mechanism, give alarm events a life cycle to form a closed loop, precipitate alarm handling solutions, and combine AI tools such as GPT to help resolve alarm events.
[0045] The above describes the embodiments of the present invention in detail, but the present invention is not limited thereto. Various changes can be made within the knowledge scope of those skilled in the art without departing from the spirit of the present invention.
Claims
1. An intelligent enterprise digital business monitoring and alarm system, characterized in that: include: Task scheduling engine module: a. Based on the open source elasticJob framework, we develop deep extensions, retain the step-by-step architecture, rewrite the zookeeper registration center, support triggering business service methods to achieve dynamic scheduling, and extend the real-time addition, deletion, deactivation, and activation functions of dynamic tasks; b. Rewrite the task distribution logic to evenly distribute tasks across multiple nodes to achieve maximum load-bearing performance; Alarm receiving module: receives alarm events generated by business systems, third-party systems, and operation and maintenance tools such as skywalking and prometheus; Self-service system platform: Isolate each other by "business" circle, configure notification policy under "business", configure SQL alarm rules under "business", and configure alarm integration under "business"; Event processing module: The generated alarm events are given a life cycle from pending to being claimed - being processed - closed, and the problem description and processing plan when the event is closed are recorded and deposited.
2. The intelligent enterprise digital business monitoring and alarm system according to claim 1 is characterized in that: For a, the specific implementation steps are as follows: S11. Build the Zookeeper registration center. The system defines a unified and universal task processor handler. The parameter passed to this task processor is the task ID. S12. When the system creates a new task, the task ID + cron expression + unified task processor address is written into the zookeeper registration center. When the task is triggered in the zookeeper registration center through the frequency of the cron expression, the task processor handler method is called according to the processor address, with the task ID as the parameter. The task processor queries the task details according to the ID parameter, obtains the configured data source connection, and executes the SQL configured for the task, so as to achieve the effect of dynamically adding tasks. S13. When a task is to be deleted, first find the task in the zookeeper registration center according to the task ID and delete it to achieve the effect of dynamically deleting the task. When the task is disabled and enabled, find the task ID in the zookeeper registration center to disable and enable it accordingly.
3. The intelligent enterprise digital business monitoring and alarm system according to claim 2 is characterized in that: For b, the specific implementation steps are as follows: S21. When creating a new task, obtain the total number of servers deployed by the task scheduling engine module, and use this as the total number of execution nodes for the initialization task; S22. Randomly select a server from the identified execution nodes as the final execution server for the new task.
4. The intelligent enterprise digital business monitoring and alarm system according to claim 1 is characterized in that: The alarm receiving module uses a flow limiter for the receiving entrance and uses the Kafka message queue to smooth out the peaks and fill the valleys.
5. The intelligent enterprise digital business monitoring and alarm system according to claim 4 is characterized in that: When the alarm receiving module uses a rate limiter for the receiving entrance, the RateLimiter is set to 500QPS per second for a single receiving service. When the value is greater than 500, blocking waiting is performed.
