A monitoring method, device and equipment for application upgrade

By comparing fine-grained data and analyzing historical version benchmarks, the problem of insufficient inter-version comparison capabilities in Web front-end upgrade anomaly monitoring has been solved, enabling rapid location of upgrade anomalies and improving monitoring efficiency and fault response speed.

CN123178208APending Publication Date: 2026-11-27NANJING LINGXING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611442935.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies lack the ability to compare versions horizontally in monitoring Web front-end upgrade anomalies, making it difficult to quickly determine whether the anomaly is introduced by a new version or caused by environmental factors, thus increasing the difficulty of locating the problem.

Method used

By comparing data with finer granularity, multiple monitoring information is collected to identify abnormal information. Based on the difference analysis results between the current abnormal indicators and the historical version benchmark indicators, the abnormal classification attribute of alarm information is determined, and the escalation anomaly can be quickly located.

Benefits of technology

It improves the efficiency of upgrade monitoring, can quickly locate the cause of upgrade anomalies, and reduces the probability of R&D personnel missing critical faults in a large number of alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178208A_ABST
    Figure CN123178208A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of software upgrading, in particular to a monitoring method, device and equipment for application upgrading, which comprises the following steps: collecting multiple monitoring information and identifying abnormal information; if the abnormal information meets an alarm condition, generating alarm information and a current abnormal index; obtaining a historical version benchmark index corresponding to the current abnormal index; and determining an abnormal classification attribute of the alarm information based on a difference analysis result of the current abnormal index and the historical version benchmark index and a historical alarm associated with the current abnormal index. In this way, the problem of upgrading abnormality can be quickly located, and the efficiency of upgrading monitoring is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software upgrade technology, specifically to a monitoring method, apparatus, and device for application upgrades. Background Technology

[0002] Existing technologies for building web front-end upgrade anomaly monitoring solutions require a separate, comprehensive data collection strategy to uniformly collect all types of front-end anomalies and set fixed thresholds for alerts. While this solution offers good coverage in general scenarios, it has significant shortcomings in the specific scenario of map upgrades: it lacks the ability to compare versions horizontally. This lack of capability makes it difficult to quickly determine whether the anomaly is introduced by a new version or caused by environmental factors, increasing the difficulty of locating the problem. Summary of the Invention

[0003] This application provides a method, apparatus, and device for monitoring application upgrades. By comparing data with finer granularity, it can quickly locate problems with upgrade anomalies and improve the efficiency of upgrade monitoring.

[0004] Firstly, this application provides a method for monitoring application upgrades, including: During the application upgrade process, multiple monitoring information is collected and abnormal information is identified. If the abnormal information meets the alarm conditions, an alarm message and the current abnormal indicator are generated; Obtain the historical version benchmark indicator corresponding to the current abnormal indicator; Based on the difference analysis results between the current abnormal indicator and the historical version benchmark indicator, as well as the historical alarms associated with the current abnormal indicator, the abnormal classification attribute of the alarm information is determined.

[0005] The above method collects multiple monitoring information during the application upgrade process to identify abnormal information. Once the abnormal information meets the alarm conditions, an alarm is generated. Based on the analysis results of the differences in abnormal indicators in the new version and historical versions, as well as the lifecycle status of historical alarms associated with the current abnormal indicator, the abnormal classification attribute of the current alarm information is determined. This method can quickly locate upgrade anomalies through finer-grained data comparison, thus improving the efficiency of upgrade monitoring.

[0006] In one possible embodiment, based on the difference analysis results between the current abnormal indicator and the historical version benchmark indicator, and the historical alarms associated with the current abnormal indicator, the abnormal classification attribute of the alarm information is determined, including: When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator exceeds the threshold, the historical version benchmark indicator does not exceed the threshold, and no historical alarm associated with the current abnormal indicator is found, the abnormal classification attribute of the alarm information is a new abnormality. When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator and the historical version benchmark indicator both exceed the threshold, and a historical alarm associated with the current abnormal indicator is found, and the processing status of the historical alarm is the repaired status, the abnormal classification attribute of the alarm information is classified as a reproducible abnormality.

[0007] In one possible embodiment, the alarm condition is: the level of the abnormal information is high weight; or

[0008] The anomaly information has a low weight level, and the number of anomaly information exceeds a preset number; or

[0009] The abnormal information is classified as low-weight, and the number of times the same abnormal information appears exceeds a preset number within a preset time period.

[0010] In one possible embodiment, the preset conditions include: The value of the current anomaly indicator minus the historical version baseline indicator exceeds a preset difference value; wherein, the preset difference value is determined based on the application type, the level of the anomaly information, and the current upgrade stage of the application upgrade.

[0011] In one possible embodiment, before generating alarm information, the method further includes: Obtain historical metrics from multiple historical versions; Determine the threshold range based on historical metrics from multiple historical versions; Determine the upper limit of the current abnormal indicator exceeding the threshold range.

