System control method and device, electronic equipment, storage medium and program product

CN119690792APending Publication Date: 2025-03-25MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411669714.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-25

Smart Images

  • Figure CN119690792A_ABST
    Figure CN119690792A_ABST
Patent Text Reader

Abstract

The invention provides a system control method and device, electronic equipment, a storage medium and a program product, and the method comprises the steps: obtaining a first index value of an operation index of a business system in an execution time period when the business system executes a first task; difference information between the first index value and a recorded second index value is determined, and the second index value is obtained when the business system executes a simulation task corresponding to the first task; and when it is determined that the operation index meets a first alarm condition of the service system according to the first index value and it is determined that the operation index meets a second alarm condition of the first task according to the difference information, triggering alarm information of the service system. According to the embodiment of the invention, the alarm disturbance to the service system can be reduced, and the processing efficiency of the service system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a system control method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the development of information technology, enterprises and institutions are using IT systems more and more widely. During the operation of business systems of enterprises and institutions, in order to maintain the stability of various businesses in the business systems, various operating indicators of the business systems are usually monitored. The system can collect various operating indicators in various forms (such as metrics, measurements) and record them in the corresponding database; at the same time, corresponding alarm rules can be set, and alarms can be issued when the operating indicators trigger the alarm rules. For example, the operating indicators include CPU usage and memory usage, and the corresponding alarm rules include CPU usage not exceeding 80% and memory usage not exceeding 80%. If the CPU usage exceeds 80% or the memory usage exceeds 80%, an alarm will be issued.

[0003] However, the alarm method in the related technology can only be monitored according to fixed alarm rules. When the business system processes a large amount of data or executes tasks that require a lot of calculations (such as running batch tasks), the operating indicators may change unexpectedly. This change is often normal, but it will generate unnecessary alarms when the fixed alarm rules are triggered, causing alarm disturbances to the business system. Summary of the invention

[0004] The present application provides a system control method and device based on a many-core system, an electronic device, a computer-readable storage medium, and a computer program product, which can reduce unnecessary alarm information during task execution and reduce alarm disturbance to the business system.

[0005] In a first aspect, the present application provides a system control method, the method comprising:

[0006] During an execution period of the business system executing the first task, obtaining a first indicator value of an operation indicator of the business system;

[0007] Determine difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system;

[0008] When it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task, an alarm message of the business system is triggered.

[0009] In a second aspect, the present application provides a system control device, the device comprising:

[0010] An indicator value determination module, used to obtain a first indicator value of an operation indicator of the business system during an execution period of the business system executing the first task;

[0011] a difference determination module, configured to determine difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system;

[0012] The alarm module is used to trigger the alarm information of the business system when it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task.

[0013] In a third aspect, the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can execute the above-mentioned system control method.

[0014] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned system control method when executed by a processor.

[0015] In a fifth aspect, the present application provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned system control method.

[0016] The embodiment provided by the present application can obtain the first indicator value of the operating indicator during the execution period of the business system executing the task, and determine the difference information between the first indicator value and the second indicator value during the execution of the corresponding simulation task, so as to determine the difference between the change in the actual indicator value of the operating indicator and the expected change. Furthermore, when the first indicator value meets the alarm condition of the business system and it is determined based on the difference information that the operating indicator does not meet the expected change, that is, when the alarm condition of the business system and the alarm condition of the first task are met at the same time, the alarm is triggered, thereby reducing unnecessary alarm information during the execution of the task, reducing the alarm disturbance to the business system, and improving the processing efficiency of the business system.

[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings. In the accompanying drawings:

[0019] Figure 1 A schematic diagram of an alarm scheme of the related art;

[0020] Figure 2 A flowchart of a system control method provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of a system control method provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of data expansion of a system control method provided in an embodiment of the present application;

[0023] Figure 5a and Figure 5b A schematic diagram corresponding to an indicator point of a system control method provided in an embodiment of the present application;

[0024] Figure 6a and Figure 6b A schematic diagram of an indicator curve of a system control method provided in an embodiment of the present application;

[0025] Figure 7 A block diagram of a system control device provided in an embodiment of the present application;

[0026] Figure 8 A block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the technical solution of the present application, the exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0028] In the absence of conflict, the embodiments of the present application and the features therein may be combined with each other.

[0029] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0030] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "including" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0031] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.

[0032] Figure 1 FIG. 1 is a schematic diagram of an alarm scheme of the related art. Figure 1 As shown, the system can collect operating indicators in various forms (such as metrics, measurements) and record them in the database, and can pre-set alarm rules to issue an alarm when the operating indicators trigger the alarm rules. For example, the operating indicators include CPU usage and memory usage, and the corresponding alarm rules include CPU usage not exceeding 80% and memory usage not exceeding 80%. If the CPU usage exceeds 80% or the memory usage exceeds 80%, an alarm is issued. The alarm rule can also be the rate of change of the indicator. For example, if the CPU usage increases by more than 20% within 5 minutes, an alarm notification is issued.

