Anomaly monitoring method and apparatus for gray release test

By collecting and analyzing the changing trends of the operating parameters of the grayscale test container in real time, and using the monitoring model to identify abnormal states, the problem of accuracy in anomaly monitoring in grayscale testing is solved, and the accuracy and efficiency of anomaly detection are improved.

WO2026242811A1PCT designated stage Publication Date: 2026-11-26SHANGHAI XIYU JIZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/094941
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-20
Filing Date
2026-05-06
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately monitor anomalies during gray-scale testing, especially when anomalies are few and version metric data changes are not significant, making it difficult to detect anomalies in gray-scale testing.

Method used

By determining the test container corresponding to the grayscale test, the operating parameters are collected in real time, and the changing trend of the operating parameters is analyzed using a monitoring model to determine whether the grayscale test is in a preset abnormal state. An artificial intelligence model is used to identify the normal and abnormal changes in the operating parameters.

Benefits of technology

It enables precise monitoring of abnormal situations during grayscale testing, improves the accuracy and efficiency of anomaly detection, and avoids the impact of failing to detect serious anomalies in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026094941_26112026_PF_FP_ABST
    Figure CN2026094941_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are an anomaly monitoring method and apparatus for a gray release test. The method comprises: determining a test container correspondingly tested in a gray release test, and acquiring at least one operation parameter of the test container during the operation of the gray release test, wherein the operation parameter is data obtained by collecting operation state data of the test container in real time; and, on the basis of a monitoring model and the operation parameter, determining whether the gray release test is in a preset anomaly state. In the technical solution of the present disclosure, by means of monitoring the test container that needs to be tested instead of testing all containers involved in the gray release, it is possible to effectively and precisely determine, by means of monitoring the change state of the operation parameter of the test container, whether there is an anomaly in the gray release test, thereby improving the accuracy of monitoring anomaly conditions in gray release test processes.
Need to check novelty before this filing date? Find Prior Art

Description

Methods and devices for anomaly monitoring in grayscale testing

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese Patent Application No. 2025106453554, filed on May 20, 2025, entitled "Method and Apparatus for Anomaly Monitoring in Gray Scale Testing", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This disclosure relates to the field of computer technology, and in particular to an anomaly monitoring method and apparatus for grayscale testing. Background Technology

[0004] Gray release is a software release strategy that involves gradually and in stages releasing new features or versions. Gray releases are typically used for software updates, and to prevent potential risks in the new version from affecting most users, anomaly detection during the gray release process is crucial.

[0005] Currently, anomaly detection during gray-scale testing typically involves obtaining the target metrics of the current version of the product in the first time period, as well as the target metrics of the gray-scale version of the product in the first time period. These two sets of target metrics are then compared to determine if any anomalies exist in the gray-scale version. However, this method may not yield significant changes in version metric data when anomalies are few during gray-scale testing, making it difficult to detect anomalies. Furthermore, existing technologies lack the ability to automatically analyze gray-scale testing parameters and trends for anomalies. Therefore, there is an urgent need for a method that can accurately monitor anomalies in gray-scale testing parameters. Summary of the Invention

[0006] This disclosure provides a method and apparatus for anomaly monitoring in grayscale testing, so as to improve the accuracy of monitoring anomalies during grayscale testing.

[0007] According to one aspect of this disclosure, an anomaly monitoring method for grayscale testing is provided. The method includes: determining the test container corresponding to the grayscale test, and obtaining information about the test container running the grayscale test.

[0008] At least one operating parameter at the time; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container;

[0009] Based on the monitoring model and the operating parameters, it is determined whether the grayscale test is in a preset abnormal state.

[0010] According to another aspect of this disclosure, an anomaly monitoring device for grayscale testing is provided, the device comprising:

[0011] The parameter acquisition module is configured to determine the test container corresponding to the grayscale test and acquire at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container.

[0012] The monitoring module is configured to determine whether the grayscale test is in a preset abnormal state based on the monitoring model and the operating parameters.

[0013] According to another aspect of this disclosure, an electronic device is provided, the electronic device comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the anomaly monitoring method for grayscale testing as described in any embodiment of this disclosure.

[0017] According to another aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions for causing a processor to execute and implement the anomaly monitoring method for grayscale testing as described in any embodiment of this disclosure.

[0018] The technical solution of this disclosure embodiment determines the test container corresponding to the grayscale test and obtains at least one operating parameter of the test container when running the grayscale test. The operating parameter is data obtained by real-time collection of the operating status data of the test container. Further, based on the monitoring model and the operating parameter, it is determined whether the grayscale test is in a preset abnormal state. That is, this disclosure monitors the real-time parameters and trends of the test container to be tested. Based on the real-time parameters and the changing trends of the real-time parameters, more accurate container data monitoring is achieved. Thus, by monitoring the changing state of the operating parameters of the test container, it is possible to accurately determine whether the grayscale test has an anomaly, thereby improving the accuracy of monitoring abnormal situations during the grayscale test.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 is a flowchart of an anomaly monitoring method for grayscale testing provided according to an embodiment of the present disclosure;

[0022] Figure 2 is a flowchart of another method for monitoring anomalies in grayscale testing provided according to an embodiment of the present disclosure;

[0023] Figure 3 is a schematic diagram of an operating parameter trend chart applicable to an embodiment of the present disclosure;

[0024] Figure 4 is a flowchart of another method for monitoring anomalies in grayscale testing provided according to an embodiment of the present disclosure;

[0025] Figure 5 is a schematic diagram of the structure of an anomaly monitoring device for grayscale testing provided according to an embodiment of the present disclosure;