[0012] In one possible embodiment, determining the threshold range based on historical metrics from multiple historical versions includes: Calculate a first statistical characteristic value and a second statistical characteristic value for historical indicators of multiple historical versions; wherein, the first statistical characteristic value represents the central tendency of historical indicators of multiple historical versions; the second statistical characteristic value represents the dispersion of historical indicators of multiple historical versions; determine a preset value corresponding to the application type as an adjustment parameter based on the correspondence between application type and preset value; adjust the second statistical characteristic value using the adjustment parameter, and determine the threshold range based on the first statistical characteristic value and the adjusted second statistical characteristic value; or Obtain the abnormal scores of historical indicators output by machine learning algorithms for multiple historical versions; determine the abnormal score threshold based on the distribution characteristics of the abnormal scores; and determine the boundary value of the threshold range based on the correspondence between the abnormal score threshold and the historical version indicator vector.

[0013] In one possible embodiment, during the application upgrade process, multiple monitoring information items are collected, including: Determine the current upgrade stage of the application; Collect multiple monitoring information corresponding to the upgrade stage of the application upgrade.

[0014] In one possible embodiment, identifying anomalous information includes: Treat error messages from multiple monitoring sources as abnormal information; and / or Performance-related information that meets abnormal conditions from multiple monitoring data points is considered abnormal information.

[0015] Secondly, this application provides a monitoring device for application upgrades, comprising: The data collection module is used to collect monitoring information related to multiple new versions and identify abnormal information during the application upgrade process; An alarm generation module is used to generate alarm information and current abnormal indicators if the abnormal information meets the alarm conditions. The tag generation module is used to obtain the historical version benchmark index corresponding to the current abnormal index; based on the difference analysis results between the current abnormal index and the historical version benchmark index, as well as the historical alarms associated with the current abnormal index, the abnormal classification attribute of the alarm information is determined.

[0016] Thirdly, this application provides an electronic device, comprising: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method described in any one of the first aspects according to the obtained program instructions.

[0017] Fourthly, this application provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the method described in any one of the first aspects.

[0018] Fifthly, this application provides a computer program product comprising: computer program code, which, when run on a computer, causes the computer to perform the method described in any one of the first aspects. Attached Figure Description

[0019] Figure 1 A flowchart illustrating an application upgrade monitoring method provided in this application embodiment; Figure 2 A flowchart for generating alarm information is provided as an embodiment of this application; Figure 3 A flowchart illustrating another application upgrade monitoring method provided in this application embodiment; Figure 4 A structural diagram of an application-upgraded monitoring device provided in an embodiment of this application; Figure 5 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0021] The terms "first" and "second" in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. The term "multiple" in this application can mean at least two, for example, two, three, and / or more; this application does not impose limitations on its embodiments.

[0022] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of this application, including various details to aid understanding. These embodiments should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of this application. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description. It should be noted that certain software, components, models, and other existing industry solutions may be mentioned in the embodiments of this application. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solutions of this application, and do not imply that the applicant has already and / or necessarily used such solutions.

[0023] Combination Figure 1 The present invention provides a method for monitoring application upgrades, comprising: S100: During the application upgrade process, it collects multiple monitoring information and identifies abnormal information.

[0024] For example, monitoring information can be understood as information related to the new version, including baseline performance data for the new version, such as memory usage, CPU usage, and local storage breakdown; other stability and experience data, such as first-screen rendering time, JS errors, and operational anomalies; and upgrade-related information, such as resource loading status (HTTP status codes and loading times for JS / CSS / image resources), JS API initialization sequence (JS API constructor execution time, configuration loading time, and dependency library loading time), API version compatibility error codes (API call returned version mismatch error codes), interface data parsing anomalies (API interface response codes and map data format parsing anomalies), resource loading failures, map initialization failures, API version mismatches, API interface non-existent, map data format parsing anomalies, and sudden frame rate drops.

[0025] The identification of abnormal information includes: identifying error messages from multiple monitoring information sources as abnormal information; and / or identifying performance-related information from multiple monitoring information sources that meets abnormal conditions as abnormal information.

[0026] Among the monitoring information, some are error messages and some are performance-related information. When the obtained information is an error message, it can be directly regarded as an exception message. For example, error codes such as resource loading failure, map initialization failure, API version mismatch, API interface not found, map data format parsing exception, frame rate drop, network timeout, JS error (including general JS error), operation exception, HTTP status code of JS / CSS / image resources, loading time, API call returned version mismatch error code, and backend interface error.

[0027] Here's a real-world example of a common JS error: For instance, the service itself generates many common JS errors daily, but during a map upgrade, the error rate (number of errors / number of page views) suddenly increases. These common JS errors can be fully captured and conditionally alerted. A common JS error might look like this: Error in render: "TypeError: Cannot readproperties of undefined (reading 'applynumber')".

[0028] Real-world example of backend API errors: Users draw maps and then submit data to the backend. However, due to potential issues during map drawing, the number of 500 errors encountered during submission to the backend has increased. These types of 500 errors can be caught.