[0033] However, the alarm method in the related technology can only be monitored according to fixed alarm rules. When the business system processes a large amount of data or executes tasks that require a lot of calculations (such as running batch tasks), the operating indicators may change unexpectedly. This change is often normal, but it will generate unnecessary alarms when the fixed alarm rules are triggered, causing alarm disturbances to the business system.

[0034] According to the embodiments of the present application, before the business system executes the task, it is possible to first execute the corresponding simulation task within a preset period of time and record the second indicator value of the operating indicator; obtain the first indicator value of the operating indicator during the execution of the task; determine the difference information between the first indicator value and the recorded second indicator value, thereby determining the difference between the change in the actual indicator value of the operating indicator and the expected change. Furthermore, when the first indicator value meets the alarm condition of the business system and it is determined based on the difference information that the operating indicator does not meet the expected change, that is, when the alarm condition of the business system and the alarm condition of the first task are met at the same time, the alarm is triggered, thereby reducing unnecessary alarm information during task execution, reducing alarm disturbances to the business system, and improving the processing efficiency of the business system.

[0035] The system control method according to the embodiment of the present application can be executed by an electronic device such as a server. The server can be an independent physical server, a server cluster composed of multiple physical servers, or a cloud server capable of cloud computing. The method can be implemented by a processor calling a computer-readable program instruction stored in a memory.

[0036] Figure 2 A flowchart of a system control method provided in an embodiment of the present application. Figure 2 , the method comprising:

[0037] In step S21, during the execution period of the business system executing the first task, a first indicator value of the operation indicator of the business system is obtained;

[0038] In step S22, determining difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system;

[0039] In step S23, when it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task, the alarm information of the business system is triggered.

[0040] For example, a business system can be any business system for enterprises and institutions to implement their business, such as a financial business system, an e-commerce business system, etc. During the operation of the business system, various operating indicators will be collected and alarm rules will be set for monitoring to maintain the stability of the system. This application does not limit the type of business system and the specific type of operating indicators.

[0041] In some possible implementations, the first task may be a task that processes a large amount of data or requires a large amount of calculation, such as a batch task or a scheduled task, etc. The present application does not limit the specific type of the first task.

[0042] Among them, batch tasks are widely used in many fields, especially in data processing and computing-intensive tasks. For example, in the field of data analysis, batch tasks can be used to perform statistics, analysis, visualization and other operations on large amounts of data; in the financial field, batch tasks can be used to simulate complex models such as the stock market and foreign exchange market; in the business systems of the banking and insurance industries, batch tasks can be used to process the detailed data generated by the business system and calculate the required results according to certain logic to support the business activities of the enterprise.

[0043] In some possible implementations, when the business system executes the first task, a large amount of data needs to be processed or a large amount of calculations need to be performed, and the operating indicators of the business system may undergo significant changes. For example, the operating indicator CPU usage exceeds the usage threshold, or the CPU usage increases by more than the growth threshold within a certain period of time, triggering an alarm for the business system.

[0044] In some possible implementations, before the business system executes the first task, a simulation task corresponding to the first task may be set, and the task content of the simulation task is the same as the task content of the first task. The data in the business database corresponding to the first task may be copied to the shadow business database, and the simulation task may be executed in the shadow business database within a preset period of time to avoid contaminating online data; and the second indicator value of the operating indicator may be recorded during the execution. In this way, the changes in the operating indicator during the execution of the first task may be recorded in advance.

[0045] In some possible implementations, in step S21, during the execution period of the first task executed by the business system, the index values ​​of various operating indicators of the business system are collected at a preset collection frequency to obtain the first index value of the operating indicator. For example, the execution period of the first task is 10:00-10:20, and the collection frequency is 1 time / minute. For the operating indicator-CPU usage, the first index value including 20 index points can be collected {X a1 , X a2 , X a3 ,……,X aN}, N=20.

[0046] In some possible implementations, in step S22, the difference information between the first indicator value and the second indicator value can be determined based on the first indicator value and the recorded second indicator value. The difference information can be obtained by subtracting the indicator points at the corresponding positions and then calculating the average value; or it can be obtained by generating indicator curves of the first indicator value and the second indicator value respectively, and comparing the similarity between the indicator curves. It should be understood that those skilled in the art can set the specific calculation method of the difference information according to the actual situation, and this application does not limit this.

[0047] In some possible implementations, in step S23, it can be determined whether the change in the operating indicator meets the expected change during the operation of the first task based on the difference information. If the difference information is large, for example, it exceeds a preset threshold, the operating indicator does not meet the expected change during the operation of the first task, that is, the operating indicator meets the second alarm condition of the first task. In this case, if it is determined based on the first indicator value that the operating indicator meets the first alarm condition of the business system, the alarm information of the business system is triggered. This application does not limit the specific settings of the first alarm condition and the second alarm condition.