[0026] Figure 6 is a schematic diagram of the structure of an electronic device that implements the anomaly monitoring method for grayscale testing according to an embodiment of the present disclosure. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present disclosure, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present disclosure, and not all embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present disclosure.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] Figure 1 is a flowchart of an anomaly monitoring method for grayscale testing provided in an embodiment of this disclosure. This embodiment is applicable to situations where anomaly monitoring is performed on grayscale tests. This method can be executed by an anomaly monitoring device for grayscale testing, which can be implemented in hardware and / or software. This anomaly monitoring device can be configured in any electronic device with network communication capabilities. As shown in Figure 1, the anomaly monitoring method for grayscale testing in this disclosure includes the following processes:

[0030] S110. Determine the test container corresponding to the grayscale test, and obtain at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container.

[0031] The test container can be a container that stores data that is updated compared to the previous version or feature. Each gray-scale test is to test at least one of the test containers, that is, to run the test containers until all test containers can run stably, thus confirming that the current version can be stably launched.

[0032] Specifically, during a single canary release test, the actual number of associated containers is extremely large, but the proportion of test containers actually undergoing canary release is relatively small, possibly less than 1% of the total number of service containers corresponding to the canary release test. To accurately detect whether anomalies have occurred during a canary release test, it is necessary to precisely monitor the test containers corresponding to the canary release test. That is, for each canary release test, the test containers corresponding to the canary release test must be identified first, thereby obtaining at least one operational parameter of the test container during the canary release test in real time. By monitoring changes in these operational parameters, it is possible to determine whether anomalies have occurred during the canary release test. This better highlights the test containers currently undergoing canary release testing, improves testing efficiency, and avoids missing or erroneous anomalies.

[0033] For example, if the target application update needs to be applied to a first number of containers, but the update requires phased canary testing before deployment (i.e., the update is gradually rolled out to users, not all at once), and if the current canary test involves a second number of test containers and no anomalies are found, the next canary test will increase to a third number of test containers, and so on, until the updated target application is fully deployed to users. The first number is significantly larger than the second and third numbers; the second number is smaller than the third number.

[0034] Optionally, at least one operating parameter of the test container during grayscale testing can be obtained, including: each operating parameter corresponds to a different sampling interval and sampling frequency; the sampling interval can be the time range for data collection. The sampling frequency can be understood as collecting the operating status data of the test container once every preset time period. The time interval from the start to the end of each collection is the sampling interval.

[0035] Specifically, the sampling interval and sampling frequency for each operating parameter can be determined based on its importance and fluctuation sensitivity. For operating parameters with high importance, the corresponding sampling interval is longer and the sampling frequency is higher to facilitate real-time monitoring of the grayscale test status. For operating parameters with low fluctuation sensitivity, the corresponding sampling interval becomes longer and the sampling frequency decreases; conversely, for operating parameters with high fluctuation sensitivity, the corresponding sampling interval becomes shorter and the sampling frequency increases. For example, for operating parameters with high importance and high fluctuation sensitivity, the corresponding sampling frequency can be 15–45 s; for operating parameters with low importance and low fluctuation sensitivity, the corresponding sampling frequency can be 60 s–90 s.

[0036] Furthermore, the sampling interval and sampling frequency corresponding to each operating parameter can be provided by the monitoring model. Before the current grayscale test begins, the sampling interval and sampling frequency corresponding to each operating parameter are dynamically adjusted based on the preset sampling interval and preset sampling frequency corresponding to each operating parameter to obtain the sampling interval and sampling frequency corresponding to each operating parameter in the current grayscale test.

[0037] The technical solution in this embodiment, by setting different sampling intervals and sampling frequencies for each operating parameter, can improve the effectiveness and relevance of test data while reducing overhead.

[0038] In one optional embodiment, a round of gray-scale testing may include multiple stages, with different stages corresponding to different monitoring strategies and alarm conditions.

[0039] (1) Startup Phase: The phase from when the test container starts up until it reaches stable operation. During the startup phase, the test container may need to perform operations such as cache warming, JIT compilation, and connection pool establishment, resulting in significant fluctuations in operating parameters. During the warming phase, a lenient alarm threshold is used and / or only the first alarm condition is enabled.

[0040] (2) Observation phase: The phase from the completion of preheating to the stable operation of grayscale testing on the current batch of containers. During the observation phase, standard alarm thresholds are used, and both the first alarm condition and the second alarm condition are enabled.

[0041] (3) Expansion Phase: The transition phase when grayscale testing is expanded from the current batch of test containers to the next batch of test containers. In the expansion phase, the newly added test containers adopt the monitoring strategy of the warm-up phase, while the test containers that are already running stably maintain the monitoring strategy of the observation phase.

[0042] (4) Stable Operation Phase: This phase is when the grayscale testing has covered all target test containers and the operation is stable. In this stable operation phase, stricter alarm thresholds are typically used to detect minor performance degradation.

[0043] In this embodiment, optionally, serious anomalies are more likely to occur during the startup phase, i.e., the initial stage of grayscale testing. Therefore, it is necessary to monitor some operating parameters to issue timely warnings. In the event of serious anomalies, the grayscale test may be unable to continue running or may need to be interrupted. Specifically, after obtaining at least one operating parameter of the test container, the method further includes: if the grayscale test running time is within a preset monitoring interval, and at least one operating parameter meets a first alarm condition, then a first alarm message is issued; the preset monitoring interval is a time period lasting a preset duration from the start of the grayscale test; the first alarm message includes at least the operating parameter that meets the first alarm condition and the first alarm condition corresponding to the operating parameter that meets the first alarm condition; wherein, in response to at least one operating parameter meeting the first alarm condition, the grayscale test is interrupted.