[0029] Performance-related information from multiple new version-related monitoring data points includes, for example, memory usage, CPU usage, local storage breakdown, first-screen rendering time, JS API constructor execution time, configuration loading time, dependency library loading time, and API call response codes. Each of these pieces of information is checked against its corresponding exception condition; if the condition is met, it is treated as an exception.

[0030] For example, the abnormal conditions corresponding to performance-related information are: If the performance-related information is memory usage, then the abnormal condition is that the memory usage exceeds the first threshold. If the performance-related information is CPU utilization, then the abnormal condition is that the CPU utilization exceeds the second threshold. If the performance-related information is local storage segment usage, then the abnormal condition is that the local storage segment usage exceeds the third threshold. If the performance-related information is the first screen rendering time, then the abnormal condition is that the first screen rendering time exceeds the first duration. If the performance-related information is the execution time of the JS API constructor, then the exception condition is that the execution time of the JS API constructor exceeds the second duration. If the performance-related information is configuration loading time, then the abnormal condition is that the configuration loading time exceeds the third duration. If the performance-related information is dependency library loading time or API call response code, then the exception condition is that the dependency library loading time exceeds the fourth time. If the performance-related information is the API call response code, then the exception condition is that the API call response code is an error code.

[0031] S101: If the abnormal information meets the alarm conditions, an alarm message and the current abnormal indicator will be generated.

[0032] The alarm message includes information explaining that the upgrade anomaly is related to the new version, such as resource loading failure. The alarm message will then describe the upgrade anomaly as caused by resource loading failure. The anomaly indicators are then determined using the following formula.

[0033] Anomalies generally refer to anomaly rates or outliers; for example, if the anomaly message is "resource loading failed": Exception rate of resource loading failure ; The above formula is used to calculate the failure rate of resource loading.

[0034] Alternatively, the number of times resource loading failed can be used as an abnormal indicator in the error message.

[0035] In some embodiments, the alarm condition is: the level of the abnormal information is high weight; or

[0036] The anomaly information has a low weight, and the number of anomalies exceeds a preset limit; or

[0037] The abnormal information is assigned a low weight, and the number of times the same abnormal information occurs exceeds a preset number within a preset time period.

[0038] For example, exceptions strongly related to upgrades can be assigned a high weight. Examples of exceptions strongly related to upgrades include resource loading failure, map initialization failure, API version mismatch, API interface non-existent, map data format parsing errors, and sudden frame rate drops. Exceptions related to version performance can be assigned a low weight. Examples of exceptions related to version performance include general JS errors, network timeouts, and errors in some business interfaces. Examples of errors in some business interfaces include API version compatibility error codes and abnormal parsing of interface data.

[0039] For example, a single high-weighted anomaly can trigger an alarm independently. Low-weighted anomalies need to occur more than a threshold or occur frequently (e.g., accumulated within 1 minute) to trigger an alarm.

[0040] This embodiment of the invention constructs a weighted alarm scoring model, assigning high weight to upgrade-related anomalies so that an alarm is generated simply by meeting a single trigger condition; while low-weight general anomalies require frequency or cumulative number conditions to trigger an alarm. This mechanism ensures that during the upgrade process, anomalies that truly affect the core functions of the map can be detected first and in a timely manner, preventing developers from missing critical upgrade faults among a massive number of low-value alarms and improving the monitoring signal-to-noise ratio.

[0041] The specific solution can be as follows: During the application upgrade process, collect multiple monitoring information related to the new version; identify new version-related abnormal information from these monitoring information; for each abnormal information, determine its level; if the level of the abnormal information is high-weight, it is determined that it meets the alarm conditions and an alarm is generated; if the level of the abnormal information is low-weight, determine whether there are any other low-weight abnormal information previously; if the total number of all low-weight abnormal information exceeds a preset number, an alarm is generated. For example, if the identified new version-related abnormal information includes general JS errors, network timeouts, API version compatibility error codes, and interface data parsing errors, and the number of these four exceeds the preset number of three, an alarm is generated; or if the number of general JS errors detected exceeds 10 times within one minute, an alarm is generated. The preset duration is one minute and the preset number of errors is 10.

[0042] S102: Obtain the historical version of the benchmark indicator corresponding to the current abnormal indicator.

[0043] Among them, the historical version benchmark indicator refers to the abnormal indicator from the historical version that corresponds to the current abnormal indicator.

[0044] Historical versions refer to the most recent version that has completed the stabilization period observation and whose anomaly rate is below the baseline threshold before the current version is launched.

[0045] In detail, if the number of abnormal information in the alarm message is one, then the historical version benchmark indicator corresponding to the current abnormal indicator is obtained. If there are multiple abnormal messages in the alarm information, then for each abnormal message, obtain the historical version benchmark indicator corresponding to the current abnormal indicator of the abnormal message.

[0046] For example, when the level of the anomaly information is high weight, the number of anomaly information in the alarm information is one. For instance, if the anomaly information is resource loading failure, the anomaly indicator for resource loading failure is calculated, which is the current anomaly indicator. Then, the anomaly indicator for resource loading failure in historical versions is obtained as the historical version baseline indicator corresponding to the current anomaly indicator.