[0048] In some possible implementations, if the difference information is small, for example, it does not reach a preset threshold, then the operation indicator meets the expected change during the operation of the first task, that is, the operation indicator does not meet the second alarm condition of the first task. In this case, even if it is determined based on the first indicator value that the operation indicator meets the first alarm condition of the business system, the alarm information of the business system is not triggered.

[0049] In some possible implementations, not triggering the alarm information of the business system may mean not generating the alarm information; or after the business system generates the alarm information according to the first alarm condition, the alarm information is shielded so that the alarm information does not reach the user, for example, not being displayed in the corresponding display interface (such as the system monitoring interface), or not sending an alarm notification / email to the user. It should be understood that those skilled in the art may set a specific processing method under the condition of "not triggering the alarm information of the business system" according to actual conditions, and this application does not limit this.

[0050] According to an embodiment of the present application, it is possible to obtain a first indicator value of an operating indicator during the execution of a first task; determine the difference information between the first indicator value and the recorded second indicator value, thereby determining the difference between the change in the actual indicator value of the operating indicator and the expected change. Furthermore, when the first indicator value meets the alarm condition of the business system and it is determined based on the difference information that the operating indicator does not meet the expected change, that is, when the alarm condition of the business system and the alarm condition of the first task are met at the same time, the alarm is triggered, thereby reducing unnecessary alarm information during the execution of the first task, reducing alarm disturbances to the business system, improving the processing efficiency of the business system, and reducing the burden on operation and maintenance personnel and reducing costs.

[0051] The system control method according to the embodiment of the present application is described in detail below.

[0052] As mentioned above, before the business system executes the first task, a simulation task corresponding to the first task may be executed.

[0053] In some possible implementations, the system control method according to the embodiment of the present application further includes:

[0054] Initiating a simulation execution request for a simulation task corresponding to the first task within a preset time period according to the task information of the first task;

[0055] In response to the simulation execution request, executing the simulation task through the business system;

[0056] During a simulation period in which the business system executes the simulation task, a second indicator value of an operation indicator of the business system is obtained.

[0057] For example, the first task has a unique task identifier (bat_task_id) and a task name (bat_task_name). The execution of the first task needs to carry the task identifier (bat_task_id) and the task name (bat_task_name) in the HTTP request header (HTTP header). When it is necessary to record the operating indicators corresponding to a first task, the first task can be set to a pending recording state in the business system.

[0058] Figure 3 A schematic diagram of a system control method provided in an embodiment of the present application.

[0059] like Figure 3 As shown, before executing the first task, the execution request of the first task will be sent to the request agent module of the business system; the request agent module determines whether the first task is in a pending record state based on the task identifier (bat_task_id); if it is in a pending record state, the execution request of the first task is recorded in the preset traffic replication database.

[0060] In some possible implementations, when the preset time period is reached, a simulation execution request for the simulation task corresponding to the first task may be initiated to the system service of the business system according to the task information of the first task. The preset time period may include a business off-peak period, such as 22:00 in the evening to 6:00 the next morning; the task information may include the task identifier, task name, task content, execution request, task status (such as pending recording status) of the first task. This application does not limit the specific time range of the preset time period and the specific content of the task information.

[0061] In some possible implementations, the simulation execution request may carry an HTTP request identifier: http_type=imitate (HTTP request category=simulation), indicating that the request is a simulation execution request for the first task; after the system service of the business system receives the simulation execution request, it sends the simulation execution request to the shadow business database, and executes the simulation task in the shadow business database without polluting online data.

[0062] The first task is executed in the business database of the business system, and the shadow business database is obtained by copying the business database. The data of the business database can be synchronously copied to the shadow business database at a certain period. After the simulation task is completed, the data in the shadow business database can be deleted, and the data of the business database can be synchronously copied again at a certain period for the next simulation task.

[0063] In some possible implementations, during the simulation period when the business system performs the simulation task, the indicator value collection module collects the indicator values ​​of various operating indicators of the business system at a preset collection frequency, obtains the second indicator value of the operating indicator, and records it in the monitoring database, such as Figure 3 For example, if the simulation period is 22:00-22:20 and the collection frequency is 1 time / minute, then for the running indicator - CPU usage, 20 indicator points {X b1 , X b2 , X b3 ,……,X bN2}, N2=20. In addition, the tag of the first task, namely the task identifier (bat_task_id), can be added to these 20 index points.

[0064] In some possible implementations, after the simulation task execution is completed, the task state of the first task may be set to a recorded state, thereby completing the simulation execution process of the first task.

[0065] In this way, the corresponding simulation task can be executed before the business system executes the first task, and the expected changes of the operating indicators during the task execution can be recorded in advance for subsequent comparison. No alarm will be issued when the expected changes are met, thereby reducing the alarm disturbance to the business system and improving the processing efficiency of the business system.