[0044] Where a serious anomaly occurs while the grayscale test is still running, the first alarm condition is used to indicate that the grayscale test should be interrupted. At least one operating parameter satisfies the first alarm condition, including: if at least one operating parameter contains a preset parameter and / or the fluctuation amplitude of the operating parameter is greater than or equal to a fluctuation anomaly threshold, then it is determined that at least one operating parameter satisfies the first alarm condition; wherein, when the fluctuation amplitude of the operating parameter is greater than or equal to the fluctuation anomaly threshold, it indicates that the grayscale test should be interrupted.

[0045] The preset parameters are runtime data that indicates when the gray-scale test should be interrupted. These preset parameters can include a first parameter, a second parameter, and a third parameter. The first parameter can be that the service associated with the gray-scale test is not started. The second parameter is the detection of a core dump file associated with the gray-scale test; that is, when the program under test crashes, the operating system generates a core dump file that records the memory state, stack information, etc., at the time of the crash. The third parameter is the data generated by a kernel panic associated with the gray-scale test; that is, when the operating system kernel encounters a serious error that it cannot handle, it triggers a kernel panic, causing the system to crash and force a restart or enter debug mode.

[0046] If any of the operating parameters exhibits a fluctuation amplitude greater than or equal to the abnormal fluctuation threshold, then the operating parameter also meets the first alarm condition. For example, when the operating parameter is the success rate of the gateway associated with the gray-scale test, if the success rate of the gateway associated with the gray-scale test drops by at least a preset threshold, then the first alarm condition is met; when the operating parameter is the error log volume associated with the gray-scale test, if the error log volume associated with the gray-scale test suddenly increases by a preset percentage and the error log volume exceeds a preset amount, then the first alarm condition is met.

[0047] Furthermore, it should be noted that the monitoring model can be used to monitor the runtime parameters of the gray-scale test within a preset monitoring range, and determine whether at least one runtime parameter meets the first alarm condition. The monitoring model is an artificial intelligence model.

[0048] The technical solution of this embodiment monitors the operating parameters within a preset monitoring range to promptly detect whether the operating parameters meet the first alarm condition, thus avoiding the failure to detect serious anomalies in a timely manner and affecting the efficiency of grayscale testing.

[0049] S120. Based on the monitoring model and operating parameters, determine whether the grayscale test is in a preset abnormal state.

[0050] The monitoring model is an artificial intelligence model equipped with the ability to identify changes in operating parameters. These changes can be normal or abnormal. When the operating parameter data shows a preset operating state, it is determined that the change in the operating parameter has become abnormal. The monitoring model can be a pre-trained artificial intelligence model.

[0051] Specifically, the operating parameters are input into the monitoring model, which can analyze the operating parameters to determine whether preset operating state data appears in the operating parameters, and output whether the change status of the operating parameters has an abnormal change status, thereby accurately determining whether the grayscale test is in a preset abnormal state.

[0052] As an optional implementation, determining whether the grayscale test is in a preset abnormal state based on the monitoring model and operating parameters includes: determining the data change trend of each operating parameter according to the operating parameters; identifying the data change trend of each operating parameter based on the monitoring model to determine whether the grayscale test is in a preset abnormal state. The monitoring model is configured with the function of identifying the data change trend of the operating parameters.

[0053] Among them, the data change trend can be the change trend of operating parameters over time.

[0054] Specifically, determining the data change trend of each operating parameter based on the operating parameters includes: fitting the operating parameters using a preset data processing method to determine the data change trend of the operating parameters. The preset data processing method can be a mathematical method used to determine the data change trend of the operating parameters, including but not limited to linear regression, moving average, and exponential smoothing. Alternatively, the obtained operating parameter values ​​at different times can be plotted as a data trend graph to obtain the change trend of each operating parameter from the graph.

[0055] Furthermore, the monitoring model can analyze the data change trends of each operating parameter to determine whether the data change trends of the operating parameters meet the preset data change trends. If the data change trends of the operating parameters meet the preset data change trends, the monitoring model will output that the grayscale test is in a preset abnormal state. Here, the preset data change trend can be understood as the data change trend of the operating parameters when the grayscale test is in a preset abnormal state.

[0056] The technical solution of this embodiment first determines the data change trend of each operating parameter, and then identifies the data change trend of each operating parameter based on the monitoring model to determine whether the gray-scale test is in a preset abnormal state. This avoids the situation where the monitoring model is insensitive to a large number of operating parameters and directly processes a large number of operating parameters, resulting in inaccurate output results. By first determining the data change trend of each operating parameter and then using the monitoring model to identify the data change trend, the accuracy of the output results can be greatly improved, and the efficiency of the model for data analysis can also be improved.

[0057] The technical solution of this disclosure embodiment determines the test container corresponding to the grayscale test and obtains at least one operating parameter of the test container when running the grayscale test. The operating parameter is data obtained by real-time collection of the operating status data of the test container. Further, based on the monitoring model and the operating parameter, it is determined whether the grayscale test is in a preset abnormal state. That is, this disclosure monitors the real-time parameters and trends of the test container to be tested. Based on the real-time parameters and the changing trends of the real-time parameters, more accurate container data monitoring is achieved. Thus, by monitoring the changing state of the operating parameters of the test container, it is possible to accurately determine whether the grayscale test has an anomaly, thereby improving the accuracy of monitoring abnormal situations during the grayscale test.

[0058] Figure 2 is a flowchart of another grayscale testing anomaly monitoring method provided in this embodiment. Based on the above embodiments, this embodiment further describes in detail the process of "determining the data change trend of each operating parameter according to the operating parameters; identifying the data change trend of each operating parameter based on the monitoring model, and determining whether the grayscale test is in a preset abnormal state." This embodiment can be combined with various optional solutions in one or more of the above embodiments. As shown in Figure 2, the grayscale testing anomaly monitoring method includes:

[0059] S210. Determine the test container corresponding to the grayscale test, and obtain at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container.