[0047] When the level of the abnormal information is low weight, and the alarm condition is judged based on the number of times the same abnormal information occurs within a preset time period exceeding a preset number, then the number of abnormal information in the alarm information is one, for example, a general JS error; obtain the abnormal indicators of general JS errors in historical versions as the historical version benchmark indicators corresponding to the current abnormal indicators.

[0048] When the level of new version-related exception information is low-weight, and the alarm condition judgment uses the number of exception information exceeding the preset number for judgment, then the number of exception information in the alarm information is multiple, such as general JS errors, API version compatibility error codes, and interface data parsing exceptions; obtain the exception index of general JS errors from historical versions as the historical version baseline index corresponding to the current exception index of general JS errors; obtain the exception index of API version compatibility error codes from historical versions as the historical version baseline index corresponding to the current exception index of API version compatibility error codes; obtain the exception index of interface data parsing exceptions from historical versions as the historical version baseline index corresponding to the current exception index of interface data parsing exceptions.

[0049] S103: Based on the difference analysis results between the current abnormal indicators and the historical version benchmark indicators, as well as the historical alarms associated with the current abnormal indicators, determine the abnormal classification attribute of the alarm information.

[0050] In detail, when the difference analysis results show that the difference between the two meets the preset conditions, the current abnormal indicator exceeds the threshold, the historical version benchmark indicator does not exceed the threshold, and no historical alarms associated with the current abnormal indicator are found, the alarm information will be classified as a new abnormality. When the difference analysis results show that the difference between the two meets the preset conditions, both the current abnormal indicator and the historical version benchmark indicator exceed the threshold, and a historical alarm associated with the current abnormal indicator is found, and the processing status of the historical alarm is "resolved", the abnormal classification attribute of the alarm information is "reproducible abnormal".

[0051] Among them, the historical alarms associated with the current abnormal indicator are the alarm information generated in historical versions for the abnormal information corresponding to the current abnormal indicator. For example, if the current abnormal indicator is resource loading failure, and the current abnormal indicator is the abnormal rate of resource loading failure in the new version, the historical alarms associated with the current abnormal indicator can be understood as the alarm information generated in the historical version for resource loading failure.

[0052] The preset conditions include: the value of the current abnormal indicator minus the historical version baseline indicator exceeds a preset difference value; the preset difference value is determined based on the application type, the level of the abnormal information, and the current upgrade stage of the application upgrade.

[0053] For example, when the exception information is resource loading failure, the current exception metric is the exception rate of resource loading failure in the new version, and the historical version baseline metric is the exception rate of resource loading failure in the historical version. The difference value Δ is calculated as: exception rate of resource loading failure in the new version – exception rate of resource loading failure in the historical version. Based on the application type, the level of the exception information, and the current upgrade stage of the application, a preset difference value is determined. It is then determined whether the difference value Δ is greater than the preset difference value. If it is not greater than the preset difference value, it indicates that the exception information has changed little during the version change process, and no marking is performed. If the error exceeds a preset difference value, the system continues to check whether the failure rate of resource loading in the new version exceeds a threshold, and whether the failure rate of resource loading in historical versions exceeds a threshold. If the failure rate of resource loading in the new version exceeds the threshold, but the failure rate of resource loading in historical versions does not exceed the threshold, and no alarm information containing resource loading failures is found in historical versions, it indicates that the error is a new error, and its alarm information is marked as a new error. If the failure rate of resource loading in the new version exceeds the threshold and the failure rate of resource loading in historical versions exceeds the threshold, but alarm information containing resource loading failures is found in historical versions and the alarm information is in a fixed status, it indicates that the problem already existed during the version upgrade but was fixed, and its alarm information is marked as a recurring error. This allows for quick identification of the cause of upgrade errors.

[0054] Based on the application type, the level of the anomaly information, and the current upgrade stage of the application upgrade, a preset differential value is determined. This includes determining the preset values ​​corresponding to the application type, the level of the anomaly information, the current upgrade stage of the application upgrade, and the preset value as the preset differential value. For example, when the anomaly information is "resource loading failure," the level is high-weight, the application type is map software, and the current upgrade stage of the application upgrade is a gray-scale period, then the preset value is 1%, which corresponds to a preset differential value of 1%. When the anomaly information is "general JS error," the level is low-weight, the application type is map software, and the current upgrade stage of the application upgrade is a gray-scale period, then the preset value is 5%, which corresponds to a preset differential value of 5%.

[0055] When an alarm message is generated, the level of the new version-related anomaly information is assigned a low weight. If the number of new version-related anomalies exceeds a preset threshold, and there is more than one new version-related anomaly information (e.g., general JS error, API version compatibility error code, network timeout), the anomaly index of the new version's general JS error exceeds the threshold, while the anomaly index of the historical version's general JS error does not exceed the threshold. If no alarm message containing the general JS error is found in the historical version, the general JS error in the alarm message is marked as a new anomaly. Alternatively, if the anomaly index of the new version's general JS error and the anomaly index of the historical version's general JS error both exceed the threshold, and an alarm message containing the general JS error is found in the historical version, and the alarm message's processing status is "resolved," the general JS error in the alarm message is marked as a reproducible anomaly.