[0066] In some possible implementations, in response to the simulation execution request, the step of executing the simulation task through the business system includes: executing the simulation task multiple times through the business system;

[0067] Wherein, the step of obtaining the second indicator value of the operation indicator of the business system during the simulation period in which the business system performs the simulation task includes:

[0068] During the simulation period when the business system executes the simulation task each time, the third indicator value of the operation indicator of the business system is collected; and the second indicator value is determined according to the third indicator value collected each time.

[0069] That is, after the system service of the business system receives the simulation execution request and sends the simulation execution request to the shadow business database, the simulation task can be executed multiple times in the shadow business database; and during the simulation period of each execution of the simulation task, the index values ​​of various operating indicators of the business system are collected at a preset collection frequency to obtain the third index value of the operating indicator. In this way, after multiple rounds of collection, multiple groups of third index values ​​can be obtained.

[0070] In some possible implementations, for the multiple groups of third indicator values ​​collected, the average value of the indicator points with the same ranking in the multiple groups of third indicator values ​​can be calculated to obtain the average value of each indicator point, and the average value is used as the value of the indicator point of the second indicator value.

[0071] In this way, the accuracy of the expected changes in the recorded operating indicators during task execution can be improved, thereby improving the accuracy of alarm judgment in subsequent processing, reducing the probability of misjudgment, and further improving the processing efficiency of the business system.

[0072] In some possible implementations, such as Figure 3 As shown, when the first task needs to be executed, the execution request of the first task (carrying bat_task_id) will be sent by the request proxy module to the system service of the business system, and the system service will send the execution request to the business database to execute the first task in the business database.

[0073] In step S21, during the execution period of the business system executing the first task, the indicator value collection module collects the indicator values ​​of various operating indicators of the business system at a preset collection frequency, obtains the first indicator value of the operating indicator, and records it in the monitoring database. For example, if the execution period of the first task is 10:00-10:20 and the collection frequency is 1 time / minute, then for the operating indicator-CPU usage, 20 indicator points {X a1 , X a2 , X a3 ,……,X aN1}, N1=20.

[0074] In step S22, Figure 3 The calculation module in the system can determine the difference information between the first indicator value and the second indicator value based on the first indicator value and the recorded second indicator value; and determine whether to trigger an alarm based on the configuration information in the alarm configuration module (including the first alarm condition and the second alarm condition of each operating indicator, etc.).

[0075] In some possible implementations, the first indicator value includes multiple first indicator points collected at a preset frequency during the execution period, and the second indicator value includes multiple second indicator points collected at a preset frequency during the simulation period. Step S22 includes: when the number of the first indicator points and the second indicator points is the same, respectively determining the first absolute difference between the first indicator points and the second indicator points with the same sort; determining the difference information based on the average value of the first absolute difference; wherein the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

[0076] As mentioned above, the first indicator value can be collected at a preset frequency during the execution period of the first task in the business system, and the obtained first indicator value includes multiple indicator points {X a1 , X a2 , X a3 ,……,X aN1}, N1 is an integer greater than 1; similarly, the second indicator value can be collected at a preset frequency during the simulation period of the business system executing the simulation task, and the obtained second indicator value includes multiple indicator points {X b1 , X b2 , X b3 ,……,X bN2}, N2 is an integer greater than 1.