[0060] S220. Draw a trend chart for each type of operating parameter; the trend chart is used to represent the data change trend of the operating parameter over time.

[0061] The runtime parameters can include at least one of the following: concurrency, memory usage, CPU usage, number of threads, success rate, latency, and error log volume. Concurrency can be requests per second (QPS); success rate can include, but is not limited to, program execution success rate, gateway success rate, and call success rate; call success rate can include API call success rate, service call success rate, etc.; latency can be a delay parameter associated with gray-scale testing, including but not limited to P50, P90, P99, and average latency. P99 and P90 results can reveal intermittent issues such as resource contention, slow queries, and network jitter.

[0062] A running parameter trend chart can be understood as a visual chart that reflects the trend of data changes. Running parameter trend charts can be displayed in the form of line charts, scatter plots, or area charts. For example, a line chart is shown in Figure 3.

[0063] S230. Based on the monitoring model, determine whether the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition; the second alarm condition is used to indicate that the grayscale test is in a preset abnormal state.

[0064] Among them, the preset abnormal state can be understood as the state when the running status data of the grayscale container is abnormal to varying degrees.

[0065] Specifically, the monitoring model identifies the trend chart of operating parameters to obtain the first trend data corresponding to the operating parameters. When the first trend data meets the preset data trend change range, it is determined whether the trend chart of the operating parameters meets the second alarm condition. The preset data trend change range can be understood as the trend change information of the data when the operating parameters are in a preset abnormal state.

[0066] Optionally, the monitoring model may have the ability to analyze trend charts of operating parameters. Generating the monitoring model may include: acquiring at least one historical operating parameter from different gray-scale testing phases; plotting the historical operating parameters as historical operating parameter trend charts; different historical operating parameter trend charts corresponding to different trend chart analysis results; using the historical operating parameter trend charts and their corresponding trend chart analysis results as training data; and training the monitoring model based on the training data. The trend chart analysis results may be the analysis results of historical operating parameter trend charts corresponding to whether the gray-scale test is in a preset abnormal state.

[0067] Furthermore, based on the training data, the monitoring model is trained to obtain a monitoring model, including: dividing the training data into training data, test data, and validation data; training the monitoring model's chart analysis capabilities based on the training data to obtain a trained monitoring model; and verifying the trained monitoring model's chart analysis capabilities against the test and validation data. If the capabilities are met, the trained monitoring model is used for gray-scale testing. This disclosure ensures the accuracy of the monitoring model's ability to analyze trend charts of operating parameters during training.

[0068] S240. If the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition, then the grayscale test is determined to be in a preset abnormal state, and a second alarm message is issued.

[0069] The second alarm information may include, but is not limited to, the operating parameters corresponding to the second alarm condition, the corresponding trend data, the number of test containers corresponding to the gray-scale test, the environment configuration information of the gray-scale test, and the gray-scale test project; the trend data may be the trend data obtained by the monitoring model after analyzing the trend chart of the operating parameters corresponding to the operating parameters.

[0070] This disclosure allows for the issuance of second alarm information through various means, including but not limited to common alarm methods such as pop-ups, new message notifications, and sound effects. This disclosure can display second alarm information on platforms such as web pages, applications, mobile apps that communicate synchronously with the aforementioned platforms, SMS messages, and servers; this disclosure does not impose specific limitations on these platforms.

[0071] In this embodiment, optionally, the second alarm condition may include a stability alarm condition, a first anomaly alarm condition, and a second anomaly alarm condition; the stability alarm condition is used to indicate that the grayscale test has a stability problem; the first anomaly alarm condition is used to indicate that the grayscale test is in a first anomaly state; the second anomaly alarm condition is used to indicate that the grayscale test is in a second anomaly state; the severity of the first anomaly state is greater than the severity of the second anomaly state.

[0072] Accordingly, if the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition, then the grayscale test is determined to be in a preset abnormal state, including steps A1-A3:

[0073] Step A1: If the trend graph of the operating parameters corresponding to the operating parameters meets the stability alarm conditions, the control monitoring model outputs that there is a stability problem in the grayscale test and outputs the second alarm information corresponding to the stability alarm conditions; the second alarm information corresponding to the stability alarm conditions may include, but is not limited to, the operating parameters that meet the stability alarm conditions and the change trend data of the operating parameters that meet the stability alarm conditions.

[0074] Step A2: If the trend graph of the operating parameters corresponding to the operating parameters meets the first abnormal alarm condition, the control monitoring model outputs that the grayscale test is in the first abnormal state and outputs the second alarm information corresponding to the first abnormal alarm condition; the second alarm information corresponding to the first abnormal alarm condition may include, but is not limited to, the operating parameters that meet the first abnormal alarm condition and the change trend data of the operating parameters that meet the first abnormal alarm condition.

[0075] Step A3: If the trend graph of the operating parameters corresponding to the operating parameters meets the second abnormal alarm condition, the control monitoring model outputs that the grayscale test is in the second abnormal state and outputs the second alarm information corresponding to the second abnormal alarm condition; the second alarm information corresponding to the second abnormal alarm condition may include, but is not limited to, the operating parameters that meet the second abnormal alarm condition and the change trend data of the operating parameters that meet the second abnormal alarm condition.

[0076] The technical solution of this embodiment divides the second alarm condition into alarm conditions of different degrees, so as to more accurately determine the type of abnormal state of the gray-scale test when an anomaly occurs. This allows for targeted anomaly checks and quick adjustments to the corresponding problems in the gray-scale test, thereby improving the efficiency of the gray-scale test.