[0056] If the abnormal indicators of API version compatibility error codes in the new version exceed the threshold, while the abnormal indicators of API version compatibility error codes in the historical versions do not exceed the threshold, and no alarm information containing API version compatibility error codes is found in the historical versions, then the API version compatibility error codes in the alarm information are marked as newly added anomalies. Alternatively, if the abnormal indicators of API version compatibility error codes related to the new version and the abnormal indicators of API version compatibility error codes in the historical versions both exceed the threshold, and alarm information containing API version compatibility error codes is found in the historical versions, and the processing status of the alarm information is "resolved," then the API version compatibility error codes in the alarm information are marked as reproducible anomalies.

[0057] If the abnormal network timeout metric for the new version exceeds the threshold and the abnormal network timeout metric for the historical version does not exceed the threshold, and no alarm information containing network timeout is found in the historical version, then the network timeout in the alarm information is marked as a new anomaly; or, if the abnormal network timeout metric for the new version and the abnormal network timeout metric for the historical version both exceed the threshold, and an alarm information containing network timeout is found in the historical version, and the alarm information is in a fixed state, then the network timeout in the alarm information is marked as a recurring anomaly.

[0058] The alarm information can include the current version number, historical version number, the difference Δ between the current version and the historical version for each anomaly, the anomaly rate of the current version, the anomaly rate of the historical version, and the historical fix version number (only for old anomaly reproduction scenarios), to help the R&D team quickly locate the root cause.

[0059] In this way, the embodiments of the present invention can classify alarm information into "new anomalies" or "reproduced anomalies" by analyzing the difference between the current anomaly indicators and the historical version benchmark indicators, as well as the historical alarms associated with the current anomaly indicators. This allows R&D personnel to directly determine the source of the anomaly based on the alarm information, significantly shortening the time from alarm triggering to problem delimitation and improving the response efficiency of upgrade faults.

[0060] In some embodiments, before generating alarm information, combined with Figure 2 As shown, the method further includes: S200: Obtain historical metrics from multiple historical versions.

[0061] S201: Determine the threshold range based on historical metrics from multiple historical versions.

[0062] In detail, step 201 is implemented as follows: After identifying the abnormal information related to the new version, calculate the first statistical characteristic value and the second statistical characteristic value of the historical indicators of multiple historical versions; wherein, the first statistical characteristic value represents the central tendency of the historical indicators of multiple historical versions; the second statistical characteristic value represents the dispersion of the historical indicators of multiple historical versions; for example, the first statistical characteristic value is the arithmetic mean and the second statistical characteristic value is the standard deviation; according to the correspondence between the application type and the preset value, determine the preset value corresponding to the application type as the adjustment parameter; adjust the second statistical characteristic value using the adjustment parameter, and determine the threshold range based on the first statistical characteristic value and the adjusted second statistical characteristic value.

[0063] For example, the threshold range is calculated as [μ - kσ, μ + kσ], where μ is the arithmetic mean of the anomaly rates of historical versions, σ is the standard deviation, and k is an adjustment parameter (default k=2; k=1.5 for high-sensitivity scenarios and k=2.5 for low-sensitivity scenarios). The sliding window length defaults to the 5 most recent historical versions. When there are fewer than 5 historical versions, all available historical version data are used.

[0064] The specific implementation of step 201 is as follows: obtain the abnormal scores output by the machine learning algorithm for the historical indicators of multiple historical versions; determine the abnormal score threshold according to the distribution characteristics of the abnormal scores; and determine the boundary value of the threshold range according to the correspondence between the abnormal score threshold and the historical version indicator vector.

[0065] For example, if the anomaly is a resource loading failure, collect the anomaly indicators from the past 30 historical versions of the map software, convert the anomaly indicators of each historical version into vectors, and input the vectors into a pre-trained isolated forest model to obtain the corresponding set of anomaly scores.

[0066] After obtaining the abnormal scores of 30 historical versions, an abnormal score threshold is determined based on their distribution characteristics. The abnormal score threshold is used to define the reasonable fluctuation boundary of historical normal versions in the score space. Specifically, based on a preset normal mode coverage parameter, the corresponding quantile is determined from the empirical distribution of abnormal scores as the threshold. Considering the sensitivity of map software upgrades to user experience and the suddenness and short-term clustering of resource loading failures, this embodiment sets the upper bound of the normal mode coverage parameter to 95% and the lower bound to 5%. After sorting the abnormal score set, the 95th percentile is taken as the upper bound abnormal score threshold, for example, T... high =0.42, take the 5th percentile as the lower bound outlier threshold, for example, T low =0.06.