[0077] In some possible implementations, if the number of the first index points and the second index points is the same, the difference between the first index points and the second index points with the same order can be calculated and the absolute value can be obtained to obtain the first absolute difference between the first index points and the second index points. 1 =|X a1 –X b1 |、X 2 =|X a2 –X b2 |、……、X N =|X aN –X bN |; Get N first absolute differences {X 1 , X 2 ,……,X N}. Then, N first absolute differences {X 1 , X 2 ,……,X N The average value of F = (X 1 +X 2 +X 3 +……+X N ) / N, and use the average value F as the difference information between the first index value and the second index value.

[0078] In some possible implementations, for each operating indicator, an indicator difference threshold of the operating indicator may be preset, for example, the indicator difference threshold of the operating indicator "CPU usage rate" is set to 10%; if the difference information obtained is less than the indicator difference threshold, it is considered that the operating indicator meets the expected changes during the operation of the first task, that is, the operating indicator does not meet the second alarm condition of the first task. In this case, even if it is determined based on the first indicator value that the operating indicator meets the first alarm condition of the business system, for example, the operating indicator "CPU usage rate" exceeds the usage threshold of 80%, the alarm information of the business system is not triggered. This application does not limit the specific value of the indicator difference threshold.

[0079] In this way, the accuracy of alarm judgment can be improved, the probability of misjudgment can be reduced, and the processing efficiency of the business system can be improved.

[0080] In some possible implementations, the first alarm condition of the business system includes that the first indicator value is greater than or equal to the indicator value alarm threshold, and / or the change rate of the first indicator value is greater than or equal to the change rate alarm threshold. It should be understood that those skilled in the art can set the first alarm condition according to actual conditions, and this application does not limit the specific setting of the first alarm condition, and the specific values ​​of the indicator value alarm threshold and the change rate alarm threshold.

[0081] In some possible implementations, the method according to the embodiment of the present application further includes: when a first alarm condition of the business system is met and a second alarm condition of the first task is not met, not triggering alarm information of the business system.

[0082] That is, if the obtained difference information is less than the indicator difference threshold, it is considered that the operation indicator meets the expected change during the operation of the first task, that is, the operation indicator does not meet the second alarm condition of the first task. In this case, even if it is determined according to the first indicator value that the operation indicator meets the first alarm condition of the business system, the alarm information of the business system is not triggered.

[0083] In this way, when the operating indicator meets the expected change during the operation of the first task, even if the first alarm condition of the business system is met, no alarm is triggered, thereby reducing unnecessary alarm information during the execution of the first task, reducing alarm disturbances to the business system, and improving the processing efficiency of the business system. In addition, when the first indicator value meets the alarm condition of the business system, and it is determined based on the difference information that the operating indicator does not meet the expected change, that is, when the alarm condition of the business system and the alarm condition of the first task are met at the same time, the alarm is triggered to remind relevant personnel to handle it, thereby reducing the risk of failure of the business system and improving the stability of the operation of the business system.

[0084] In some possible implementations, the amount of data processed during the actual execution of the first task may be different from the amount of data processed during the previous simulation task execution, resulting in different task execution times, and different numbers of collected first indicator values ​​and recorded second indicator values, which cannot be processed by directly calculating the absolute difference. In this case, a data model can be established to expand the data of the first indicator value and the second indicator value in order to compare the differences.

[0085] For example, during the simulation of Task A, the execution time varies from 10 to 20 minutes depending on the amount of data, the CPU usage increases by 20%, the memory increases by 10%, and the disk IO increases by 15%. Based on the above data, the following records are made:

[0086] Time: 10-20 minutes; CPU: +20%; Memory: +10%; Disk IO: +15%.

[0087] In this case, when the time difference between the actual first task A and the simulated task B is large, the time of the shorter task can be lengthened to achieve data expansion.

[0088] In some possible implementations, step S22 includes:

[0089] When the number of the first index points is different from that of the second index points, data expansion is performed on the first index points and the second index points according to the number and value of the first index points and the second index points, respectively, to obtain the third index points and the fourth index points of the same number;

[0090] respectively determining a second absolute difference between a third index point and a fourth index point having the same ranking;

[0091] determining the difference information according to an average value of the second absolute differences;

[0092] Among them, the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

[0093] That is, when the number N1 of the first index points of the first index value is different from the number N2 of the second index points of the second index value, data expansion can be performed according to the ratio of the number of the larger number of index points to the number of the smaller number of index points. For example, if the number of the first index points is greater than the number of the second index points, the ratio of the number of the first index points to the number of the second index points is calculated, and expansion is performed according to the ratio.

[0094] In the example, the first task (task A) is executed for 13 minutes, and the simulation task (task B) is executed for 8 minutes. When the preset frequency is 1 minute, the number of first index points of task A, N1 = 13, and the number of second index points of task B, N2 = 8, N1>N2 and N1 / N2 = 1.625. That is, each index point of task B corresponds to 1.625 index points of task A, but since the index point can only be 1, it is rounded up, and each index point of task B corresponds to 2 index points of task A.

[0095] In the example, each indicator point of Task B corresponds to 2 indicator points of Task A, 8*2=16. Task A requires 16 indicator points, but actually Task A has only 13 indicator points, which is 3 indicator points short. These 3 indicator points need to be added to Task A by interpolation.

[0096] Figure 4 A schematic diagram of data expansion of a system control method provided in an embodiment of the present application.

[0097] In the example, Task A needs to supplement 3 indicator points. The overall time of Task A is evenly divided, 13 / (3+1)=3.25. Then, starting from the first indicator point of Task A, the indicator points are supplemented by stepping 3.25. The first indicator point is supplemented between points 3 and 4 (3.25), and the value is the average of indicator points 3 and 4. The second indicator point is supplemented between indicator points 6 and 7 (6.5). The value is taken in the same way as above, which is the average of indicator points 6 and 7. The third indicator point is supplemented between indicator points 9 and 10 (9.75). The value is taken in the same way as above, which is the average of indicator points 9 and 10. See Figure 4 Three additional indicator points are added.

[0098] Figure 5a and Figure 5b This is a schematic diagram corresponding to the indicator points of a system control method provided in an embodiment of the present application. Figure 5a As shown, the first indicator point of task A is expanded to obtain 16 third indicator points after data expansion; task B is 8 second indicator points, and each second indicator point of task B corresponds to 2 third indicator points.

[0099] like Figure 5b As shown, each second index point can be copied to obtain two fourth index points, and 16 fourth index points can be obtained, so as to achieve a one-to-one correspondence between the third index point and the fourth index point.

[0100] In some possible implementations, after data expansion of the first index point, N3 third index points are obtained; after data expansion of the second index point, N3 fourth index points are obtained, and the number of the third index points is the same as the number of the fourth index points. In the above example, the number of the third index points and the number of the fourth index points are both 16.

[0101] In some possible implementations, the third indicator point and the fourth indicator point with the same ranking may be subtracted and their absolute values ​​may be calculated to obtain a second absolute difference between the third indicator point and the fourth indicator point; then, an average value of the second absolute difference may be calculated, and the average value may be used as the difference information between the first indicator value and the second indicator value.

[0102] In some possible implementations, for each operating indicator, an indicator difference threshold of the operating indicator may be preset, for example, the indicator difference threshold of the operating indicator "CPU usage rate" is set to 10%; if the difference information obtained is less than the indicator difference threshold, it is considered that the operating indicator meets the expected changes during the operation of the first task, that is, the operating indicator does not meet the second alarm condition of the first task. In this case, even if it is determined based on the first indicator value that the operating indicator meets the first alarm condition of the business system, for example, the operating indicator "CPU usage rate" exceeds the usage threshold of 80%, the alarm information of the business system is not triggered. This application does not limit the specific value of the indicator difference threshold.

[0103] In some possible implementations, if the obtained difference information is greater than or equal to the indicator difference threshold, it is considered that the operation indicator does not meet the expected change during the operation of the first task, that is, the operation indicator meets the second alarm condition of the first task. In this case, if it is determined according to the first indicator value that the operation indicator meets the first alarm condition of the business system, the alarm information of the business system is triggered.

[0104] In this way, it is possible to determine the difference information and implement the alarm control of the business system when the number of indicator points is different, further improve the accuracy of alarm judgment, reduce the probability of misjudgment, and improve the processing efficiency of the business system.

[0105] In some possible implementations, in step S22, the difference information between the first index value and the second index value may also be determined by calculating the curve similarity. In this case, step S22 may include:

[0106] generating a first indicator curve according to a plurality of first indicator points of the first indicator value, and generating a second indicator curve according to a plurality of second indicator points of the second indicator value; determining a curve similarity between the first indicator curve and the second indicator curve, wherein the difference information includes the curve similarity;

[0107] The second alarm condition includes that the curve similarity is less than a similarity threshold.

[0108] For example, curve fitting can be performed on multiple first indicator points of the first indicator value to generate a first indicator curve; and curve fitting can be performed on multiple second indicator points of the second indicator value to generate a second indicator curve; then, the curve similarity between the first indicator curve and the second indicator curve is calculated, and the curve similarity is used as the difference information between the first indicator value and the second indicator value.

[0109] It should be understood that those skilled in the art may set a specific method for calculating the curve similarity according to actual conditions, and this application does not impose any limitation on this.

[0110] Figure 6a and Figure 6b A schematic diagram of an indicator curve of a system control method provided in an embodiment of the present application. Figure 6a and Figure 6b As shown in the figure, it is the indicator curve of the running indicator "CPU usage rate", where the horizontal axis is the execution time of the task in minutes, and the vertical axis is the CPU usage rate in percentage. Figure 6a The first indicator curve of "CPU usage" of task A is shown. Figure 6b A comparison between a first indicator curve of “CPU usage rate” of task A and a second indicator curve of “CPU usage rate” of task B is shown.

[0111] In some possible implementations, for each operating indicator, a similarity threshold of the operating indicator may be preset, for example, the similarity threshold of the operating indicator "CPU usage rate" is set to 80%; if the obtained curve similarity is greater than or equal to the similarity threshold, it is considered that the operating indicator conforms to the expected changes during the operation of the first task, that is, the operating indicator does not meet the second alarm condition of the first task. In this case, even if it is determined based on the first indicator value that the operating indicator meets the first alarm condition of the business system, for example, the operating indicator "CPU usage rate" exceeds the usage threshold of 80%, the alarm information of the business system is not triggered. This application does not limit the specific value of the similarity threshold.

[0112] In some possible implementations, if the obtained curve similarity is less than the similarity threshold, it is considered that the operating indicator does not meet the expected change during the operation of the first task, that is, the operating indicator meets the second alarm condition of the first task. In this case, if it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, the alarm information of the business system is triggered.

[0113] In this way, the accuracy of alarm judgment can be improved, the probability of misjudgment can be reduced, and the processing efficiency of the business system can be improved.

[0114] According to the system control method of the embodiment of the present application, before the business system executes the first task, it can first execute the corresponding simulation task within a preset period of time and record the second indicator value of the operating indicator; obtain the first indicator value of the operating indicator during the execution of the first task; and determine the difference information between the first indicator value and the recorded second indicator value in a variety of ways, thereby determining the difference between the change in the actual indicator value of the operating indicator and the expected change. Furthermore, when it is determined based on the difference information that the indicator value of the operating indicator is normal, that is, it does not meet the alarm condition of the first task, even if the indicator meets the alarm condition of the business system, the alarm is not triggered, thereby reducing unnecessary alarm information during the execution of the first task, reducing the alarm disturbance to the business system, and improving the processing efficiency of the business system.

[0115] Moreover, according to the system control method of the embodiment of the present application, an alarm can be triggered only when the first indicator value meets the alarm condition of the business system and it is determined based on the difference information that the operating indicator does not conform to the expected change, that is, when the alarm condition of the business system and the alarm condition of the first task are met at the same time, to remind relevant personnel to handle it, thereby reducing the risk of failure of the business system and improving the stability of the operation of the business system.

[0116] It can be understood that the above-mentioned various method embodiments mentioned in this application can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, this application will not go into details. Those skilled in the art can understand that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined by its function and possible internal logic.

[0117] In addition, the present application also provides a system control device, an electronic device, and a computer-readable storage medium, all of which can be used to implement any system control method provided by the present application. The corresponding technical solutions and descriptions are referred to in the corresponding records of the method part and will not be repeated here.

[0118] Figure 7 A block diagram of a system control device provided in an embodiment of the present application.

[0119] Reference Figure 7 , an embodiment of the present application provides a system control device, the device comprising:

[0120] The indicator value determination module 71 is used to obtain a first indicator value of an operation indicator of the business system during an execution period of the business system executing the first task;

[0121] a difference determination module 72, configured to determine difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system;

[0122] The alarm module 73 is used to trigger the alarm information of the business system when it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task.

[0123] In some possible implementations, before the business system executes the first task, the apparatus further includes:

[0124] A simulation task initiation module, used to initiate a simulation execution request of a simulation task corresponding to the first task within a preset time period according to the task information of the first task;

[0125] A simulation task execution module, used for executing the simulation task through the business system in response to the simulation execution request;

[0126] The simulation indicator value acquisition module is used to obtain the second indicator value of the operation indicator of the business system during the simulation period when the business system performs the simulation task.

[0127] In some possible implementations, the first indicator value includes a plurality of first indicator points collected at a preset frequency during the execution period, and the second indicator value includes a plurality of second indicator points collected at the preset frequency during the simulation period; the difference determination module 72 is configured to:

[0128] When the number of the first indicator points and the second indicator points is the same, respectively determine the first absolute difference between the first indicator points and the second indicator points with the same ranking; determine the difference information based on the average value of the first absolute difference; wherein the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

[0129] In some possible implementations, the first indicator value includes a plurality of first indicator points collected at a preset frequency during the execution period, and the second indicator value includes a plurality of second indicator points collected at the preset frequency during the simulation period; the difference determination module 72 is configured to:

[0130] In the case where the number of the first indicator points is different from that of the second indicator points, data expansion is performed on the first indicator points and the second indicator points respectively according to the number and values ​​of the first indicator points and the second indicator points to obtain the same number of third indicator points and fourth indicator points; the second absolute difference between the third indicator points and the fourth indicator points with the same ranking is determined respectively; the difference information is determined according to the average value of the second absolute difference; wherein the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

[0131] In some possible implementations, the first indicator value includes a plurality of first indicator points collected at a preset frequency during the execution period, and the second indicator value includes a plurality of second indicator points collected at the preset frequency during the simulation period; the difference determination module 72 is used to: generate a first indicator curve based on the plurality of first indicator points of the first indicator value, and generate a second indicator curve based on the plurality of second indicator points of the second indicator value; determine the curve similarity between the first indicator curve and the second indicator curve, the difference information including the curve similarity; wherein the second alarm condition includes that the curve similarity is less than a similarity threshold.

[0132] In some possible implementations, the simulation task execution module is used to: execute the simulation task multiple times through the business system; wherein the simulation indicator value acquisition module is used to: collect the third indicator value of the operating indicator of the business system during the simulation period of each execution of the simulation task by the business system; and determine the second indicator value based on the third indicator value collected each time.

[0133] In some possible implementations, the first alarm condition includes that the first indicator value is greater than or equal to the indicator value alarm threshold, and / or the change rate of the first indicator value is greater than or equal to the change rate alarm threshold; wherein, the device also includes: an alarm control module, which is used to not trigger the alarm information of the business system when the first alarm condition of the business system is met and the second alarm condition of the first task is not met.

[0134] Each module in the above system control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0135] Figure 8 A block diagram of an electronic device provided in an embodiment of the present application.

