Application service detection method and device, electronic equipment and medium
Through the comprehensive scoring and abnormal prediction of application service detection methods, the problems of Internet application service interruption and performance degradation are solved, timely alarms and fault locations are provided, and business continuity and operation and maintenance efficiency are improved.
Patent Information
- Application Number
- CN202411072608.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-12
AI Technical Summary
The prior art cannot effectively ensure the business continuity of Internet application services, especially when service interruptions or performance degradation caused by system abnormalities and network fluctuations, which affects user experience and business stability.
By applying service detection methods, comprehensive scores are performed based on the detection data and indicator weights of the operating status information, and whether it exceeds the preset threshold, output abnormal prediction results to provide timely alarms and fault locations, and update the number of detection acquisitions and indicator weights to improve business continuity sex.
It realizes timely prediction and alerts of application service abnormalities, reduces business risks, improves business continuity and operation and maintenance efficiency, and ensures the stability and performance of services.
Smart Images

Figure CN118939552A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an application service detection method, device, electronic device and medium. Background Art
[0002] With the rapid development of Internet technology, various online application services emerge in an endless stream, which not only serve end users but also interact with many third-party platforms. In such an environment, business continuity and stability are particularly important.
[0003] However, due to unpredictable factors such as system anomalies and network fluctuations, Internet application services often face the risk of interruption or performance degradation, which seriously affects user experience and business operations. Especially when the business involves multiple Internet application services, the anomaly of any service may trigger a chain reaction, thereby affecting the stable operation of the entire business chain. For example, if the application service for real end users is delayed or down, it will directly lead to user dissatisfaction and loss; and the anomaly of the application service for the Internet third-party platform may affect the data interaction with the partner, thereby damaging the business cooperation relationship. Summary of the invention
[0004] In view of this, the present application provides an application service detection method, device, electronic device and medium to solve the problem in the existing related technology that business continuity cannot be guaranteed due to application service anomalies.
[0005] In a first aspect, the present application provides an application service detection method, comprising:
[0006] Perform application service status detection based on application service detection requirements to obtain operation status information of the application service, wherein the operation status information includes at least one detection data;
[0007] Determine the detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information;
[0008] Based on each detection data included in the running status information, a comprehensive score is performed in combination with the indicator weight to obtain a comprehensive score corresponding to the running status information;
[0009] If the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisition times, the number of detection acquisition times and the detection indicator weight are updated until the comprehensive score exceeds the comprehensive score threshold, and the abnormal prediction result of the application service is output.
[0010] Optionally, performing application service status detection based on application service detection requirements to obtain operation status information of the application service includes:
[0011] Determine, according to the application service detection requirement, a target application service to be detected and a detection time interval corresponding to the target application service;
[0012] Performing service status detection on the target application service according to the detection time interval to obtain the detection data;
[0013] The detection data is sent to the server log to form the operation status information.
[0014] Optionally, performing service status detection on the target application service at the detection time interval to obtain the detection data includes:
[0015] Simulating a user request for the target application service according to the detection time interval;
[0016] Determine the response time data of the target application service based on the sending time of the user request and the receiving time of the response corresponding to the user request;
[0017] The response time data is determined as the detection data.
[0018] Optionally, performing service status detection on the target application service at the detection time interval to obtain the detection data includes:
[0019] Invoke the service detection model according to the detection time interval;
[0020] Performing a network connectivity test on the target application service through the service detection model to obtain network connectivity data of the target application service;
[0021] The network connectivity data is determined as the detection data.
[0022] Optionally, performing service status detection on the target application service at the detection time interval to obtain the detection data includes:
[0023] Determining a target server for the target application service;
[0024] Detecting resource status data of the target server according to the detection time period;
[0025] The resource status data is determined as the detection data.
[0026] Optionally, based on each detection data included in the running status information, a comprehensive score is performed in combination with the indicator weight to obtain a comprehensive score corresponding to the running status information, including:
[0027] Using a linear standardization method to perform data standardization processing on each detection data to obtain standardized data of each detection data;
[0028] Based on the indicator weights, the standardized data is weighted according to a preset comprehensive calculation formula corresponding to the detection data to obtain the comprehensive score.
[0029] Optionally, after obtaining the comprehensive score corresponding to the running status information, the method further includes:
[0030] Obtaining a preset comprehensive scoring threshold corresponding to the number of detection acquisition times;
[0031] Determining whether the comprehensive score exceeds the comprehensive score threshold;
[0032] Wherein, if the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisitions, the number of detection acquisitions and the detection indicator weight are updated until the comprehensive score exceeds the comprehensive score threshold, and the abnormal prediction result of the application service is output, including:
[0033] In the case where the comprehensive score does not exceed the comprehensive score threshold, updating the detection acquisition times and the detection indicator weight, so as to return to the step of performing the application service status detection based on the application service detection requirement based on the updated detection indicator weight, until the comprehensive score exceeds the comprehensive score exceeding the comprehensive score threshold;
[0034] When the comprehensive score exceeds the comprehensive score threshold, it is determined that an abnormality occurs in the application service, and the abnormality prediction result is generated based on the detection data included in the running state, and the abnormality prediction result is used for service abnormality alarm.
[0035] In a second aspect, the present application provides an application service detection device, comprising:
[0036] A service status detection module, used to perform application service status detection based on application service detection requirements, and obtain operation status information of the application service, wherein the operation status information includes at least one detection data;
[0037] A detection index weight determination module, used to determine the detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information;
[0038] A comprehensive scoring module, used to perform a comprehensive scoring based on each detection data included in the running status information in combination with the indicator weights, to obtain a comprehensive score corresponding to the running status information;
[0039] An updating module, configured to update the number of detection acquisitions and the detection indicator weight if the comprehensive score does not exceed a preset comprehensive score threshold corresponding to the number of detection acquisitions;
[0040] The abnormality prediction module is used to output the abnormality prediction result of the application service when the comprehensive score exceeds the comprehensive score threshold.
[0041] In a third aspect, the present application provides an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0042] Memory, used to store computer programs;
[0043] The processor is used to implement the steps of the application service detection method as described in any one of the first aspects of the present application when executing the program stored in the memory.
[0044] In a fourth aspect, the present application provides a computer storage medium storing computer executable instructions, characterized in that the computer executable instructions are used to execute the steps of the application service detection method as described in any one of the above-mentioned first aspects of the present application.
[0045] The embodiment of the present application performs application service status detection based on application service detection requirements to obtain operating status information of the application service, and determines the detection indicator weight corresponding to each detection data based on the number of detection acquisitions corresponding to the operating status information, so as to perform a comprehensive score based on the detection data contained in the operating status information in combination with the indicator weights to obtain a comprehensive score corresponding to the operating status information, so that when the comprehensive score does not exceed a preset comprehensive score threshold corresponding to the number of detection acquisitions, the number of detection acquisitions and the detection indicator weights can be updated until the comprehensive score exceeds the comprehensive score threshold, and then the abnormal prediction result of the application service is output, thereby reducing the business risk caused by the application service abnormality and improving business continuity, that is, solving the problem of failure to ensure business continuity due to application service abnormalities in the existing related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0049] Figure 1 A flowchart of a method for detecting an application service provided in an embodiment of the present application;
[0050] Figure 2 A structural block diagram of an application service detection device provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0053] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0054] In order to ensure business continuity and respond promptly when problems arise, an efficient mechanism is needed to detect abnormalities in Internet application services in the first place. Currently, although some monitoring tools can detect the operating status of services to a certain extent, they often lack accuracy, comprehensiveness and predictability, and cannot provide timely and effective abnormal alarms and fault location information to the operation and maintenance team.
[0055] Based on the above, the present application provides an application service detection method, device, electronic device and medium, which obtains the operating status information of the application service through application service status detection, and determines the detection indicator weight corresponding to each detection data based on the number of detection acquisitions corresponding to the operating status information, so as to perform a comprehensive score based on the detection data contained in the operating status information and the indicator weight, and obtain the comprehensive score corresponding to the operating status information, and judges whether the comprehensive score exceeds the preset comprehensive score threshold corresponding to the number of detection acquisitions, so as to update the number of detection acquisitions and the detection indicator weight when the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisitions, until the comprehensive score exceeds the comprehensive score threshold, and then outputs the abnormal prediction result of the application service, so as to provide timely and effective abnormal alarm and fault location information through the abnormal prediction result, reduce the business risk caused by application service abnormalities, and improve business continuity.
[0056] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0057] Figure 1 A flowchart of the steps of an application service detection method provided in an embodiment of the present application. The application service detection method provided in an embodiment of the present application may include the following steps:
[0058] Step 110, performing application service status detection based on the application service detection requirement to obtain operation status information of the application service, wherein the operation status information includes at least one detection data;
[0059] Among them, the application service detection requirement can be used to set a reasonable time interval to regularly trigger application service status detection. The specific time interval can be determined based on business requirements and the importance of the service. For example, for critical application services, detection can be performed every 5 minutes; for non-critical application services, detection can be performed every hour or longer. The embodiments of the present application do not impose specific restrictions on this.
[0060] In one embodiment of the present application, a Shell script or Python script can be written according to the application service detection requirements to periodically trigger application service status detection. For example, the written Shell script or Python script can be deployed on a cloud server, and the application service status detection can be regularly performed through a scheduled task tool cron job or other scheduling tools, so that detection data such as response time data, network connectivity data and status data can be obtained, and then the operating status information of the application service can be generated based on the obtained detection data, so that the operating status information can be processed and calculated later to timely discover anomalies and achieve the purpose of predicting possible abnormal application services.
[0061] Step 120, determining a detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information;
[0062] Specifically, after obtaining the running status information of the application service through application service status detection, the embodiment of the present application can determine the number of detection acquisitions corresponding to the running status information, and determine the detection indicator weights corresponding to each detection data in the running status information currently detected based on the number of detection acquisitions, so that the various detection data contained in the running status information can be comprehensively scored based on the detection indicator weights corresponding to each detection data, that is, execute step 130.
[0063] Step 130, performing a comprehensive score based on each detection data included in the running status information and in combination with the indicator weights to obtain a comprehensive score corresponding to the running status information;
[0064] Specifically, after determining the indicator weight corresponding to each detection data in the running status information based on the number of detection acquisition times, the embodiment of the present application can calculate the product between the indicator weight and the corresponding detection data based on the indicator weight according to the comprehensive calculation formula corresponding to the detection data, and then add the products corresponding to each detection data to obtain a comprehensive score for each detection data as the comprehensive score corresponding to the running status information, so that it can be determined whether an application service abnormality occurs by judging whether the comprehensive score exceeds the preset comprehensive score threshold corresponding to the number of detection acquisition times, that is, executing step 140.
[0065] Step 140, if the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisition times, update the number of detection acquisition times and the detection indicator weight until the comprehensive score exceeds the comprehensive score threshold, and output the abnormal prediction result of the application service.
[0066] Specifically, after obtaining the comprehensive score corresponding to the running status information, the embodiment of the present application can compare the comprehensive score with the preset comprehensive score threshold corresponding to the current number of detection acquisitions, so as to consider that no application service abnormality has occurred when the comprehensive score does not exceed the comprehensive score threshold, and update the number of detection acquisitions corresponding to the running status information and the detection indicator weights corresponding to the detection data, so as to continue to obtain the running status information of the application service through application service status detection for processing, and obtain the comprehensive score through the comprehensive score to predict whether an application service abnormality will occur, until the comprehensive score exceeds the comprehensive score that exceeds the preset comprehensive score threshold corresponding to the current number of detection acquisitions, it is considered that an application service abnormality has occurred, and then generate and output an application service abnormality prediction result for the application service abnormality, so as to provide timely and effective abnormal alarm and fault location information through the abnormal prediction result, reduce the business risk caused by application service abnormalities, and ensure business continuity.
[0067] In summary, the embodiment of the present application performs application service status detection based on application service detection requirements to obtain the operating status information of the application service, and determines the detection indicator weight corresponding to each detection data based on the number of detection acquisitions corresponding to the operating status information, so as to perform a comprehensive score based on the detection data contained in the operating status information and the indicator weights to obtain a comprehensive score corresponding to the operating status information, and then predicts whether an application service abnormality will occur by judging whether the comprehensive score exceeds a preset comprehensive score threshold corresponding to the number of detection acquisitions. If the comprehensive score does not exceed the comprehensive score threshold, the number of detection acquisitions corresponding to the operating status information and the detection indicator weight corresponding to the detection data are updated to continue to obtain the operating status information for processing and obtain the corresponding comprehensive score until the comprehensive score exceeds the comprehensive score threshold, and then outputs the abnormality prediction result of the application service, thereby reducing the business risk caused by the application service abnormality and improving business continuity.
[0068] In some optional embodiments of the present application, based on the application service detection requirements, the application service status detection can be started regularly on the cloud server within a preset time interval, and the corresponding detection data can be obtained by accessing each application service, so that the acquired detection data can be sent to the cloud server log and form the running status information, and the running status information can be processed and calculated to obtain a comprehensive score. Optionally, the embodiment of the present application performs application service status detection based on the application service detection requirements to obtain the running status information of the application service, which specifically includes the following sub-steps:
[0069] Sub-step 1101, determining a target application service to be detected and a detection time interval corresponding to the target application service according to the application service detection requirement;
[0070] Sub-step 1102, determining a target application service to be detected and a detection time interval corresponding to the target application service according to the application service detection requirement;
[0071] Sub-step 1103, performing service status detection on the target application service according to the detection time interval to obtain detection data;
[0072] Sub-step 1104, sending the detection data to the server log to form the operation status information.
[0073] Among them, the target application service may refer to the service application that currently needs to be detected; the detection data may refer to the data obtained through the application service detection, which may specifically include the response time data of the application service, the network connectivity data of the application service, and the status data of resources such as the central processing unit (CPU), memory, disk, etc., which is not limited in this embodiment of the present application.
[0074] In order to comprehensively and accurately evaluate the running status of the application service, the embodiment of the present application can write a computer program script to regularly trigger the application service status detection according to the detection time interval to obtain the detection data corresponding to the target service, such as simulating user requests to detect the response time data of the target application service as the detection data of the target service application. Among them, the curl and wget tools can be used to simulate user requests, and user requests can be generated by customizing request parameters.
[0075] Optionally, the embodiment of the present application performs service status detection on the target application service according to the detection time interval to obtain the detection data, which may specifically include: simulating a user request of the target application service according to the detection time interval; determining the response time data of the target application service based on the sending time of the user request and the receiving time of the response corresponding to the user request; and determining the response time data as the detection data. The receiving time of the response corresponding to the user request may refer to the time when the response message corresponding to the user request is received, such as the timestamp T of the receiving response message. end , so that the time stamp T of the received response message can be used later end and the sending time T of the user request start Calculate the corresponding time information as the response time data of the target application service.
[0076] For example, in the process of simulating user requests, the time formula can be (T response =T end -T start ), using the sending time T of the user request startand the timestamp T of the received response message end Calculate the response time T response, , as the response time data of the target application service, thereby realizing the detection and acquisition of the response time data of the application service, so that the response time data can be used as detection data in the future to predict possible abnormalities in the response time of the application service, and achieve the purpose of predictive alarm, thereby providing the operation and maintenance team with a valuable time window to take preventive measures before the abnormality occurs, and more comprehensively evaluate the stability and performance of the service, which significantly improves the operation and maintenance efficiency and service quality.
[0077] Of course, in order to fully and accurately reflect the abnormal status of the application service, in addition to obtaining response time data as detection data, the implementation of this application can also obtain other types of data as detection data, such as network connectivity data and / or resource status data as detection data, and the embodiments of this application do not impose specific restrictions on this.
[0078] The network connectivity data may refer to data used to determine network connectivity, such as data used to indicate network connectivity, such as "online", "offline", "priority", "good", "general", etc. Optionally, the embodiment of the present application performs a service status detection on the target application service according to the detection time interval to obtain the detection data, which may specifically include: calling a service detection model according to the detection time interval; performing a network connectivity detection on the target application service through the service detection model to obtain the network connectivity data of the target application service; and determining the network connectivity data as the detection data.
[0079] As an example of the present application, three different service detection models can be used to check the network connectivity data of the application service; among them, the first service detection model can be a binary model, which is a very simple model that can be used to determine whether the target application service is online to determine whether the target application service is available. Specifically, if the binary model determines that the target application service is online, it means that the target application service is available. If the binary model determines that the target application service is offline, it means that the target application service is unavailable. For example, for a Web service, if it can respond to HTTP requests and return valid data, then it will be considered as an "online" state by the binary model as a target application service. If it cannot respond or returns an error message, it is considered to be in an "offline" state.
[0080] The second service detection model can be an availability assessment model based on response time thresholds. This model takes into account the response time of the application service and sets one or more response time thresholds for the application service. For example, for a database query service, the following thresholds can be set: if the response time is less than 100ms, the database query service is defined as "excellent" as a target application service; if the response time is between 100ms and 500ms, the database query service is defined as "good" as a target application service; if the response time is between 500ms and 1s, the database query service is defined as "average" as a target application service; if the response time exceeds 1s, the database query service is defined as "poor" or "unavailable" as a target application service.
[0081] The third service detection model can be an availability evaluation model based on error rate. For example, for an application programming interface (API) service, the request failure rate within a period of time (such as one minute, one hour or one day) can be counted. If the request failure rate is lower than 0.1%, the API service as a target application service is considered to be "highly available"; if the request failure rate is between 0.1% and 1%, the API service as a target application service is considered to be "available"; if the request failure rate exceeds 1%, the API service as a target application service may be considered to be "at risk" or "unavailable".
[0082] Resource status data may refer to data used to determine the status of service resources, and may specifically include status data of resources such as CPU, memory, and disk, which is not limited in the embodiments of the present application. Optionally, the embodiments of the present application perform service status detection on the target application service according to the detection time interval to obtain the detection data, which may specifically include: determining a target server for the target application service; detecting the resource status data of the target server according to the detection time interval; and determining the resource status data as the detection data. Among them, the target server may refer to a server determined according to the target application service, which may specifically be used to provide the target application service. For example, in the case where the resource status data includes CPU utilization and memory utilization, the CPU utilization can be calculated by sampling the busy and idle status of the CPU over a period of time, and the memory utilization can be calculated by comparing the used memory and the total memory, etc.
[0083] After the response time data, network connectivity data and resource status data are obtained, the response time data, network connectivity data and resource status data obtained can be sent to the cloud server log and form the operation status information, and the operation status information can be processed and calculated to obtain a comprehensive score. In some optional embodiments of the present application, an initial indicator weight can be predefined for each detection data in the operation status information as a pre-set indicator weight. For example, when the response time data Dtr, network connectivity data Dw and resource status data Ds in the operation status information are set as indicators for calculating the comprehensive score, the corresponding indicator weights can be set for these three indicators respectively, such as the indicator weight of the response time data Dtr is set to A, the indicator weight of the network connectivity data Dw is set to B, and the indicator weight of the resource status data Ds is set to C, so as to perform a comprehensive score based on each detection data contained in the operation status information and in combination with the preset indicator weight corresponding to each detection data, and obtain the comprehensive score corresponding to the operation status information.
[0084] Optionally, in order to eliminate the differences in units and value ranges between different indicators, the embodiment of the present application can perform data standardization processing so that the detection data contained in the running status information can be compared and analyzed on the same scale. By defining the initial indicator weights and weighting the standardized data, a comprehensive score can be generated to intuitively reflect the overall performance of the target application service through this comprehensive score. Therefore, in an optional embodiment of the present application, based on the various detection data contained in the running status information, a comprehensive score is performed in combination with the indicator weights to obtain a comprehensive score corresponding to the running status information, which can specifically include the following sub-steps:
[0085] Sub-step 1301, respectively using a linear standardization method to perform data standardization processing on each detection data to obtain standardized data of each detection data;
[0086] Sub-step 1302, based on the indicator weights, according to the preset comprehensive calculation formula corresponding to the detection data, weighted processing is performed on the standardized data to obtain the comprehensive score.
[0087] Specifically, data standardization is performed because different indicators may have different units and value ranges. In the embodiment of the present application, the detection data contained in the operating status information is standardized to eliminate the differences in units and value ranges between different indicators, so that these detection data can be compared and calculated on the same scale.
[0088] For example, the following simple linear standardization method can be used to perform data standardization processing on each detection data to obtain standardized data of each detection data. Specifically, for the response time data Dtr, it is standardized as: Standardized Dtr = 1-actual response time / maximum response time threshold; for the network connectivity data Dw, it is standardized as: Standardized Dw = actual connectivity rate / maximum acceptable connectivity rate; for the resource status data Ds, it is standardized as: Standardized Ds = 1-actual occupancy status / maximum acceptable occupancy status. Subsequently, the composite score (Composite Score, CS) can be calculated by the initial indicator weights, such as based on the indicator weights, according to the preset comprehensive calculation formula CS = A*Standardized Dtr+B*Standardized Dw+C*Standardized Ds, the standardized data is weighted, so that the comprehensive score CS corresponding to the operation status information can be obtained.
[0089] After obtaining the comprehensive score CS corresponding to the running status information, it is possible to determine whether the comprehensive score CS exceeds the preset comprehensive score threshold value corresponding to the current number of detection acquisitions; if it exceeds, it can be determined to be abnormal and trigger an alarm, such as generating an abnormal prediction result for the application service for the abnormality, and sending the abnormal alarm information to the relevant operation and maintenance team through the output of the abnormal prediction result. The alarm information contains the fault location information corresponding to the target application service of the abnormal service, so that the abnormal alarm and fault location information can be provided in a timely and effective manner, providing the operation and maintenance team with a valuable time window to take preventive measures before the abnormality occurs, and more comprehensively evaluate the stability and performance of the service, significantly improving the operation and maintenance efficiency and service quality; if it does not exceed, the running status information can continue to be processed and the running status information can be updated. The number of detection acquisitions corresponding to the status information and the detection indicator weights corresponding to the detection data are obtained, and the response time direction prediction comprehensive score, the network connectivity direction prediction comprehensive score and the status direction prediction comprehensive score are obtained, so that these comprehensive scores are used as the comprehensive score CS corresponding to the running status information, so that by judging whether the predicted comprehensive scores in different directions exceed the corresponding thresholds, the possible anomalies of the target application service in different aspects (such as response time, network connectivity, resource status, etc.) can be predicted, and when the comprehensive score CS exceeds the preset comprehensive score threshold corresponding to the number of detection acquisition tests, an alarm is triggered, and the abnormal prediction results of the application service are output, so as to provide timely and effective abnormal alarms and fault location information through the abnormal prediction results, reduce the business risks caused by application service abnormalities, and ensure business continuity.
[0090] Optionally, the present application implements an application service detection method, characterized in that, after obtaining the comprehensive score corresponding to the running status information, it can also include: obtaining a preset comprehensive score threshold corresponding to the number of detection acquisitions; judging whether the comprehensive score exceeds the comprehensive score threshold, so as to update the number of detection acquisitions and the detection indicator weight when the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisitions, until the comprehensive score exceeds the comprehensive score threshold, and output the abnormal prediction result of the application service. Furthermore, if the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisition times, the number of detection acquisition times and the detection index weight are updated until the comprehensive score exceeds the comprehensive score exceeding the comprehensive score threshold, and the abnormal prediction result of the application service is output, which may specifically include: when the comprehensive score does not exceed the comprehensive score threshold, updating the number of detection acquisition times and the detection index weight, and returning to execute the step of performing application service status detection based on application service detection requirements based on the updated detection index weight, until the comprehensive score exceeds the comprehensive score exceeding the comprehensive score threshold; when the comprehensive score exceeds the comprehensive score threshold, determining that an abnormality has occurred in the application service, and generating the abnormal prediction result based on the detection data contained in the running state, and the abnormal prediction result is used for service abnormality alarm.
[0091] It should be noted that when an alarm is triggered, the embodiment of the present application can output the abnormal prediction results through a variety of notification methods (such as SMS, email, corporate messages, etc.), so as to send the alarm information to the relevant operation and maintenance team through the abnormal prediction results, providing the operation and maintenance team with a valuable time window to take preventive measures before the abnormality occurs, and more comprehensively evaluate the stability and performance of the service, significantly improving the operation and maintenance efficiency and service quality. Among them, the alarm information can include the target application service of the abnormal service, such as the alarm information includes the abnormal alarm and fault location information corresponding to the target application service of the abnormal service, and the embodiment of the present application does not limit this.
[0092] Specifically, after obtaining the comprehensive score corresponding to the running status information, the embodiment of the present application can predict whether the target application service is abnormal by whether the comprehensive score exceeds the preset comprehensive score threshold corresponding to the number of detection acquisition times. For example, when the number of detection acquisition times is the first time, it can be determined whether the comprehensive score exceeds the preset first threshold, so as to determine the abnormality and trigger the alarm when the comprehensive score exceeds the preset first threshold. If not, the running status information is continued to be processed and the response time direction prediction comprehensive score, the network connectivity direction prediction comprehensive score and the status direction prediction comprehensive score are obtained, that is, when the running status information is continued to be processed, the response time data Dtr, the network connectivity data Dtr and the status direction prediction comprehensive score are increased in turn according to different coefficients. The indicator weights corresponding to Dw and resource status data Ds are specifically: the new indicator weight of Dtr is A'=μA, the new indicator weight of response time data is B'=μ'B, and the new indicator weight of response time data is C'=μ"C, where the different coefficients corresponding to the three detection data are μ, μ' and μ", and the specific values are based on the time interval and business environment requirements. The longer the time interval, the larger μ, μ' and μ"; the stricter the business environment, the larger μ, μ' and μ"; then, according to A', B' and C', the response time direction prediction comprehensive score CSt, the network connectivity direction prediction comprehensive score CSwl and the state direction prediction comprehensive score CSs are obtained. For example, each comprehensive score can be determined according to the following formula:
[0093] CSt=A'*Standardized Dtr+B*Standardized Dw+C*Standardized Ds;
[0094] CSwl=A*Standardized Dtr+B'*Standardized Dw+C*Standardized Ds;
[0095] CSs=A*Standardized Dtr+B*Standardized Dw+C'*Standardized Ds;
[0096] The embodiment of the present application sequentially determines whether the response time direction prediction comprehensive score, the network connectivity direction prediction comprehensive score and the status direction prediction comprehensive score exceed the preset second threshold, third threshold and fourth threshold. In each judgment process, if exceeded, the prediction is determined to be abnormal and a prediction alarm is triggered. Therefore, by determining whether the comprehensive scores in different directions exceed the corresponding thresholds, the possible abnormalities of the service in different aspects (such as response time, network connectivity, status data) can be predicted, and the abnormal state of the application service can be discovered in time. This fast anomaly detection mechanism is crucial to ensuring the stability and continuity of the service, and can adjust the indicator weights of the detection data according to the time interval and business environment. Not only does the method adapt to different monitoring needs and environmental changes, but it can also obtain new comprehensive scores. Each comprehensive score corresponds to the possibility of future anomalies within a certain time period in different directions and under certain business environment conditions. This predictive alarm provides a valuable time window for the operation and maintenance team to take preventive measures before the anomaly occurs, and more comprehensively evaluate the stability and performance of the service, significantly improving the operation and maintenance efficiency and service quality. Among them, the first threshold is the preset comprehensive score threshold corresponding to the first time the detection is obtained, the second threshold is the preset comprehensive score threshold corresponding to the second time the detection is obtained, the third threshold is the preset comprehensive score threshold corresponding to the third time the detection is obtained... and so on, the Nth threshold is the preset comprehensive score threshold corresponding to the Nth time the detection is obtained, and N is an integer greater than 1.
[0097] In summary, when processing the running status information obtained by detection, the embodiments of the present application can increase the indicator weights corresponding to each detection data in the running status information according to different coefficients. Based on the indicator weights corresponding to each detection data, by comprehensively evaluating the response time data, network connectivity data and status data, it is possible to comprehensively and accurately reflect the abnormal status of the application service, not only paying attention to whether the service is online, but also deeply evaluating the performance and resource status of the service, providing the operation and maintenance team with richer information, which helps to accurately locate the problem.
[0098] It should be noted that, for the purpose of simple description, the method embodiments are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited to the described order of actions, because according to the embodiments of the present application, certain steps may be performed in other orders or simultaneously.
[0099] like Figure 2 As shown, the embodiment of the present application also provides an application service detection device, which may specifically include the following modules:
[0100] A service status detection module 210 is used to perform application service status detection based on application service detection requirements to obtain operation status information of the application service, wherein the operation status information includes at least one detection data;
[0101] A detection index weight determination module 220, configured to determine a detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information;
[0102] A comprehensive scoring module 230 is used to perform a comprehensive scoring based on each detection data included in the running status information in combination with the indicator weights to obtain a comprehensive score corresponding to the running status information;
[0103] An updating module 240 is configured to update the number of detection acquisitions and the detection indicator weight if the comprehensive score does not exceed a preset comprehensive score threshold corresponding to the number of detection acquisitions;
[0104] The abnormality prediction module 250 is used to output an abnormality prediction result of the application service when the comprehensive score exceeds the comprehensive score threshold.
[0105] Optionally, the service status detection module includes the following submodules:
[0106] A determination submodule, used to determine the target application service to be detected and the detection time interval corresponding to the target application service according to the application service detection requirement;
[0107] A detection submodule, configured to perform service status detection on the target application service according to the detection time interval to obtain the detection data;
[0108] The information forming submodule is used to send the detection data to the server log to form the operation status information.
[0109] Optionally, the detection submodule includes the following units:
[0110] A simulation request unit, used for simulating a user request for the target application service according to the detection time interval;
[0111] A response time determination unit, which determines the response time data of the target application service based on the sending time of the user request and the receiving time of the response corresponding to the user request;
[0112] The first determining unit is configured to determine the response time data as the detection data.
[0113] Optionally, the detection submodule includes the following units:
[0114] A model calling unit, used to call the service detection model according to the detection time interval;
[0115] A network connectivity detection unit, configured to perform a network connectivity detection on the target application service through the service detection model, and obtain network connectivity data of the target application service;
[0116] The second determining unit is configured to determine the network connectivity data as the detection data.
[0117] Optionally, the detection submodule includes the following units:
[0118] A server determination unit, configured to determine a target server for the target application service;
[0119] A resource status detection unit, configured to detect resource status data of the target server according to the detection time period;
[0120] A third determining unit is configured to determine the resource status data as the detection data.
[0121] Optionally, the comprehensive scoring module includes:
[0122] The standardization submodule is used to perform data standardization processing on each detection data by using a linear standardization method to obtain standardized data of each detection data;
[0123] The weighted processing submodule is used to perform weighted processing on the standardized data based on the indicator weights and in accordance with a preset comprehensive calculation formula corresponding to the detection data to obtain the comprehensive score.
[0124] Optionally, the application service detection device further includes:
[0125] A scoring threshold acquisition module is used to obtain a preset comprehensive scoring threshold corresponding to the number of detection acquisition times;
[0126] A judgment module, used to judge whether the comprehensive score exceeds the comprehensive score threshold;
[0127] The updating module is specifically used to: update the detection acquisition times and the detection index weight when the comprehensive score does not exceed the comprehensive score threshold, so as to trigger the service status detection module to perform the step of performing application service status detection based on the application service detection requirement based on the updated detection index weight, until the comprehensive score exceeds the comprehensive score exceeds the comprehensive score threshold;
[0128] The abnormality prediction module is specifically used to determine that an abnormality has occurred in the application service when the comprehensive score exceeds the comprehensive score threshold, and generate the abnormality prediction result based on the detection data contained in the running state, and the abnormality prediction result is used for service abnormality alarm.
[0129] In a specific implementation, the above-mentioned application service detection device can be integrated in an electronic device, so that the electronic device can perform application service status detection based on the application service detection requirements, obtain the operating status information of the application service, and determine the detection indicator weight corresponding to each of the detection data based on the detection acquisition times corresponding to the operating status information, so as to perform a comprehensive score based on the various detection data contained in the operating status information and in combination with the indicator weight to obtain a comprehensive score corresponding to the operating status information, and predict whether to send an application service exception by judging whether the comprehensive score exceeds the preset comprehensive score threshold corresponding to the detection acquisition times, so as to update the detection acquisition times and the detection indicator weight when the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the detection acquisition times, until the comprehensive score exceeds the comprehensive score threshold, and then output the abnormal prediction result of the application service, so as to provide timely and effective abnormal alarm and fault location information through the abnormal prediction result, reduce the business risk caused by application service abnormalities, and improve business continuity.
[0130] like Figure 3 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs; the processor 111 is used to implement the steps of the application service detection method provided by any of the aforementioned method embodiments when executing the program stored in the memory 113.
[0131] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the application service detection method provided by any of the aforementioned method embodiments, including: performing application service status detection based on application service detection requirements to obtain operating status information of the application service, wherein the operating status information includes at least one detection data; determining the detection indicator weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the operating status information; performing a comprehensive score based on each detection data included in the operating status information in combination with the indicator weight to obtain a comprehensive score corresponding to the operating status information; if the comprehensive score does not exceed a preset comprehensive score threshold corresponding to the number of detection acquisitions, updating the number of detection acquisitions and the detection indicator weight until the comprehensive score exceeds the comprehensive score threshold, and outputting the abnormal prediction result of the application service.
[0132] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the application service detection method provided in any of the aforementioned method embodiments are implemented.
[0133] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0135] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0136] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. An application service detection method, characterized in that: include: Perform application service status detection based on application service detection requirements to obtain operation status information of the application service, wherein the operation status information includes at least one detection data; Determine the detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information; Based on each detection data included in the running status information, a comprehensive score is performed in combination with the indicator weight to obtain a comprehensive score corresponding to the running status information; If the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisition times, the number of detection acquisition times and the detection indicator weight are updated until the comprehensive score exceeds the comprehensive score threshold, and the abnormal prediction result of the application service is output.
2. The application service detection method according to claim 1, characterized in that: The application service status detection is performed based on the application service detection requirement to obtain the running status information of the application service, including: Determine, according to the application service detection requirement, a target application service to be detected and a detection time interval corresponding to the target application service; Performing service status detection on the target application service according to the detection time interval to obtain the detection data; The detection data is sent to the server log to form the operation status information.
3. The application service detection method according to claim 2, characterized in that: The performing service status detection on the target application service according to the detection time interval to obtain the detection data includes: Simulating a user request for the target application service according to the detection time interval; Determine the response time data of the target application service based on the sending time of the user request and the receiving time of the response corresponding to the user request; The response time data is determined as the detection data.
4. The application service detection method according to claim 2, characterized in that: The performing service status detection on the target application service according to the detection time interval to obtain the detection data includes: Invoke the service detection model according to the detection time interval; Performing a network connectivity test on the target application service through the service detection model to obtain network connectivity data of the target application service; The network connectivity data is determined as the detection data.
5. The application service detection method according to claim 2, characterized in that: The performing service status detection on the target application service according to the detection time interval to obtain the detection data includes: Determining a target server for the target application service; Detecting resource status data of the target server according to the detection time period; The resource status data is determined as the detection data.
6. The application service detection method according to claim 1, characterized in that: Based on each detection data included in the running status information, a comprehensive score is performed in combination with the indicator weight to obtain a comprehensive score corresponding to the running status information, including: Using a linear standardization method to perform data standardization processing on each detection data to obtain standardized data of each detection data; Based on the indicator weights, the standardized data is weighted according to a preset comprehensive calculation formula corresponding to the detection data to obtain the comprehensive score.
7. The application service detection method according to any one of claims 1 to 6, characterized in that: After obtaining the comprehensive score corresponding to the running status information, the method further includes: Obtaining a preset comprehensive scoring threshold corresponding to the number of detection acquisition times; Determining whether the comprehensive score exceeds the comprehensive score threshold; Wherein, if the comprehensive score does not exceed the preset comprehensive score threshold corresponding to the number of detection acquisitions, the number of detection acquisitions and the detection indicator weight are updated until the comprehensive score exceeds the comprehensive score threshold, and the abnormal prediction result of the application service is output, including: In the case where the comprehensive score does not exceed the comprehensive score threshold, updating the detection acquisition times and the detection indicator weight, so as to return to the step of performing the application service status detection based on the application service detection requirement based on the updated detection indicator weight, until the comprehensive score exceeds the comprehensive score exceeding the comprehensive score threshold; When the comprehensive score exceeds the comprehensive score threshold, it is determined that an abnormality occurs in the application service, and the abnormality prediction result is generated based on the detection data included in the running state, and the abnormality prediction result is used for service abnormality alarm.
8. An application service detection device, characterized in that: include: A service status detection module, used to perform application service status detection based on application service detection requirements, and obtain operation status information of the application service, wherein the operation status information includes at least one detection data; A detection index weight determination module, used to determine the detection index weight corresponding to each of the detection data based on the number of detection acquisitions corresponding to the running status information; A comprehensive scoring module, used to perform a comprehensive scoring based on each detection data included in the running status information in combination with the indicator weights, to obtain a comprehensive score corresponding to the running status information; An updating module, configured to update the number of detection acquisitions and the detection indicator weight if the comprehensive score does not exceed a preset comprehensive score threshold corresponding to the number of detection acquisitions; The abnormality prediction module is used to output the abnormality prediction result of the application service when the comprehensive score exceeds the comprehensive score threshold.
9. An electronic device, comprising: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the application service detection method as described in any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the steps of the application service detection method as described in any one of claims 1-7.
Citation Information
Cited By
Performance monitoring method and device of network equipment and electronic equipment
CN120856548A