[0067] It's important to emphasize that choosing 95% / 5% coverage, rather than higher (such as 99% / 1%), is a result of a trade-off based on the characteristics of map services: excessively high coverage would include historically isolated severe resource failures within the "normal range," masking the true defects in the new version; while excessively low coverage would misjudge normal grayscale fluctuations as abnormal, disrupting the release schedule. This parameter can be dynamically adjusted by the operations team based on historical failure review results, reflecting the solution's adaptability to business semantics.

[0068] Since the mapping in the isolated forest model is irreversible, the anomaly score threshold needs to be converted into an interpretable anomaly rate boundary value by using historical sample anchors. The specific steps are as follows: Calculate the anomaly scores of 30 historical samples and T... high Given an absolute distance of 0.42, select the sample x with the smallest distance. k Sample x k The corresponding resource loading failure rate is 3.8%, which is set as the upper limit of the threshold range. The anomaly score and T are then selected. low =0.06 closest sample x k The corresponding exception rate is 0.15%, so 0.15% is determined as the lower bound of the threshold range. Finally, the threshold range for the current version's resource loading failure exception rate is [0.15%, 3.8%].

[0069] S202: Determine the upper limit of the current abnormal indicator exceeding the threshold range.

[0070] For example, if the anomaly is resource loading failure, calculate the anomaly rate of resource loading failure in multiple historical versions. Based on the anomaly rates of resource loading failure in multiple historical versions, calculate the arithmetic mean and standard deviation of the anomaly rates of the historical versions. When the application is a map application, determine k=2.5. Based on the calculated arithmetic mean, standard deviation, and k, determine the threshold range. If the anomaly rate of resource loading failure in the current version exceeds the maximum value of the threshold range, determine whether the alarm condition is met. If the alarm condition is met, generate an alarm message. If the anomaly rate of resource loading failure in the current version is within the threshold range, it indicates that the resource loading failure situation during the current version upgrade is relatively minor and does not warrant an alarm. If the anomaly rate of resource loading failure in the current version is below the minimum value of the threshold range, it indicates that the anomaly rate is very low and no alarm is needed; the anomaly rate of resource loading failure can continue to be monitored.

[0071] In this way, the embodiments of the present invention determine the stage of the application upgrade, dynamically switch the corresponding collection strategy (such as collecting strong upgrade-related indicators at high frequency during the gray-scale period and collecting basic performance data at low frequency during the stable period), and dynamically calculate the threshold range by combining the arithmetic mean and standard deviation of the historical version anomaly rate, so that the monitoring benchmark is adaptively adjusted with the upgrade process, thereby ensuring that key anomalies are not missed while effectively filtering out noise alarms caused by upgrade traffic fluctuations.

[0072] In some embodiments, during the application upgrade process, multiple monitoring information related to the new version are collected, including: Determine the current upgrade stage of the application; Collect multiple monitoring information corresponding to the upgrade stage of the application upgrade.

[0073] In particular, for different upgrade stages, some parameters may be more important than others. To save space, some parameters can be collected at fixed times for different upgrade stages, for example: If the application upgrade is in the gray-scale phase or the full rollout phase, the monitoring information will be used as the performance baseline data for the new version and the upgrade-related information. If the application upgrade is in the pre-upgrade baseline period or the stable period, the monitoring information will be used as the performance baseline data, stability and experience data of the new version.

[0074] Additionally, all monitoring information can be monitored, but the importance of each type of monitoring information varies for each upgrade stage, and the collection frequency can also differ. For example: Pre-upgrade baseline period: Collect current version performance baseline data at low frequency (e.g., once per minute), such as memory usage, CPU usage, and local storage breakdown. In particular, performance baseline data also includes other stability and experience data that should be fully reported, such as first-screen rendering time, JS errors, and operation anomalies.

[0075] Gray-scale period: High-frequency (e.g., once every 5 seconds) data collection, in addition to performance baseline data, focuses on collecting resource loading status (HTTP status codes and loading time of JS / CSS / image resources), JS API initialization sequence (JS API constructor execution time, configuration loading time, and dependency library loading time), API version compatibility error codes (API call returned version mismatch error codes), and interface data exception parsing (API interface response codes and map data format parsing exception error codes).

[0076] Full-scale period: medium-to-high frequency data collection, with a collection frequency of 10 seconds / time, to fully cover upgraded strongly correlated indicators.

[0077] Stable period: Restore low-frequency data collection from the baseline period, and revert the collected indicators to the daily monitoring set.

[0078] Based on the above scheme, embodiments of the present invention provide a method for monitoring application upgrades, combined with Figure 3 As shown, it includes: S300: During the application upgrade process, determine the upgrade stage of the application and collect multiple monitoring information corresponding to the upgrade stage of the application.