[0136] Reference Figure 8 An embodiment of the present application provides an electronic device, which includes: at least one processor 701; at least one memory 702, and one or more I / O interfaces 703, connected between the processor 701 and the memory 702; wherein the memory 702 stores one or more computer programs that can be executed by at least one processor 701, and the one or more computer programs are executed by at least one processor 701 so that the at least one processor 701 can execute the above-mentioned system control method.

[0137] Each module in the above electronic device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0138] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned system control method when executed by a processor. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0139] An embodiment of the present application also provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned system control method.

[0140] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).

[0141] As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable program instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technology, portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

[0142] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0143] The computer program instructions for performing the operation of the present application can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.

[0144] The computer program product described herein may be implemented in hardware, software, or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.

[0145] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0146] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0147] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0148] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can also be executed in the opposite order sometimes, depending on the function involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs the function or action of the specification, or can be realized by a combination of special-purpose hardware and computer instructions.

[0149] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.

Claims

1. A system control method, characterized in that: include: During an execution period of the business system executing the first task, obtaining a first indicator value of an operation indicator of the business system; Determine difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system; When it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task, an alarm message of the business system is triggered.

2. The method according to claim 1, characterized in that Before the business system executes the first task, the method further includes: Initiating a simulation execution request for a simulation task corresponding to the first task within a preset time period according to the task information of the first task; In response to the simulation execution request, executing the simulation task through the business system; During a simulation period in which the business system executes the simulation task, a second indicator value of an operation indicator of the business system is obtained.

