Disclosure of Invention
The present disclosure provides a method, an apparatus, a storage medium, and an electronic device for executing an alarm task, so as to partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the specification provides a method for executing an alarm task, which comprises the following steps:
acquiring abnormal alarm information aiming at a target application;
Acquiring the information of a stop service maintenance list, and determining the running state information corresponding to a server on which the target application runs according to the information of the stop service maintenance list;
Under the condition that the server on which the target application operates is determined to be in a stop maintenance state according to the operation state information, carrying out information processing on the abnormal alarm information based on a preset information filtering processing rule to obtain a processing result;
And executing an alarm task aiming at the target application based on the processing result.
Optionally, the step of determining, according to the outage maintenance list information, running state information corresponding to a server on which the target application runs, specifically includes:
determining server identification information corresponding to a server on which the target application operates;
and determining the running state information corresponding to the server on which the target application runs according to the server identification information and the stop maintenance list information.
Optionally, the step of determining, according to the server identification information and the outage maintenance list information, operation state information corresponding to a server on which the target application operates, includes:
determining alarm generation time information corresponding to the abnormal alarm information according to the abnormal alarm information;
When the server on which the target application operates is determined to exist in the stop service maintenance list information according to the server identification information and the stop service maintenance list information, determining stop service maintenance time information corresponding to the server on which the target application operates according to the stop service maintenance information corresponding to the server on which the target application operates in the stop service maintenance list information, wherein the stop service maintenance time information is used for indicating the stop service maintenance starting time to the stop service maintenance ending time of the server on which the target application operates when the stop service maintenance is performed;
And determining the running state information according to the alarm generation time information and the stop service maintenance time information corresponding to the server on which the target application runs.
Optionally, the step of performing information processing on the abnormal alarm information based on a preset information filtering processing rule to obtain a processing result specifically includes:
And filtering the abnormal alarm information according to a preset special alarm filtering rule, wherein the special alarm filtering rule is used for representing that the alarm type corresponding to the invalid alarm sent by the server with the operation state of being the maintenance stopping state is filtered.
Optionally, the step of executing the alert task for the target application based on the processing result specifically includes:
If the abnormal alarm information is not filtered according to the special alarm filtering rule, the unfiltered abnormal alarm information is sent to a terminal device used by a maintainer to perform abnormal alarm aiming at the target application to the maintainer, so that the terminal device used by the maintainer executes maintenance tasks aiming at the target application based on the received unfiltered abnormal alarm information.
Optionally, the step of performing information processing on the abnormal alarm information based on a preset information filtering processing rule to obtain a processing result specifically includes:
And adding information marks to the abnormal alarm information according to a preset special alarm marking rule to obtain marked abnormal alarm information, wherein the special alarm marking rule is used for representing the special marking of the abnormal alarm information corresponding to the server with the operation state of being the maintenance state of stopping service.
Optionally, the step of executing the alert task for the target application based on the processing result specifically includes:
And sending the marked abnormal alarm information to terminal equipment used by a maintainer to carry out abnormal alarm aiming at the target application to the maintainer, so that when the terminal equipment used by the maintainer detects that the received abnormal alarm information is the marked abnormal alarm information, filtering the marked abnormal alarm information according to a preset invalid alarm filtering rule aiming at the abnormal alarm information of a server in a stop-and-take maintenance state, and executing maintenance tasks aiming at the target application based on the filtered abnormal alarm information.
The present specification provides an alarm task execution device, including:
The acquisition module is used for acquiring abnormal alarm information aiming at the target application;
The determining module is used for acquiring the stop service maintenance list information and determining the running state information corresponding to the server on which the target application runs according to the stop service maintenance list information;
The processing module is used for carrying out information processing on the abnormal alarm information based on a preset information filtering processing rule under the condition that the server on which the target application operates is determined to be in a stop maintenance state according to the operation state information, so as to obtain a processing result;
And the execution module is used for executing the alarm task aiming at the target application based on the processing result.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the method of executing an alert task described above.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the execution method of the alert task when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
According to the method, in the execution method of the alarm task provided by the specification, the running state information corresponding to the server on which the target application runs can be determined according to the acquired abnormal alarm information corresponding to the target application and the stop maintenance list information. And then, when the server on which the target application operates is determined to be in a stop maintenance state according to the determined operation state information, carrying out information processing on the abnormal alarm information of the target application based on a preset information filtering processing rule to obtain a processing result. And finally, executing an alarm task aiming at the target application based on the processing result.
From the above, it can be seen that, the method for executing an alarm task provided in the present disclosure may determine an operation state of a server on which a target application operates, and when determining that the server on which the target application operates is in a maintenance-out state, the server may process abnormal alarm information according to an information filtering processing rule, so as to execute the alarm task. By the method, errors and invalid abnormal alarms caused by maintenance stopping in the alarm information can be accurately and effectively filtered, the working pressure of subsequent maintenance personnel for maintaining target applications is reduced, invalid interference is avoided, and the working efficiency is effectively improved. In addition, the method can effectively improve the solution efficiency corresponding to the abnormal alarm actually existing in the actual running process of the target application, and the continuous optimization and solution of the application problem can also improve the use experience of the user to a certain extent.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method for executing an alarm task provided in the present specification, which includes the following steps:
s101: and acquiring abnormal alarm information aiming at the target application.
S102: and acquiring the information of the stop service maintenance list, and determining the running state information corresponding to the server on which the target application runs according to the information of the stop service maintenance list.
With the advancement of technology, in the current application development field, in order to ensure that an application operates stably and discover and process abnormal situations in the application operating process in time, application developers often implement comprehensive monitoring coverage on the application and a corresponding server network. Such monitoring mechanisms may raise unrealistic exception alarms when a server on which the application is running is scheduled for out-of-service maintenance. Such maintenance-induced alarms, while very similar to the actual abnormal fault manifestation, may actually be induced for quite different reasons, thus increasing unnecessary workload of maintenance personnel and may also result in response delays in the actual problem to be solved. Therefore, how to accurately identify and process the alarm information which may be invalid alarm in the abnormal alarm information is a problem to be solved urgently.
Therefore, the present specification provides a method for executing an alarm task, where the execution subject adopted by the method provided in the present specification may be a server, and may also be a terminal device such as a desktop computer, a notebook computer, or the like. In addition, the execution subject of the present specification may also be a subject in the form of software, such as a client installed in a terminal device or the like. For convenience of explanation, the execution method of the provided alarm task will be explained below with only the server as the execution subject in this specification.
Based on the above, the server applying the method for executing the alarm task provided in the present specification can process the abnormal alarm information based on the information filtering processing rule according to the obtained abnormal alarm information and the stop maintenance list information aiming at the target application, and execute the alarm task according to the processing result.
The specific application scenario of the server when executing the alarm task can be determined according to the actual application requirement. For example, when the online transaction platform field performs timing maintenance on the server, the server may receive an alarm that the online transaction application cannot be connected to the corresponding network in the server maintenance time, and may also receive an application operation abnormality alarm such as abnormal display of the online number of users of the online transaction platform. The server applying the method in the specification can acquire the abnormal alarm information and the stop service maintenance list information aiming at the online transaction application so as to process various types of abnormal alarm information, thereby executing the alarm task according to the processing result, effectively discharging invalid alarms and improving the solving and maintenance efficiency of the true abnormality of the application.
For another example, in the field of game development, when a certain game area suit of a game application needs to be subjected to a maintenance outage, a server applying the method in the present specification may acquire abnormal alarm information and maintenance outage list information for a target application in the maintenance outage process, and process invalid abnormal alarms possibly caused by maintenance outage based on preset information filtering processing rules, for example, a user cannot connect to a network through an application interface, the statistics of online numbers of the game is abnormal, and so on. Then, the server can send real and effective abnormal alarms to related personnel responsible for maintenance, so that the work load of the maintenance personnel is reduced, the solution efficiency of the real abnormal phenomenon is improved, and the use experience of a user is indirectly improved.
In this specification, the server may acquire the abnormality alert information for the target application, and after receiving the abnormality alert information, acquire the outage maintenance list information. And then, the server can determine the running state information corresponding to the server on which the target application runs according to the acquired stop maintenance list information.
The specific type and content of the abnormal alarm information for the target application are not strictly limited in the specification, and may be, for example, alarm information that is relatively common in application development and operation fields, such as record information of a running crash of the target application, that the target application cannot be connected to a corresponding server network (e.g., the target application cannot be connected to the corresponding network to complete payment when a user pays for online shopping), that the number of online users counted by the server during running of the target application is suddenly reduced in a short time (e.g., the number of online users is greatly reduced when the online number of the game application monitors the online number of the game, and that a sudden fall occurs in daily activities of the user, etc.), where the specific type and content may be flexibly set according to actual application scenes and requirements.
In addition, the above-mentioned outage maintenance list information may be specifically used to record and represent outage maintenance time plans for a single or a plurality of servers on which the target application is run, which are preset by developers corresponding to the target application. For example, in the field of game development, a developer may issue and operate a network game on multiple application platforms, and may divide the network game into different independent game areas on different application platforms in consideration of the size of the player body. The method facilitates statistics of user data and simultaneously enables each district service to be independently managed and maintained. In a similar case, the server to which the method in the present specification is applied can acquire the outage maintenance list information in which outage maintenance time plans of a plurality of different servers (e.g., different game areas) are recorded.
Specifically, the server can determine, according to the abnormality alert information, a server identifier corresponding to the server based on which the abnormality occurs in the operation of the target application. The server may then determine, according to the server identifier corresponding to the single or multiple servers recorded in the obtained outage maintenance list information, whether the outage maintenance list information includes a server identifier corresponding to the abnormal alarm information, that is, whether the server on which the target application operates is preset with an outage maintenance plan.
Then, the server can determine the alarm generation time information corresponding to the abnormal alarm information according to the abnormal alarm information. Then, the server may determine, according to the server identification information and the outage maintenance list information, outage maintenance time information corresponding to the server on which the target application is based when determining that the server on which the target application is running exists in the outage maintenance list information. Furthermore, the server can determine the running state information corresponding to the server on which the target application runs according to the determined alarm generation time information and the determined stop service maintenance time information.
The stop service maintenance time information may specifically be represented as a stop service maintenance start time to a stop service maintenance end time when the server on which the target application operates performs the stop service maintenance. For example, assume that the server identification information corresponding to the server on which the target application operates is "01", and the server acquired outage maintenance list information includes the server on which the target application operates, that is, the outage maintenance list information includes outage maintenance time information corresponding to the "01" identification.
Assuming that the server "01" on which the target application operates is preset by the target application developer to be from 6:00am to 11:00am, the corresponding stop service time information in the stop service maintenance list information may be "from 6:00am to 11:00am" or may be expressed as "6:00 am-11:00am of X month X day". The alarm generation time information corresponding to the server '01' on which the target application operates is determined to be '7:30 am on the X month and the X day', and the server can determine the corresponding operation state information according to the alarm generation time information and the stop service maintenance time information, namely, determine that the server '01' is in the stop service maintenance state when the abnormal alarm information is generated.
S103: and under the condition that the server on which the target application operates is determined to be in a stop maintenance state according to the operation state information, carrying out information processing on the abnormal alarm information based on a preset information filtering processing rule to obtain a processing result.
S104: and executing an alarm task aiming at the target application based on the processing result.
In the present specification, when the server determines that the server on which the target application operates is in the outage maintenance state according to the operation state information determined in the above steps, the server may perform information processing on the abnormal alarm information corresponding to the server on which the target application operates based on a preset information filtering processing rule, so as to obtain a processing result. Then, the server can execute the alarm task for the target application according to the corresponding processing result.
It should be noted that, the above-mentioned information filtering processing rule is used to indicate a processing rule of the abnormal alarm information corresponding to the server in the outage maintenance state as a whole, and may specifically include a special alarm filtering rule based on which the server processes the information, and an invalid alarm filtering rule based on which a terminal device used by a subsequent maintainer operates. According to different application scenes and requirements, the information filtering processing rules can be correspondingly divided into two different information processing methods, one method can be that the server performs exception processing on exception alarm information corresponding to the server in a service stopping maintenance state based on a preset special alarm filtering rule, and the exception alarm information which does not meet the special alarm filtering rule is transmitted to terminal equipment used by maintenance personnel.
The other information processing method corresponding to the information filtering processing rule may be to firstly perform the marking processing on the abnormal alarm information corresponding to the server in the stop maintenance state through the server, and transmit the marked abnormal alarm information to the terminal device used by the maintainer, so that the terminal device used by the maintainer performs the filtering processing on the marked abnormal alarm information based on the invalid alarm filtering rule.
Specifically, after determining that the server on which the target application operates is in a stop maintenance state, the server may perform filtering processing on abnormal alarm information corresponding to the server on which the target application operates according to a preset special alarm filtering rule. The special alarm filtering rule is used for indicating that the alarm type corresponding to the invalid alarm sent by the server with the operation state being the outage maintenance state is filtered, and in short, the server can be understood that the invalid abnormal alarm possibly caused by the outage maintenance of the server based on the operation of the target application can be actively filtered based on the preset special alarm filtering rule.
For example, it is assumed that the server obtains a plurality of abnormal alarm information for the target application, and specifically may be an operation crash alarm of the target application in operation, a connection error alarm of a server network on which the target application cannot normally connect to operate, an abnormal phenomenon alarm that the target application corresponds to an online user and is greatly reduced in number in a short time, and the like. And then, the server determines that the server identifiers corresponding to the plurality of types of abnormal alarm information belong to the same server according to the abnormal alarm information, and determines that the running state of the server corresponding to the plurality of types of abnormal alarm information is a stop maintenance state according to the stop maintenance list information. At this time, the server may perform filtering processing on the above-mentioned various abnormal alarm information based on a preset special alarm filtering rule.
Regarding the setting content and reasons of the special alarm filtering rules, because the interface of the server network facing the user is in a closed state when the server is in a maintenance stopping state, the user cannot connect to the corresponding server network when using the target application in the period, and thus abnormal phenomena such as connection failure of the server network, change of the number of online people of the user and the like can occur. Therefore, the special alarm filtering rule may be set with a judgment rule for judging that abnormal alarm information of types such as "server cannot be normally connected" and "the number of user logins varies greatly" generated for a server whose operation state is a maintenance state of stopping, may be invalid or erroneous.
Furthermore, according to the rule, the server can regard the abnormal alarm information of the same type as the "connection error alarm of the server network on which the target application cannot be normally connected and operated" (corresponding to the "server cannot be normally connected"), the "abnormal phenomenon that the target application is greatly reduced in number in a short time (corresponding to the" large change in the number of user login people "), and the like, as the invalid abnormal alarm information which can be filtered. After the above-mentioned abnormal alarm information is filtered, the abnormal alarm information corresponding to "running crash alarm of target application in running" may be remained, and the server may send the abnormal alarm information whose type is not satisfied with the filtering condition specified in the special alarm filtering rule, that is, the abnormal alarm information whose abnormality generation reason is irrelevant to stopping service and maintenance of the server on which the running is based, to the terminal equipment used by the maintainer, so as to promote the subsequent maintenance task.
Further, the server may send the abnormal alarm information that is not filtered based on the special alarm filtering rule, that is, the abnormal alarm information that may occur because the server on which the above example is based is not in a stop maintenance state, to a terminal device used by a maintainer responsible for abnormal maintenance of the target application, so as to feed back an abnormal alarm for the target application to the maintainer, so as to complete executing an alarm task for the target application. The terminal device used by the maintainer can execute the maintenance task aiming at the target application based on the received abnormal alarm information which is not filtered by the steps. The execution process and the execution method of the specific maintenance task are not strictly limited in the specification, and can be flexibly set according to the actual application scene.
By the method of filtering before feeding back, invalid alarms caused by stopping maintenance of the server based on operation in abnormal alarm information aiming at the target application can be effectively reduced, so that working pressure and time waste of subsequent maintenance personnel are reduced, and working efficiency is improved.
In addition, in this specification, in addition to the above-mentioned server being capable of processing the abnormal alarm information corresponding to the server on which the target application is running in the stop maintenance state based on the special alarm filtering rule, the server may be further capable of performing an alarm task based on the abnormal alarm information after the marking processing by performing the marking processing on the abnormal alarm information, that is, another information processing method corresponding to the information filtering processing rule mentioned in the above-mentioned step.
Specifically, after determining that the server on which the target application operates is in the outage maintenance state, the server may add an information tag to the abnormal alarm information corresponding to the server in the outage maintenance state according to a preset special alarm tag rule, so as to obtain the abnormal alarm information after the tag processing. The special alarm marking rule is used for representing that special marking is carried out on abnormal alarm information corresponding to the server in the stop maintenance state, and the specific marking mode can be adding additional marks, adding additional character strings and the like. The above marking process can be simply understood that the server may additionally mark all the abnormal alarm information of the server corresponding to the out-of-service maintenance state, whether the reason of the abnormality is related to the out-of-service maintenance of the server on which the target application is running or not, and the marked abnormal alarm information is used for prompting the maintenance personnel that the abnormal alarm information is the server corresponding to the out-of-service maintenance state when the subsequent maintenance personnel deal with the abnormal problem.
The server can directly send the marked abnormal alarm information to the terminal equipment used by the maintainer corresponding to the target application, so that the maintainer can be subjected to abnormal alarm aiming at the target application, and the alarm task is completed. After the terminal equipment used by the maintainer receives the abnormal alarm information, whether the obtained abnormal alarm information is the abnormal alarm information after the marking processing can be judged by detecting whether the abnormal alarm information is provided with the corresponding marking information. After the terminal equipment used by the maintainer determines that the received abnormal alarm information is the marked abnormal alarm information generated in the steps, the terminal equipment used by the maintainer can filter the marked abnormal alarm information according to the preset invalid alarm filtering rule of the abnormal alarm information of the server in the stop-and-service maintenance state, and further execute the maintenance task aiming at the target application based on the filtered abnormal alarm information.
The example continues along with the example in processing the abnormal alarm information based on the special alarm filtering rule. The abnormal alarm information after the marking processing is assumed to comprise an operation breakdown alarm corresponding to the target application, a connection error alarm of a server based on which the target application cannot be normally connected and operated, an abnormal phenomenon alarm of the number of the target application which is greatly reduced in a short time corresponding to an online user, and the like. After the terminal equipment used by the maintainer determines the marked abnormal alarm information according to the obtained abnormal alarm information, the marked abnormal alarm information can be filtered based on a preset invalid alarm filtering rule.
The setting content and reasons of the invalid alarm filtering rule are similar to the setting content corresponding to the special alarm filtering rule in the method. Because the interface of the server facing the user in the state of stopping service maintenance is closed, the user can possibly not normally connect to the corresponding server network when using the target application in the period, and the monitoring end of the server data can possibly monitor the abnormal condition that the number of online logins of the target application is reduced in a large scale in a short time, and the like. Therefore, the specific content of the invalid alarm filtering rule can be set to be the marked abnormal alarm information of the types such as the abnormal alarm that the server in the stop maintenance state cannot be normally connected with, the abnormal alarm that the user login number corresponding to the server in the stop maintenance state changes greatly, and the like, which can be regarded as the filtered or ignored abnormal alarm information.
Therefore, based on the invalid alarm filtering rule, the terminal device used by the maintainer can filter the abnormal alarm information of the types such as 'connection error alarm of the server based on which the target application cannot normally connect and run', and 'abnormal phenomenon alarm of the number of which the target application is greatly reduced in a short time corresponding to the online user'. The abnormal reasons such as 'operation crash alarm corresponding to the target application' are not satisfied with the filtering conditions set in the invalid alarm filtering rule, namely, the abnormal reasons may be abnormal alarms which are not related to the server stopping maintenance, and the terminal equipment used by the maintenance personnel can keep and display the abnormal reasons and feed the abnormal reasons back to the maintenance personnel, so that the abnormal problems actually existing in the operation process of the target application can be solved in time.
If the abnormal alarm information which is not marked contains the abnormal alarm information of the type similar to the type of error alarm of the server on which the target application cannot be normally connected and run, abnormal phenomenon alarm of the on-line user corresponding to the target application which is greatly reduced, the server on which the target application corresponding to the abnormal alarm information runs is in a normal running state. The terminal equipment used by the maintainer does not carry out filtering processing based on invalid alarm filtering rules on the information, and the terminal equipment is completely displayed and fed back to the maintainer. Of course, when the terminal device used by the maintainer performs filtering processing on the marked abnormal alarm information based on the invalid alarm filtering rule, various modes can be selected, for example, filtering can be directly performed, or filterable marking can be performed on filterable abnormal alarm information meeting the invalid alarm filtering rule, so that the maintainer is prompted in the subsequent maintenance executing process.
In addition, in this specification, the specific rule content and the judgment condition corresponding to the special alarm marking rule or the invalid alarm filtering rule mentioned in the above method are only illustrated for easy understanding. Specific contents corresponding to the special alarm marking rule and the invalid alarm filtering rule are not strictly limited in the specification, and can be flexibly set according to actual application scenes.
In order to facilitate understanding of the overall trend and flow of the method for executing an alarm task provided in the present specification, an explanation will be given below with an overall structural diagram of the method for executing an alarm task, as shown in fig. 2.
Fig. 2 is a schematic overall structure diagram of an execution method of an alarm task provided in the present specification.
As shown in fig. 2, a server applying the method in the present specification may obtain abnormal alarm information for a target application, and determine, according to the obtained outage maintenance list information, running state information corresponding to a server on which the target application runs. If the server on which the target application operates is determined not to be in the stop maintenance state, the server can directly send the acquired abnormal alarm information to the terminal equipment used by the maintenance personnel so as to execute the corresponding alarm task. If the server on which the target application operates is determined to be in the stop maintenance state, the server can process the abnormal alarm information according to the preset information filtering processing rule to obtain a processing result.
The specific processing mode for the abnormal alarm information corresponding to the maintenance stopping state can be that the server firstly filters the abnormal alarm information in the steps, eliminates invalid abnormal alarm information possibly caused by maintenance stopping in the abnormal alarm information, and feeds the unfiltered abnormal alarm information back to the terminal equipment used by maintenance personnel. The abnormal alarm information is marked firstly or the abnormal alarm information is marked firstly in the steps, and the filtering processing is carried out on the terminal equipment which is fed back to maintenance personnel. The final objective is to accurately filter invalid abnormal alarm information caused by stopping maintenance in the abnormal alarm information, reduce the workload and error interference of maintenance personnel, improve the working efficiency, and simultaneously enable the real abnormal problem of the target application in the operation process to be found and solved in time, thereby improving the use experience of users.
In addition to the above, in this specification, the server may determine, according to the obtained abnormal alarm information, corresponding alarm reason information, and further determine, according to the alarm reason information, whether filtering processing needs to be performed on the abnormal alarm information. The alarm reason information may be specifically used to represent the reason why the abnormal phenomenon corresponding to the abnormal alarm information occurs.
Specifically, after the server obtains the abnormal alarm information, at least one alarm reason information for indicating the reason of the abnormal phenomenon can be determined according to the abnormal alarm information. For example, the abnormal alarm information of "the target application cannot be connected to the server network" may correspond to alarm cause information of "the target application network interface operation failure", "the server network operation failure", and "network congestion", etc. Then, the server can simulate and generate abnormal operation data corresponding to the server when the abnormal phenomenon corresponding to the alarm reason information occurs according to the alarm reason information. For example, when the alarm cause information is indicated as "the operation failure of the target application network interface", the corresponding abnormal operation data may be "the operation occupancy rate of the server processor is too high, approaching 100%, resulting in that the application cannot be connected to the network", and for example, when the alarm cause information is indicated as "the network congestion", the corresponding abnormal operation data may be "the occupation rate of the network bandwidth corresponding to the server network is too large, approaching XX%, resulting in the network congestion".
When determining that the operation state information of the server corresponding to the abnormal alarm information is represented as a maintenance stopping state according to the maintenance stopping list information mentioned in the above step and the obtained abnormal alarm information, the server may determine whether the value or the duty ratio of the abnormal operation data corresponding to the abnormal event corresponding to the alarm cause information falls in the operation data range corresponding to the server in the maintenance stopping state according to the pre-stored or pre-simulated operation data range corresponding to the server in the maintenance stopping state and the abnormal operation data corresponding to the server when the abnormal event corresponding to the alarm cause information occurs, that is, whether the abnormal alarm event corresponding to the abnormal alarm information may occur in the maintenance stopping time period of the server, and the corresponding abnormal operation data also matches with the operation data range corresponding to the server in the maintenance stopping state.
Whether the server is in a service-stopping maintenance state or the server is in a service-stopping maintenance state, or the abnormal operation data corresponding to the server is determined based on the operation data of the server based on which the target application operates, the specific data type and the data content are not strictly limited in the specification, for example, the bandwidth size of the server network when the target application operates based on the server, the utilization rate of a processor (CPU) in the server, the disk read-write rate when the server processes the operation data corresponding to the target application, and the like can be flexibly adjusted according to the actual application requirements.
Further, if abnormal operation data is generated according to the operation data range and simulation corresponding to the server in the outage maintenance state, it is successfully determined that the data value or the duty ratio corresponding to the abnormal operation data is within the value range corresponding to the operation data range, the server can regard the corresponding abnormal alarm information and the abnormal phenomenon as the occurrence caused by the outage maintenance of the server based on the operation of the target application, and filter the abnormal alarm information.
For example, assuming that the alarm cause information determined by correspondence to an abnormal alarm information is "server network operation fault", the server may simulate and generate corresponding abnormal operation data according to the alarm cause information to be "the server may have a downtime condition", and the processor in the server may have a low occupancy rate, which is close to 0% ". The operating data range corresponding to the server in the service stopping maintenance state is assumed to be specifically "in the service stopping maintenance state, and the usage rate range of the processor in the server may be 0% -5%". Further, it is obvious that, in this example, the data value or the duty ratio corresponding to the abnormal operation data is within the value interval corresponding to the operation data range, and the server may consider the corresponding abnormal alarm information to occur due to the server performing the outage maintenance, and perform the filtering process.
If the abnormal operation data simulated based on any alarm cause information corresponding to the abnormal alarm information is not matched with the operation data range corresponding to the server in the maintenance stopping state, the server can consider that the abnormal alarm information and the corresponding abnormal phenomenon occur during the maintenance stopping period of the server, but the corresponding real abnormal cause is probably not generated due to the maintenance stopping period of the server. Therefore, the server does not filter the abnormal alarm information, but sends the abnormal alarm information to the terminal equipment used by the maintainer, so as to execute an alarm task and carry out alarm prompt aiming at the target application to the maintainer.
Still to illustrate, assuming that the alarm reason information determined by correspondence of an abnormal alarm information is "network congestion", the server can simulate and generate corresponding abnormal operation data according to the alarm reason information to be "network bandwidth occupation is too high to be 100% when the server operates, so that the network congestion is caused, and an application cannot be connected to the server. If the operation data range corresponding to the server in the outage maintenance state is specifically "in the outage maintenance state", the network bandwidth occupancy rate range of the server may be 0% -10% ". It is obvious that the abnormal operation data corresponding to the alarm reason information is not in the operation data range corresponding to the server in the stop maintenance state, so that the server can consider that the corresponding abnormal alarm information is possibly generated not by the stop maintenance of the server, does not filter the abnormal alarm information, and directly sends the abnormal alarm information to the terminal equipment used by the maintainer to execute the alarm task.
From the above, it can be seen that the method for executing an alarm task provided in the present specification can determine, according to the abnormal alarm information and the outage maintenance list information, an operation state of a server on which the target application operates. When the server on which the target application operates is determined to be in a stop maintenance state, the server can process the abnormal alarm information according to the information filtering processing rule and execute an alarm task for the target application according to the processing result. By the method, invalid alarms caused by stopping the service of the operation server in the alarm information can be accurately and effectively filtered, the working pressure and invalid interference of subsequent maintenance personnel are reduced, and the working efficiency of the maintenance personnel is effectively improved. In addition, by the method, the abnormal alarm actually existing in the actual running process of the target application is highlighted, the efficiency and timeliness of solving the abnormal problem are effectively improved, and the continuous optimization and solution of the application problem can indirectly improve the use experience of a user.
The foregoing is a method implemented by one or more embodiments of the present disclosure, and based on the same concept, the present disclosure further provides a corresponding alarm task execution device, as shown in fig. 3.
Fig. 3 is a schematic diagram of an alarm task execution device provided in the present specification, including:
an acquisition module 301, configured to acquire abnormal alarm information for a target application;
the determining module 302 is configured to obtain the outage maintenance list information, and determine, according to the outage maintenance list information, running state information corresponding to a server on which the target application runs;
The processing module 303 is configured to perform information processing on the abnormal alarm information based on a preset information filtering processing rule under the condition that it is determined according to the running state information that the server on which the target application runs is in a maintenance stopping state, so as to obtain a processing result;
and the execution module 304 is configured to execute an alarm task for the target application based on the processing result.
Optionally, the determining module 302 is specifically configured to determine server identification information corresponding to a server on which the target application operates; and determining the running state information corresponding to the server on which the target application runs according to the server identification information and the stop maintenance list information.
Optionally, the determining module 302 is specifically configured to determine, according to the abnormal alarm information, alarm generation time information corresponding to the abnormal alarm information; when the server on which the target application operates is determined to exist in the stop service maintenance list information according to the server identification information and the stop service maintenance list information, determining stop service maintenance time information corresponding to the server on which the target application operates according to the stop service maintenance information corresponding to the server on which the target application operates in the stop service maintenance list information, wherein the stop service maintenance time information is used for indicating the stop service maintenance starting time to the stop service maintenance ending time of the server on which the target application operates when the stop service maintenance is performed; and determining the running state information according to the alarm generation time information and the stop service maintenance time information corresponding to the server on which the target application runs.
Optionally, the processing module 303 is specifically configured to perform filtering processing on the abnormal alarm information according to a preset special alarm filtering rule, where the special alarm filtering rule is used to indicate that an alarm type corresponding to an invalid alarm sent by a server whose running state is a maintenance stopping state is filtered.
Optionally, the executing module 304 is specifically configured to, if the abnormal alarm information is not filtered according to the special alarm filtering rule, send the unfiltered abnormal alarm information to a terminal device used by a maintainer to perform an abnormal alarm for the target application to the maintainer, so that the terminal device used by the maintainer executes a maintenance task for the target application based on receiving the unfiltered abnormal alarm information.
Optionally, the processing module 303 is specifically configured to add an information tag to the abnormal alarm information according to a preset special alarm tag rule, so as to obtain the marked abnormal alarm information, where the special alarm tag rule is used to indicate that special tagging is performed on the abnormal alarm information corresponding to the server whose running state is the maintenance state of stopping service.
Optionally, the executing module 304 is specifically configured to send the marked abnormal alarm information to a terminal device used by a maintainer, so as to perform an abnormal alarm for the target application to the maintainer, so that when the terminal device used by the maintainer detects that the received abnormal alarm information is the marked abnormal alarm information, the marked abnormal alarm information is filtered according to a preset invalid alarm filtering rule for the abnormal alarm information of the server in a maintenance stopping state, and execute a maintenance task for the target application based on the filtered abnormal alarm information.
The present specification also provides a computer readable storage medium storing a computer program operable to perform the above-described method of executing the alert task provided in fig. 1.
The present specification also provides a schematic structural diagram of an electronic device corresponding to fig. 1 shown in fig. 4. At the hardware level, as shown in fig. 4, the electronic device includes a processor, an internal bus, a network interface, a memory, and a nonvolatile storage, and may of course include hardware required by other services. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize the execution method of the alarm task described in the above figure 1.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable GATE ARRAY, FPGA)) is an integrated circuit whose logic functions are determined by user programming of the device. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented with "logic compiler (logic compiler)" software, which is similar to the software compiler used in program development and writing, and the original code before being compiled is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but HDL is not just one, but a plurality of kinds, such as ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language), and VHDL (Very-High-SPEED INTEGRATED Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application SPECIFIC INTEGRATED Circuits (ASICs), programmable logic controllers, and embedded microcontrollers, examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.