[0077] In this embodiment, optionally, when certain specific trends in operating parameters appear, because they differ from normal data trends, they may be mistakenly identified as abnormal data and an alarm may be triggered. However, in reality, data with certain specific trends is not abnormal data. Therefore, to avoid false alarms, it is necessary to monitor certain specific trends. Specifically, this involves: identifying the data trend of each operating parameter based on a monitoring model to determine whether the grayscale test is in a preset abnormal state; and further including: determining whether the operating parameter trend graph corresponding to the operating parameter meets the false alarm condition based on the monitoring model; the false alarm condition is a condition indicating that the operating parameter matches the preset operating data; if the operating parameter trend graph corresponding to the operating parameter meets the false alarm condition, then the grayscale test is not in a preset abnormal state and no alarm information is output.

[0078] The preset operational data can be understood as data whose trends do not match those of normal data, but which still represent normal data trends. The preset operational data is determined based on the characteristics of the actual business.

[0079] Specifically, the monitoring model identifies the trend chart of operating parameters to obtain the second trend data corresponding to the operating parameters. If the second trend data matches the preset operating data, it is determined that the trend chart of operating parameters corresponding to the operating parameters meets the false alarm conditions.

[0080] For example, the preset running data corresponding to the running parameters can be the trend information of the running parameters continuously increasing or decreasing according to the first preset rate of change for a first time period and then returning to normal.

[0081] If the running parameter is a QPS value, the preset running data can be a preset number of QPS values; the preset value can be zero.

[0082] If the operating parameters are time delays, especially P90 and P99, the preset operating data can be that the increase in the delay parameters is less than the preset range; for example, the increase in P90 and / or P99 is less than 50%.

[0083] If the running parameter is one of memory usage, CPU usage, or latency, the preset running data corresponding to the running parameter can be the trend information of the running parameter decreasing in the second time period after the gray-scale test is restarted.

[0084] If the running parameters are memory usage and / or CPU usage, the preset running data can be that the memory usage and / or CPU usage is less than the preset usage; for example, the memory usage and / or CPU usage is less than 0.4.

[0085] The technical solution of this embodiment, based on the monitoring model, determines whether the trend chart of the operating parameters corresponding to the operating parameters meets the false alarm conditions, so as to accurately determine whether there are certain specific trends in the changing trend of the operating parameters, thereby avoiding false alarms of normal situations as abnormalities, and realizing accurate monitoring of the operating status of grayscale testing.

[0086] The technical solution of this disclosure embodiment determines the test container corresponding to the grayscale test and obtains at least one operating parameter of the test container when running the grayscale test. The operating parameter is data obtained by real-time collection of the operating status data of the test container. Each operating parameter is plotted as an operating parameter trend chart. The operating parameter trend chart is used to represent the data change trend of the operating parameter over time. The operating parameter trend chart can effectively reflect the data change trend, so that the monitoring model can quickly and accurately determine whether the operating parameter trend chart corresponding to the operating parameter meets the second alarm condition. This effectively avoids the situation where the monitoring model is not sensitive to a large number of operating parameters and directly processes a large number of operating parameters, resulting in inaccurate output results. This greatly improves the accuracy of the output results and also improves the efficiency of the model for data analysis. Furthermore, if the operating parameter trend chart corresponding to the operating parameter meets the second alarm condition, it is determined that the grayscale test is in a preset abnormal state and a second alarm message is issued. This achieves accurate determination of whether the grayscale test is abnormal and improves the accuracy of monitoring abnormal situations during the grayscale test.

[0087] Figure 4 is a flowchart of another grayscale testing anomaly monitoring method provided in this embodiment. Based on the above embodiments, this embodiment further describes in detail "determining whether the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition based on the monitoring model." This embodiment can be combined with various optional solutions in one or more of the above embodiments. As shown in Figure 4, the grayscale testing anomaly monitoring method includes:

[0088] S310. Determine the test container corresponding to the grayscale test, and obtain at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container.

[0089] S320. Draw a trend chart for each type of operating parameter; the trend chart is used to represent the data change trend of the operating parameter over time.

[0090] S330. In response to the data input operation, the control monitoring model calls the preset information corresponding to the running parameter trend chart from the preset information database; the data input operation is the operation of inputting the running parameter trend chart of each running parameter into the monitoring model; the preset information database stores preset information for judging whether the running parameter trend chart meets the second alarm condition.

[0091] The monitoring model is associated with a preset information database, which can be set internally or externally to assist the monitoring model in determining whether the gray-scale test meets the second alarm condition. The preset information can be understood as trend information indicating whether the second alarm condition is met for different operating parameter trend charts.

[0092] S340. Based on the monitoring model, identify the trend chart of operating parameters and preset information to determine whether the gray-scale test meets the second alarm condition. If the trend chart of operating parameters corresponding to the operating parameters meets the second alarm condition, determine that the gray-scale test is in a preset abnormal state and issue the second alarm information.

[0093] Specifically, the monitoring model identifies the trend chart of the operating parameters and obtains the third trend data corresponding to the operating parameters. When the third trend data matches the preset information corresponding to the trend chart of the operating parameters, it is determined that the grayscale test meets the second alarm condition. The monitoring model is then controlled to output that the grayscale test is in a preset abnormal state and issue the second alarm information.

[0094] Furthermore, the preset information may include first preset information, second preset information, and third preset information; the first preset information may be the parameter change trend information corresponding to the grayscale test being in the first abnormal state; the second preset information may be the parameter change trend information corresponding to the grayscale test being in the second abnormal state; and the third preset information may be the parameter change trend information corresponding to the running parameter change trend having stability issues.

[0095] The second alarm condition may include a stability alarm condition, a first anomaly alarm condition, and a second anomaly alarm condition; the first anomaly alarm condition is used to indicate that the grayscale test is in a first anomaly state; the second anomaly alarm condition is used to indicate that the grayscale test is in a second anomaly state; the severity of the first anomaly state is greater than the severity of the second anomaly state.