3. The method according to claim 2, characterized in that The first index value includes a plurality of first index points collected at a preset frequency during the execution period, and the second index value includes a plurality of second index points collected at the preset frequency during the simulation period; The determining the difference information between the first indicator value and the recorded second indicator value includes: In the case where the number of the first index points and the second index points is the same, respectively determining first absolute differences between the first index points and the second index points with the same ranking; determining the difference information according to an average value of the first absolute differences; Among them, the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

4. The method according to claim 2, characterized in that: The first index value includes a plurality of first index points collected at a preset frequency during the execution period, and the second index value includes a plurality of second index points collected at the preset frequency during the simulation period; The determining the difference information between the first indicator value and the recorded second indicator value includes: When the number of the first index points is different from that of the second index points, data expansion is performed on the first index points and the second index points according to the number and value of the first index points and the second index points, respectively, to obtain the third index points and the fourth index points of the same number; respectively determining a second absolute difference between a third index point and a fourth index point having the same ranking; determining the difference information according to an average value of the second absolute differences; Among them, the second alarm condition includes that the difference information is greater than or equal to the indicator difference threshold.

5. The method according to claim 2, characterized in that: The first index value includes a plurality of first index points collected at a preset frequency during the execution period, and the second index value includes a plurality of second index points collected at the preset frequency during the simulation period; The determining the difference information between the first indicator value and the recorded second indicator value includes: generating a first indicator curve according to a plurality of first indicator points of the first indicator value, and generating a second indicator curve according to a plurality of second indicator points of the second indicator value; determining a curve similarity between the first indicator curve and the second indicator curve, the difference information including the curve similarity; The second alarm condition includes that the curve similarity is less than a similarity threshold.