[0079] S301: Identify abnormal information from multiple monitoring data; S302: Obtain historical metrics from multiple historical versions; S303: Determine the threshold range based on historical metrics from multiple historical versions; S304: If the current abnormal indicator of the abnormal information exceeds the upper limit of the threshold range, an alarm message will be generated when the level of the abnormal information is high weight, or when the level of the abnormal information is low weight and the number of abnormal information exceeds the preset number, or when the level of the abnormal information is low weight and the number of times the same abnormal information occurs within the preset time exceeds the preset number. S305: If the value of the current abnormal indicator minus the historical version benchmark indicator exceeds the preset difference value, then when the current abnormal indicator exceeds the threshold and the historical version benchmark indicator does not exceed the threshold, and no historical alarm associated with the current abnormal indicator is found, the alarm information will be marked as a new abnormality. S306: If the difference between the current abnormal indicator and the historical version benchmark indicator exceeds a preset difference value, then when both the current abnormal indicator and the historical version benchmark indicator exceed the threshold, and a historical alarm associated with the current abnormal indicator is found, and the historical alarm is in the fixed state, the alarm information is marked as a recurring abnormality.

[0080] In this way, the embodiments of the present invention automatically associate historical baselines and dynamically generate threshold ranges by using the "application × version × upgrade stage" triple, and automatically switch the collection strategy according to the upgrade stage, thereby realizing the automatic adaptation of monitoring parameters.

[0081] Based on the same inventive concept, this application provides an application-upgraded monitoring device, please refer to... Figure 4 As shown, the device includes: The data acquisition module 400 is used to collect multiple monitoring information and identify abnormal information during the application upgrade process; The alarm generation module 401 is used to generate alarm information and current abnormal indicators if the abnormal information meets the alarm conditions. The tag generation module 402 is used to obtain the historical version benchmark index corresponding to the current abnormal index; based on the difference analysis results between the current abnormal index and the historical version benchmark index, and the historical alarms associated with the current abnormal index, the abnormal classification attribute of the alarm information is determined.

[0082] Optionally, the tag generation module 402 is specifically used for: When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator exceeds the threshold, the historical version benchmark indicator does not exceed the threshold, and no historical alarm associated with the current abnormal indicator is found, the abnormal classification attribute of the alarm information is a new abnormality. When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator and the historical version benchmark indicator both exceed the threshold, and a historical alarm associated with the current abnormal indicator is found, and the processing status of the historical alarm is the repaired status, the abnormal classification attribute of the alarm information is classified as a reproducible abnormality.

[0083] Optionally, the alarm condition is: the level of the abnormal information is high weight; or

[0084] The anomaly information has a low weight level, and the number of anomaly information exceeds a preset number; or

[0085] The abnormal information is classified as low-weight, and the number of times the same abnormal information appears exceeds a preset number within a preset time period.

[0086] Optionally, the preset conditions include: The value of the current anomaly indicator minus the historical version baseline indicator exceeds a preset difference value; wherein, the preset difference value is determined based on the application type, the level of the anomaly information, and the current upgrade stage of the application upgrade.

[0087] Optionally, the alarm generation module 401 is also used for: Obtain historical metrics from multiple historical versions; Determine the threshold range based on historical metrics from multiple historical versions; Determine the upper limit of the current abnormal indicator exceeding the threshold range.

[0088] Optionally, the alarm generation module 401 is also used for: Calculate a first statistical characteristic value and a second statistical characteristic value for historical indicators of multiple historical versions; wherein, the first statistical characteristic value represents the central tendency of historical indicators of multiple historical versions; the second statistical characteristic value represents the dispersion of historical indicators of multiple historical versions; determine a preset value corresponding to the application type as an adjustment parameter based on the correspondence between application type and preset value; adjust the second statistical characteristic value using the adjustment parameter, and determine the threshold range based on the first statistical characteristic value and the adjusted second statistical characteristic value; or Obtain the abnormal scores of historical indicators output by machine learning algorithms for multiple historical versions; determine the abnormal score threshold based on the distribution characteristics of the abnormal scores; and determine the boundary value of the threshold range based on the correspondence between the abnormal score threshold and the historical version indicator vector.

[0089] Optional, the acquisition module 400 is specifically used for: Determine the current upgrade stage of the application; Collect multiple monitoring information corresponding to the upgrade stage of the application upgrade.

[0090] Optional, the acquisition module 400 is specifically used for: Treat error messages from multiple monitoring sources as abnormal information; and / or Performance-related information that meets abnormal conditions from multiple monitoring data points is considered abnormal information.

[0091] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be implemented entirely in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. The processing element here can be an integrated circuit with signal processing capabilities. During implementation, each step of the above method or each of the above modules can be completed through the integrated logic circuits in the processor element and / or software instructions.

[0092] Based on the same inventive concept, embodiments of this application provide an electronic device. Figure 5 The diagram illustrates a schematic representation of an electronic device structure provided in some embodiments, such as... Figure 5 As shown, the electronic device includes: a processor 510, a memory 520, a communication interface 530, and a communication bus 540, wherein the processor 510, the communication interface 530, and the memory 520 communicate with each other through the communication bus 540. The memory 520 stores a computer program that, when executed by the processor 510, causes the processor 510 to perform the application upgrade monitoring method as described in any one of the embodiments.

[0093] The processor 510 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) and / or other programmable logic devices, discrete gate and / or transistor logic devices, or discrete hardware components.