[0096] Correspondingly, when the third trend data matches the preset information corresponding to the running parameter trend chart, it is determined that the grayscale test meets the second alarm condition, and the monitoring model is controlled to output that the grayscale test is in a preset abnormal state, which may include steps B1-B3:

[0097] Step B1: If the third trend data meets the first preset information, determine whether the grayscale test meets the first abnormal alarm condition, and control the monitoring model to output that the grayscale test is in the first abnormal state.

[0098] For example, if the running parameter is CPU utilization, the first preset information can be that the CPU utilization is greater than a preset utilization, and this situation of CPU utilization being greater than the preset utilization lasts for at least a third time period. For example, the CPU utilization is greater than 80% for a long time.

[0099] If the running parameter is memory usage, the first preset information can be information about a continuously increasing memory usage, where the duration of this increase is greater than the fourth time period and the absolute value of the memory usage has doubled. For example, the memory usage is continuously rising, and the increase lasts for more than 10 minutes, and the absolute value has doubled.

[0100] If the running parameter is a QPS value; the first preset information is that all QPS values ​​are preset values, and the preset values ​​can be zero.

[0101] Step B2: If the third trend data satisfies the second preset information, determine whether the grayscale test meets the first abnormal alarm condition, and control the monitoring model to output that the grayscale test is in the first abnormal state.

[0102] For example, if the running parameter is CPU utilization, the second preset information is information about the continuous increase in CPU utilization, and the duration of the continuous increase in CPU utilization is less than the fifth time period.

[0103] If the running parameter is memory usage, the second preset information is that memory usage is continuously increasing, and the duration of this continuous increase is less than the sixth time period; the sixth time period is less than the fourth time period. For example, memory usage is continuously rising, but the increase lasts for a short time.

[0104] If the running parameters are latency, especially P90 and P99; the second preset information is information that the latency is at least a preset multiple of the latency before the test program corresponding to the gray-scale test restarts for at least the seventh time period; the second preset information is information after the test program corresponding to the gray-scale test restarts. For example, after the test program corresponding to the gray-scale test restarts, the latency of P90 and P99 is 2 times or more than that before the program restarts, and the value persists for a long time.

[0105] Step B3: If the third trend data meets the third preset information, determine whether the grayscale test meets the stability alarm conditions, and control the monitoring model to output that the grayscale test has stability problems.

[0106] The third preset information can be information about the running parameters continuously changing at a second preset rate of change for at least an eighth time period within the monitoring window corresponding to the grayscale test. For example, if the running parameters show continuous and significant changes within the monitoring window, then the test program has stability issues.

[0107] The technical solution of this disclosure embodiment determines the test container corresponding to the grayscale test and obtains at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time collection of the operating status data of the test container. Each operating parameter is plotted as an operating parameter trend chart; the operating parameter trend chart is used to represent the data change trend of the operating parameter over time. In response to a data input operation, the monitoring model calls preset information corresponding to the operating parameter trend chart from a preset information database; the preset information is stored in the preset information database to facilitate accurate acquisition of data for comparison with the operating parameter trend chart, so as to accurately determine whether the grayscale test meets the second alarm condition. Based on the monitoring model's identification of the operating parameter trend chart and the preset information, it determines whether the grayscale test meets the second alarm condition. If the operating parameter trend chart corresponding to the operating parameter meets the second alarm condition, it is determined that the grayscale test is in a preset abnormal state, and a second alarm message is issued, thus achieving accurate determination of whether the grayscale test has issued an abnormality and improving the accuracy of monitoring abnormal situations during the grayscale test process.

[0108] Figure 5 is a schematic diagram of an anomaly monitoring device for grayscale testing provided in an embodiment of this disclosure. This embodiment is applicable to situations requiring anomaly monitoring in grayscale testing. The anomaly monitoring device for grayscale testing can be implemented in hardware and / or software, and can be configured in any electronic device with network communication capabilities. As shown in Figure 5, the anomaly monitoring device for grayscale testing of this disclosure includes:

[0109] The parameter acquisition module 410 is configured to determine the test container corresponding to the grayscale test and acquire at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container.

[0110] The monitoring module 420 is configured to determine whether the grayscale test is in a preset abnormal state based on the monitoring model and the operating parameters.

[0111] Based on the above embodiments, optionally, the grayscale test anomaly monitoring device includes a data monitoring module. The data monitoring module is used to issue a first alarm message if the running time of the grayscale test is within a preset monitoring interval and at least one of the running parameters meets a first alarm condition. The preset monitoring interval is a time period lasting a preset duration from the start of the grayscale test. The first alarm message includes at least the running parameter that meets the first alarm condition and the first alarm condition corresponding to the running parameter that meets the first alarm condition. In response to at least one running parameter meeting the first alarm condition, the grayscale test is interrupted.

[0112] Based on the above embodiments, optionally, at least one of the operating parameters satisfies the first alarm condition, including: if at least one of the operating parameters has a preset parameter and / or the fluctuation amplitude of the operating parameter is greater than or equal to the fluctuation abnormal threshold, then it is determined that at least one of the operating parameters satisfies the first alarm condition; wherein, when the fluctuation amplitude of the operating parameter is greater than or equal to the fluctuation abnormal threshold, it is indicated that the grayscale test is interrupted.

[0113] Based on the above embodiments, optionally, the monitoring module includes a data change trend determination unit and a first monitoring unit; the data change trend determination unit is used to determine the data change trend of each of the operating parameters according to the operating parameters; the monitoring unit is used to identify the data change trend of each of the operating parameters based on the monitoring model, and determine whether the grayscale test is in a preset abnormal state.