6. The method according to claim 2, characterized in that The step of executing the simulation task by the business system in response to the simulation execution request includes: Execute the simulation task multiple times through the business system; Wherein, obtaining the second indicator value of the operation indicator of the business system during the simulation period in which the business system performs the simulation task includes: During a simulation period when the business system executes the simulation task each time, collecting a third indicator value of an operation indicator of the business system; The second indicator value is determined according to the third indicator value collected each time.

7. The method according to claim 1, characterized in that The first alarm condition includes that the first indicator value is greater than or equal to an indicator value alarm threshold, and / or a change rate of the first indicator value is greater than or equal to a change rate alarm threshold; wherein the method further includes: When the first alarm condition of the business system is met and the second alarm condition of the first task is not met, the alarm information of the business system is not triggered.

8. A system control device, characterized in that: include: An indicator value determination module, used to obtain a first indicator value of an operation indicator of the business system during an execution period of the business system executing the first task; a difference determination module, configured to determine difference information between the first indicator value and a recorded second indicator value, wherein the second indicator value is obtained during execution of a simulation task corresponding to the first task by the business system; The alarm module is used to trigger the alarm information of the business system when it is determined according to the first indicator value that the operating indicator meets the first alarm condition of the business system, and when it is determined according to the difference information that the operating indicator meets the second alarm condition of the first task.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs executable by the at least one processor, and the one or more computer programs are executed by the at least one processor to enable the at least one processor to perform the system control method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the system control method according to any one of claims 1 to 7.

11. A computer program product, characterized in that The invention comprises a computer-readable code or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the system control method as described in any one of claims 1 to 7.