[0094] The memory 520 is connected to the processor 510 via the communication bus 540 and completes communication with it. The memory 520 is used to store computer program instructions.

[0095] The communication bus 540 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 540 can be divided into address bus, data bus, control bus, etc. For ease of representation, it is represented by only one thick line in the figure, but this does not indicate that there is only one bus or one type of bus. The transceiver is used to enable communication between the database access device and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory.

[0096] Based on the same inventive concept, embodiments of this application provide a computer-readable storage medium, the computer program product including: computer program code, which, when run on a computer, causes the computer to execute the application upgrade monitoring method as described in any one of the claims.

[0097] Based on the same inventive concept, this application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to execute any of the application upgrade monitoring methods discussed above. Since the principle of the above computer program product in solving the problem is similar to that of the data analysis report construction method, the implementation of the above computer program product can refer to the implementation of the method, and repeated details will not be repeated.

[0098] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0099] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0100] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0101] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of user-operated steps to be executed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0102] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for monitoring application upgrades, characterized in that, include: During the application upgrade process, multiple monitoring information was collected and abnormal information was identified; If the abnormal information meets the alarm conditions, an alarm message and the current abnormal indicator are generated; Obtain the historical version benchmark indicator corresponding to the current abnormal indicator; Based on the difference analysis results between the current abnormal indicator and the historical version benchmark indicator, as well as the historical alarms associated with the current abnormal indicator, the abnormal classification attribute of the alarm information is determined.

2. The method according to claim 1, characterized in that, Based on the difference analysis results between the current abnormal indicator and the historical version benchmark indicator, and the historical alarms associated with the current abnormal indicator, the abnormal classification attributes of the alarm information are determined, including: When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator exceeds the threshold, the historical version benchmark indicator does not exceed the threshold, and no historical alarm associated with the current abnormal indicator is found, the abnormal classification attribute of the alarm information is a new abnormality. When the difference analysis result shows that the comparison difference between the two meets the preset conditions, the current abnormal indicator and the historical version benchmark indicator both exceed the threshold, and a historical alarm associated with the current abnormal indicator is found, and the processing status of the historical alarm is the repaired status, the abnormal classification attribute of the alarm information is classified as a reproducible abnormality.

3. The method according to claim 1, characterized in that: The alarm condition is that the level of the abnormal information is high weight; or The level of the abnormal information is low weight, and the number of abnormal information exceeds a preset number; or The abnormal information is classified as low-weight, and the number of times the same abnormal information appears exceeds a preset number within a preset time period.

4. The method according to claim 2, characterized in that, The preset conditions include: The value of the current anomaly indicator minus the historical version baseline indicator exceeds a preset difference value; wherein, the preset difference value is determined based on the application type, the level of the anomaly information, and the current upgrade stage of the application upgrade.

5. The method according to claim 1, characterized in that, Before generating alarm information, the method further includes: Obtain historical metrics from multiple historical versions; Determine the threshold range based on historical metrics from multiple historical versions; Determine the upper limit of the current abnormal indicator exceeding the threshold range.

6. The method according to claim 5, characterized in that, The process of determining the threshold range based on historical metrics from multiple historical versions includes: Calculate a first statistical characteristic value and a second statistical characteristic value for historical indicators of multiple historical versions; wherein, the first statistical characteristic value represents the central tendency of historical indicators of multiple historical versions; the second statistical characteristic value represents the dispersion of historical indicators of multiple historical versions; determine a preset value corresponding to the application type as an adjustment parameter based on the correspondence between application type and preset value; adjust the second statistical characteristic value using the adjustment parameter, and determine the threshold range based on the first statistical characteristic value and the adjusted second statistical characteristic value; or Obtain the abnormal scores of historical indicators output by machine learning algorithms for multiple historical versions; determine the abnormal score threshold based on the distribution characteristics of the abnormal scores; and determine the boundary value of the threshold range based on the correspondence between the abnormal score threshold and the historical version indicator vector.

7. The method according to any one of claims 1 to 6, characterized in that, During the application upgrade process, multiple monitoring information items were collected, including: Determine the current upgrade stage of the application; Collect multiple monitoring information corresponding to the upgrade stage of the application upgrade.

8. The method according to any one of claims 1 to 6, characterized in that, Identify anomalous information, including: Treat error messages from multiple monitoring sources as abnormal information; and / or Performance-related information that meets abnormal conditions from multiple monitoring data points is considered abnormal information.

9. An upgraded monitoring device, characterized in that, include: The data acquisition module is used to collect multiple monitoring information and identify abnormal information during the application upgrade process; An alarm generation module is used to generate alarm information and current abnormal indicators if the abnormal information meets the alarm conditions. A marker generation module is used to obtain historical version benchmark indicators corresponding to the current abnormal indicator; Based on the difference analysis results between the current abnormal indicator and the historical version benchmark indicator, as well as the historical alarms associated with the current abnormal indicator, the abnormal classification attribute of the alarm information is determined.

10. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method according to any one of claims 1-8.