[0114] Based on the above embodiments, optionally, the data change trend determination unit is used to: draw each of the operating parameters into an operating parameter trend chart corresponding to each of the operating parameters; the operating parameter trend chart is used to represent the data change trend of the operating parameter over time.

[0115] Based on the above embodiments, optionally, the first monitoring unit includes a monitoring subunit and a first judgment subunit; the monitoring subunit is used to determine, based on the monitoring model, whether the trend graph of the operating parameters corresponding to the operating parameters meets the second alarm condition; the second alarm condition is used to indicate that the grayscale test is in a preset abnormal state; the first judgment subunit is used to determine that the grayscale test is in a preset abnormal state and issue a second alarm message if the trend graph of the operating parameters corresponding to the operating parameters meets the second alarm condition.

[0116] Based on the above embodiments, optionally, the second alarm condition includes a stability alarm condition, a first anomaly alarm condition, and a second anomaly alarm condition; the stability alarm condition is used to indicate that the grayscale test has a stability problem; the first anomaly alarm condition is used to indicate that the grayscale test is in a first anomaly state; the second anomaly alarm condition is used to indicate that the grayscale test is in a second anomaly state; the severity of the first anomaly state is greater than the severity of the second anomaly state.

[0117] The first judgment subunit is configured to: if the trend graph of the operating parameters corresponding to the operating parameters meets the stability alarm condition, then control the monitoring model to output that the grayscale test has a stability problem; if the trend graph of the operating parameters corresponding to the operating parameters meets the first abnormal alarm condition, then control the monitoring model to output that the grayscale test is in a first abnormal state; if the trend graph of the operating parameters corresponding to the operating parameters meets the second abnormal alarm condition, then control the monitoring model to output that the grayscale test is in a second abnormal state.

[0118] Based on the above embodiments, optionally, a monitoring subunit is configured to: respond to a data input operation, control the monitoring model to retrieve preset information corresponding to the operating parameter trend chart from the preset information database; the data input operation is an operation of inputting the operating parameter trend chart for each operating parameter into the monitoring model; the preset information database stores preset information for determining whether the operating parameter trend chart meets the second alarm condition; and based on the monitoring model, identify the operating parameter trend chart and the preset information to determine whether the grayscale test meets the second alarm condition.

[0119] Based on the above embodiments, optionally, the monitoring module includes a second monitoring unit, which is used to: determine whether the trend graph of the operating parameters corresponding to the operating parameters meets the false alarm conditions based on the monitoring model; the false alarm conditions are conditions that indicate that the operating parameters match the preset operating data; if the trend graph of the operating parameters corresponding to the operating parameters meets the false alarm conditions, then the grayscale test is not in a preset abnormal state and no alarm information is output.

[0120] Based on the above embodiments, optionally, at least one operating parameter of the test container is obtained, including: each operating parameter corresponds to a different sampling interval and sampling frequency; the sampling interval is the time range of data collection.

[0121] Based on the above embodiments, optionally, the operating parameters include at least one of the following: concurrency, memory utilization, CPU utilization, number of threads, success rate, and latency.

[0122] Specifically, for each container participating in the gray-scale test, service-level monitoring is performed, including aggregating the operating parameters of each test container in the same gray-scale test to obtain service-level operating parameters. The aggregation method includes at least one of calculating the mean, median, quantiles (such as P99), and / or summation. Based on the monitoring model, the service-level operating parameters are analyzed to determine whether the gray-scale test is in an abnormal state at the service level. Through service-level monitoring, overall performance degradation that is difficult to detect by individual container-level monitoring can be detected. For example, a 3% increase in latency for each test container may not trigger a container-level alarm, but a continuous increase in service-level P99 latency can be captured by service-level monitoring, thus providing timely and accurate alarms.

[0123] The service-level operating parameters are plotted as a service-level operating parameter trend chart, and the trend chart is analyzed based on the monitoring model to determine whether the gray-scale test meets the second alarm condition at the service level. For example, if the P99 latency of each test container increases from 280ms to 290ms, an increase of approximately 3.6%, it may not trigger a container-level alarm; however, if the number of test containers is 50, the service-level P99 latency may increase from 280ms to 295ms, showing a continuous upward trend on the service-level trend chart, thus triggering the second alarm at the service level.

[0124] The anomaly monitoring device for grayscale testing provided in this disclosure can execute the anomaly monitoring method for grayscale testing provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0126] Figure 6 illustrates a schematic diagram of an electronic device that can be used to implement the anomaly monitoring method for grayscale testing according to embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0127] As shown in Figure 6, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer programs stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0128] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0129] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as anomaly monitoring methods for grayscale testing.

[0130] In some embodiments, the anomaly monitoring method for grayscale testing can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the anomaly monitoring method for grayscale testing described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the anomaly monitoring method for grayscale testing by any other suitable means (e.g., by means of firmware).

[0131] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.

[0132] Computer programs used to implement the methods of this disclosure may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0133] In the context of this disclosure, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0134] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0135] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0136] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0137] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this disclosure can be achieved, and this is not limited herein.

[0138] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure. Industrial applicability

[0139] By adopting the above solution, it is possible to effectively and accurately determine whether an anomaly has occurred during the gray-scale test by monitoring the changes in the operating parameters of the test container, thereby improving the accuracy of monitoring anomalies during the gray-scale test process.

Claims

1. A method of monitoring for anomalies in a gray scale test, the method comprising: The method includes: The test container corresponding to the grayscale test is determined, and at least one operating parameter of the test container is obtained when the grayscale test is run; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container. Based on the monitoring model and the operating parameters, it is determined whether the grayscale test is in a preset abnormal state.

2. The method of claim 1, wherein, After obtaining at least one operating parameter of the test container, the method further includes: If the running time of the grayscale test is within a preset monitoring interval, and at least one of the running parameters meets the first alarm condition, then a first alarm message is issued; the preset monitoring interval is a time period lasting a preset duration from the start of the grayscale test; the first alarm message includes at least the running parameter that meets the first alarm condition and the first alarm condition corresponding to the running parameter that meets the first alarm condition; wherein, in response to at least one running parameter meeting the first alarm condition, the grayscale test is interrupted.

3. The method of claim 2, wherein, At least one of the operating parameters satisfies the first alarm condition, including: If at least one of the operating parameters contains a preset parameter and / or the fluctuation amplitude of the operating parameter is greater than or equal to the fluctuation anomaly threshold, then at least one of the operating parameters is determined to meet the first alarm condition; wherein, when the fluctuation amplitude of the operating parameter is greater than or equal to the fluctuation anomaly threshold, the grayscale test is interrupted.

4. The method of claim 1, wherein, Based on the monitoring model and the operating parameters, determine whether the grayscale test is in a preset abnormal state, including: Determine the data change trend of each of the operating parameters based on the operating parameters; Based on the monitoring model, the data change trend of each of the operating parameters is identified to determine whether the grayscale test is in a preset abnormal state.

5. The method of claim 4, wherein, Determining the data change trend of each of the operating parameters based on the operating parameters includes: Each of the operating parameters is plotted as an operating parameter trend chart; the operating parameter trend chart is used to represent the data change trend of the operating parameter over time.

6. The method of claim 5, wherein, Based on the monitoring model, the data change trend of each of the operating parameters is identified to determine whether the grayscale test is in a preset abnormal state, including: Based on the monitoring model, it is determined whether the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition; the second alarm condition is used to indicate that the grayscale test is in a preset abnormal state. If the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition, then the grayscale test is determined to be in a preset abnormal state, and a second alarm message is issued.

7. The method of claim 6, wherein, The second alarm condition includes a stability alarm condition, a first anomaly alarm condition, and a second anomaly alarm condition; the stability alarm condition is used to indicate that the grayscale test has a stability problem; the first anomaly alarm condition is used to indicate that the grayscale test is in a first anomaly state. The second abnormal alarm condition is used to indicate that the grayscale test is in a second abnormal state; the severity of the first abnormal state is greater than the severity of the second abnormal state.

8. The method of claim 7, wherein, If the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition, then the grayscale test is determined to be in a preset abnormal state, including: If the trend chart of the operating parameters corresponding to the operating parameters meets the stability alarm conditions, then the monitoring model is controlled to output that the grayscale test has a stability problem. If the trend chart of the operating parameters corresponding to the operating parameters meets the first abnormal alarm condition, then control the monitoring model to output that the grayscale test is in the first abnormal state; If the trend chart of the operating parameters corresponding to the operating parameters meets the second abnormal alarm condition, then the monitoring model is controlled to output that the grayscale test is in the second abnormal state.

9. The method of claim 6, wherein, Based on the monitoring model, determine whether the trend chart of the operating parameters corresponding to the operating parameters meets the second alarm condition, including: In response to a data input operation, the monitoring model is controlled to retrieve preset information corresponding to the operating parameter trend chart from the preset information database; the data input operation is the operation of inputting the operating parameter trend chart for each operating parameter into the monitoring model; the preset information database stores preset information for determining whether the operating parameter trend chart meets the second alarm condition; Based on the monitoring model, the trend chart of the operating parameters and the preset information are identified to determine whether the grayscale test meets the second alarm condition.

10. The method of claim 5, wherein, Based on the monitoring model, the data change trend of each of the operating parameters is identified to determine whether the grayscale test is in a preset abnormal state, and the method further includes: Based on the monitoring model, it is determined whether the trend chart of the operating parameters corresponding to the operating parameters meets the false alarm conditions; the false alarm conditions are conditions that indicate that the operating parameters match the preset operating data. If the trend chart of the operating parameters corresponding to the operating parameters meets the false alarm condition, then the grayscale test is not in a preset abnormal state and no alarm information is output.

11. The method of claim 1, wherein, Obtain at least one operating parameter of the test container when running a grayscale test, including: The sampling interval and sampling frequency are different for each of the aforementioned operating parameters; the sampling interval is the time range for data collection.

12. The method of claim 1, wherein, The monitoring model is an artificial intelligence model and is configured to identify the changing states of the operating parameters, including normal and abnormal changes in the operating parameters.

13. The method according to any one of claims 1-12, characterized in that, The operating parameters include at least one of the following: concurrency, memory usage, CPU usage, number of threads, success rate, and latency.

14. The method of claim 13, wherein, The method further includes: Aggregate the same type of runtime parameters from all test containers participating in the same gray-scale test to determine the service-level runtime parameters; Based on the monitoring model and the service-level operating parameters, it is determined whether the gray-scale test is in a preset abnormal state.

15. The method of claim 14, wherein, Determining whether the grayscale test is in a preset abnormal state also includes: Determining the second data change trend of the service-level operating parameters based on the service-level operating parameters includes: Plot the service-level operating parameters as a service-level operating parameter trend chart; The service-level operating parameter trend chart is used to represent the data change trend of the service-level operating parameters over time.

16. An abnormality monitoring device for a gray scale test, characterized by comprising: The device includes: The parameter acquisition module is configured to determine the test container corresponding to the grayscale test and acquire at least one operating parameter of the test container when running the grayscale test; the operating parameter is data obtained by real-time acquisition of the operating status data of the test container. The monitoring module is configured to determine whether the grayscale test is in a preset abnormal state based on the monitoring model and the operating parameters.

17. An electronic device, comprising: include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the anomaly monitoring method for grayscale testing as described in any one of claims 1-15.

18. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium stores computer instructions that cause a processor to execute the anomaly monitoring method for grayscale testing as described in any one of claims 1-15.