Simulation verification method of distributed system, storage medium and electronic equipment

By analyzing the simulation verification instructions and obtaining the call link data of the distributed system, determining the location of the simulation node, and performing data comparison, the problem of low validity of the distributed system simulation verification in the existing technology is solved, and more accurate and reliable simulation verification results are achieved.

CN119759787APending Publication Date: 2025-04-04INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411954754.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

In the prior art, the effectiveness of simulation verification of distributed systems is low, and it is difficult to capture all possible scenario differences, resulting in deviations from the actual system behavior.

Method used

By analyzing the requirements in the simulation verification instructions, obtaining the call link data of the distributed system, determining the location of the simulation node, and comparing it with historical data based on the simulation data to determine the simulation verification results. This method ensures the targetedness of simulation verification by analyzing the dependencies between the relevant paths and nodes by analyzing the call link data.

Benefits of technology

It improves the accuracy and reliability of simulation verification results, enhances the effectiveness of simulation verification for distributed systems, and can more accurately evaluate the improvement effect of the system or find potential problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759787A_ABST
    Figure CN119759787A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation verification method of a distributed system, a storage medium and electronic equipment. Relates to the distributed field, and the method comprises the steps: responding to a received simulation verification instruction of a distributed system, analyzing a simulation verification demand in the simulation verification instruction, and obtaining call link data of the distributed system; according to the simulation verification demand and the calling link data, a simulation node position is determined, and the simulation node position is used for representing a position corresponding to a simulation node influenced by the simulation verification demand; simulating a simulation node position of the distributed system according to the simulation verification requirement to obtain simulation data; based on the simulation data and historical simulation data corresponding to the simulation verification requirement, a simulation verification result of the distributed system is determined, and the simulation verification result is used for representing whether simulation verification is successfully carried out on the distributed system or not. Through the method and the device, the problem of relatively low effectiveness of simulation verification on the distributed system in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of distributed systems, and in particular to a simulation verification method, storage medium, and electronic device for a distributed system. Background Art

[0002] Distributed systems play a vital role in modern information technology. Especially with the rapid development of cloud computing, big data and the Internet of Things, distributed systems have become the infrastructure for processing large-scale data and providing high-availability services. These systems are usually composed of multiple geographically dispersed computers that communicate and collaborate over a network to complete complex tasks together. However, the complexity and dynamics of distributed systems pose great challenges to their design, development and operation and maintenance, especially to ensure the correctness and efficiency of the system in various scenarios.

[0003] At present, simulation verification of distributed systems mainly relies on building system models, and using models for prediction and testing. Although this method can provide initial insights into system behavior, due to the diversity of actual system environments, simulation based solely on models often fails to capture all possible scenario differences, resulting in deviations between simulation results and actual system behavior, making simulation verification of distributed systems less effective.

[0004] With regard to the problem of low effectiveness of simulation verification of distributed systems in related technologies, no effective solution has been proposed so far. Summary of the invention

[0005] The main purpose of the present application is to provide a simulation verification method, storage medium, and electronic device for a distributed system to solve the problem of low effectiveness of simulation verification of distributed systems in related technologies.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a simulation verification method for a distributed system is provided. The method includes: in response to receiving a simulation verification instruction of a distributed system, parsing the simulation verification requirements in the simulation verification instruction, and obtaining the call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system; according to the simulation verification requirements and the call link data, determining the simulation node position, wherein the simulation node position is used to indicate the position corresponding to the simulation node affected by the simulation verification requirements; simulating the simulation node position of the distributed system according to the simulation verification requirements to obtain simulation data; based on the simulation data and the historical simulation data corresponding to the simulation verification requirements, determining the simulation verification result of the distributed system, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

[0007] Furthermore, based on the simulation data and the historical simulation data corresponding to the simulation verification requirements, the simulation verification results of the distributed system are determined, including: comparing the simulation data with the historical simulation data to determine the first difference data between the simulation data and the historical simulation data; based on the simulation impact area corresponding to the simulation verification requirements, determining the predicted simulation data corresponding to the simulation verification requirements; comparing the simulation data with the predicted simulation data to determine the second difference data between the simulation data and the predicted simulation data; and determining the simulation verification results based on the first difference data and the second difference data.

[0008] Further, based on the first difference data and the second difference data, a simulation verification result is determined, including: in response to the difference between the first difference data and the second difference data being greater than a preset threshold, determining that the simulation verification result is an unsuccessful simulation verification of the distributed system; in response to the difference being less than a preset threshold, determining that the simulation verification result is a successful simulation verification of the distributed system.

[0009] Furthermore, the method also includes: obtaining at least one initial historical simulation data corresponding to the simulation verification requirement; and determining historical simulation data having a similarity greater than a preset similarity from the at least one initial historical simulation data based on the similarity between the at least one initial historical simulation data and the simulation data.

[0010] Furthermore, obtaining at least one initial historical simulation data corresponding to the simulation verification requirement includes: obtaining data input requirements and application information corresponding to the simulation verification requirement; extracting a simulation data set corresponding to the application information from a database; and screening the simulation data in the simulation data set based on the data input requirements to obtain at least one initial historical simulation data.

[0011] Furthermore, obtaining call link data of the distributed system includes: obtaining parameter information of the distributed system and operation data of application instances in the distributed system; and constructing call link data based on the parameter information and the operation data.

[0012] Furthermore, the simulation node location is determined based on the simulation verification requirements and the call link data, including: determining at least one simulation logic corresponding to the simulation verification requirements, wherein the at least one simulation logic is used to guide the simulation verification process; determining a simulation verification target based on the at least one simulation logic, wherein the simulation verification target is used to represent a target to be simulated and verified in a distributed system; and determining the simulation node location based on the simulation verification target and the call link data.

[0013] Furthermore, the simulation node position is determined according to the simulation verification target and the call link data, including: determining the simulation verification position and the logic change position in the distributed system according to the simulation verification target and the call link data, wherein the simulation verification position is used to represent the node position to be simulated and verified in the distributed system, and the logic change position is used to represent the node position to be simulated and verified by introducing abnormal data; based on the simulation verification position and the logic change position, the simulation node position is determined.

[0014] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a simulation verification device for a distributed system is provided. The device includes: a requirement parsing module, which is used to respond to receiving a simulation verification instruction of a distributed system, parse the simulation verification requirements in the simulation verification instruction, and obtain the call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system; a position determination module, which is used to determine the simulation node position according to the simulation verification requirements and the call link data, wherein the simulation node position is used to indicate the position corresponding to the simulation node affected by the simulation verification requirements; a first simulation module, which is used to simulate the simulation node position of the distributed system according to the simulation verification requirements to obtain simulation data; a result determination module, which is used to determine the simulation verification result of the distributed system based on the simulation data and the historical simulation data corresponding to the simulation verification requirements, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, and the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the methods in various embodiments of the present invention.

[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the method in each embodiment of the present invention is executed when the program is running.

[0017] In order to achieve the above objective, according to another aspect of the present application, a computer program product is provided, including computer instructions, and when the computer instructions are executed by a processor, the methods in various embodiments of the present invention are implemented.

[0018] In an embodiment of the present application, in response to receiving a simulation verification instruction of a distributed system, the simulation verification requirements in the simulation verification instruction are parsed, and the call link data of the distributed system is obtained; the simulation node position is determined according to the simulation verification requirement and the call link data; the simulation node position of the distributed system is simulated according to the simulation verification requirement to obtain simulation data; based on the simulation data and the historical simulation data corresponding to the simulation verification requirement, a method for determining the simulation verification result of the distributed system is adopted. By analyzing the call link data, the dependencies between the paths and nodes related to the simulation verification requirement in the distributed system can be identified. In combination with the simulation verification requirement and the call link data, those nodes that have a direct impact on the verification target can be identified to ensure the targetedness of the simulation verification. Finally, the current simulation data is compared and analyzed with the historical data to evaluate the effect of the improvement of the distributed system or discover potential problems, thereby achieving the purpose of improving the accuracy and reliability of the simulation verification results, thereby achieving the technical effect of improving the effectiveness of the simulation verification of the distributed system, and then solving the technical problem of low effectiveness of simulation verification of the distributed system in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 A hardware structure block diagram of a computer terminal for implementing a simulation verification method for a distributed system is shown;

[0021] Figure 2 is a flow chart of a simulation verification method for a distributed system according to an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a simulation verification device for a distributed system according to an embodiment of the present application;

[0023] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:

[0027] Model building: According to the purpose of system analysis, build a model that can describe the system structure or behavior process. These models can be based on logical or quantitative relationships to facilitate further experiments and analysis.

[0028] Experimentation and analysis: Conduct experiments or quantitative analysis based on the model, which may include experimental analysis of indicators such as the sensitivity and stability of the model.

[0029] Verification and validation: Confirm through experimental results whether the model meets the expected design requirements or specifications. This includes model-to-model verification and circuit-to-circuit verification to ensure that the performance and function of the design in actual applications meet the expected standards.

[0030] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0031] Example 1

[0032] According to an embodiment of the present application, a method embodiment of simulation verification of a distributed system is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a simulation verification method for a distributed system is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0034] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0035] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the simulation verification method of the distributed system in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the simulation verification method of the distributed system mentioned above. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0036] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0037] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0038] Under the above operating environment, this application provides Figure 2 The simulation verification method of the distributed system shown. Figure 2 It is a flow chart of a simulation verification method of a distributed system according to an embodiment of the present application.

[0039] Step S202, in response to receiving a simulation verification instruction of a distributed system, parsing the simulation verification requirements in the simulation verification instruction, and obtaining call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system.

[0040] The above-mentioned simulation verification instruction may be a command or signal that triggers the simulation system to perform a simulation verification process on the distributed system. Such instructions may include operation information such as starting simulation, stopping simulation, resetting simulation, and loading of specific simulation scenarios. The above-mentioned simulation verification requirements may refer to the desired goals or system characteristics that need to be verified when performing simulation verification. The above-mentioned call link data may be information describing the interaction and data transmission path between each node in the distributed system. In a distributed system, a request or task may need to be processed by multiple nodes to be completed, and the data transmission and function calls between these nodes form a call link. For example, the above-mentioned call link data may include but is not limited to: the order of service calls, the response time of each call, the dependencies between calls, and possible abnormal situations.

[0041] In an optional embodiment, when receiving a simulation verification instruction of a distributed system, the simulation system needs to promptly parse the simulation verification requirements in the simulation verification instruction so that the simulation system understands the specific requirements and goals of the simulation to ensure that the simulation work is carried out based on clear goals and needs. In addition, considering that the above-mentioned call link data describes the data flow relationship between different nodes in the distributed system, the simulation system can deeply understand the transmission path and flow direction of data in the distributed system, the data interaction method between nodes, and the operation logic of the system by acquiring and analyzing the call link data, thereby helping to improve the effectiveness of the simulation verification.

[0042] For example, it can be assumed that the simulation system receives a simulation verification instruction of a distributed system. By analyzing the instruction, the simulation system can determine the purpose of this simulation, which is to verify the performance and reliability of the above distributed system in the data backup process, including backup speed, data integrity, etc. At the same time, the simulation system can also obtain the call link data of the above distributed system, thereby parsing the communication path between each node in the distributed system, data transmission flow and other information, thereby providing a data basis for subsequent simulation verification.

[0043] Step S204, determining the simulation node position according to the simulation verification requirement and the call link data, wherein the simulation node position is used to indicate the position corresponding to the simulation node affected by the simulation verification requirement.

[0044] The above-mentioned simulation node positions may refer to the positions of distributed system nodes that are directly or indirectly affected by simulation verification requirements during the distributed system simulation verification process.

[0045] In an optional embodiment, taking into account that the above-mentioned simulation verification requirements may only involve a part of the nodes in the distributed system, in order to ensure that the simulation system only covers the nodes that meet the simulation verification requirements and does not cover the nodes that are not related to the simulation verification requirements during the simulation verification process, thereby avoiding the introduction of additional interference and causing the simulation verification results to fail to accurately meet the simulation verification requirements, based on this, the simulation system can first obtain the simulation nodes that need to participate in the simulation verification according to the simulation verification requirements. Since the call link data records in detail the path of how data and requests are transmitted and processed between nodes in the distributed system, the simulation system can further determine the location of the simulation node through the call link data.

[0046] For example, it can be assumed that a distributed system that needs to be simulated and verified includes node A, node B and node C. By analyzing the simulation and verification requirements corresponding to the distributed system, the simulation system can determine that the simulation and verification involves nodes A and C. Therefore, the simulation system can further determine the locations of nodes A and C based on the call link data of the current distributed system.

[0047] Step S206, simulating the simulation node positions of the distributed system according to the simulation verification requirements to obtain simulation data.

[0048] The above simulation data may be data generated by simulating the behavior and interaction of a specified simulation node location in response to simulation verification requirements. The above simulation data includes performance information of a distributed system or node during the simulation process.

[0049] In an optional embodiment, the simulation system can verify whether the distributed system can meet the initial design requirements in various scenarios by performing simulation at the simulation node position, so as to ensure the correctness and feasibility of the distributed system design.

[0050] For example, it can be assumed that the simulation system has clarified that the purpose of this simulation is to verify the performance of the distributed system under high-concurrency transactions by analyzing the above-mentioned simulation verification requirements. The simulation system can simulate the above-mentioned simulation node positions to simulate the operation of the distributed system under high-concurrency transactions. During the simulation process, the simulation system can record and analyze the performance data of the distributed system at different node positions in real time, such as transaction processing speed, system load, etc., and after the simulation is completed, the above-mentioned performance data is sorted and summarized to obtain the above-mentioned simulation data.

[0051] Step S208, determining a simulation verification result of the distributed system based on the simulation data and the historical simulation data corresponding to the simulation verification requirement, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

[0052] The above historical simulation data may refer to the data obtained when simulating and verifying the distributed system before this simulation verification. For example, the above historical simulation data may at least include the performance of the distributed system at different node locations, data flow, node collaboration information, etc., but is not limited to this. The above historical simulation data can be used as a reference for comparison and analysis with the current simulation data to help the simulation system evaluate the performance changes of the distributed system. The above simulation verification results can be the conclusions drawn on whether the distributed system meets the simulation verification requirements based on the comparative analysis of the simulation data and the historical data.

[0053] In an optional embodiment, considering that by comparing and analyzing the current simulation data and the historical simulation data, the performance changes of the distributed system at different time points or conditions can be evaluated, it is helpful to determine the progress and performance improvement of the distributed system. In addition, by comparing the current simulation results with the historical data, the effectiveness of the current simulation verification can be evaluated, that is, whether the simulation conditions can truly reflect the performance of the distributed system in the actual environment. Therefore, the simulation system can determine the simulation verification results of the distributed system based on the simulation data and the historical simulation data corresponding to the simulation verification requirements. Based on this, the simulation system can evaluate whether the distributed system has achieved the expected performance level and functional requirements, and whether the simulation verification is effective, thereby determining whether the simulation verification of the distributed system has been successfully performed.

[0054] Optionally, in the simulation verification method of a distributed system provided in an embodiment of the present application, a simulation verification result of the distributed system is determined based on the simulation data and historical simulation data corresponding to the simulation verification requirements, including: comparing the simulation data with the historical simulation data to determine first difference data between the simulation data and the historical simulation data; determining predicted simulation data corresponding to the simulation verification requirements based on the simulation impact area corresponding to the simulation verification requirements; comparing the simulation data with the predicted simulation data to determine second difference data between the simulation data and the predicted simulation data; and determining the simulation verification result based on the first difference data and the second difference data.

[0055] The above-mentioned first difference data may be data obtained by comparing the current simulation data with the historical simulation data to determine the performance or behavior difference between the two. The above-mentioned first difference data may reflect the differences in performance, data flow, etc. of the distributed system at different time points or under different conditions. The above-mentioned simulation impact area may refer to the distributed system area or node range corresponding to the simulation verification requirement, that is, the specific part affected by the simulation verification requirement. The above-mentioned predicted simulation data may be simulation data of the distributed system in the area predicted according to the simulation impact area corresponding to the simulation verification requirement. The above-mentioned second difference data may be data obtained by comparing the current simulation data with the predicted simulation data to determine the difference between the two. Compared with the first difference data, the second difference data focuses more on evaluating whether the actual performance of the distributed system in the current simulation scenario is consistent with expectations.

[0056] In an optional embodiment, considering that if only the difference data between the simulation data and the historical simulation data is compared, and the effectiveness of the simulation verification is judged based on the difference data, the judgment of the effectiveness of the simulation verification may be inaccurate due to the error in the above difference data, therefore, in addition to comparing the simulation data and the historical simulation data to determine the first difference data between the simulation data and the historical simulation data, the simulation system can also pre-build a prediction model, and based on the simulation impact area corresponding to the simulation verification requirement, use the above prediction model to determine the predicted simulation data corresponding to the simulation verification requirement, and then the simulation system can compare the simulation data and the predicted simulation data to determine the second difference data between the simulation data and the predicted simulation data. By introducing the second difference data and combining the second difference data with the first difference data, the simulation system can more accurately determine the simulation verification result, avoiding the error that may exist in determining the simulation verification result based on a single difference data, so that the result can more accurately reflect the effectiveness of the simulation.

[0057] Optionally, in the simulation and verification method of a distributed system provided in an embodiment of the present application, a simulation and verification result is determined based on first difference data and second difference data, including: in response to the difference between the first difference data and the second difference data being greater than a preset threshold, determining that the simulation and verification result is an unsuccessful simulation and verification of the distributed system; in response to the difference being less than a preset threshold, determining that the simulation and verification result is a successful simulation and verification of the distributed system.

[0058] The above-mentioned difference degree can be the difference degree between the current simulation data and the historical data, and between the current simulation data and the predicted data. The above-mentioned preset threshold value can be one or more pre-set limit values ​​of the difference degree, which is used to determine whether the current simulation data is within an acceptable range, and further determine whether the current simulation verification is valid.

[0059] In an optional embodiment, considering that the above-mentioned first difference data is obtained by comparing the above-mentioned simulation data with historical simulation data, and the above-mentioned second difference data is obtained by comparing the above-mentioned simulation data with predicted simulation data, therefore, by comparing the difference between the first difference data and the second difference data, the validity of the simulation data can be determined. The simulation system can pre-set a threshold value. If the above-mentioned difference is greater than the threshold value, it indicates that the simulation data may be distorted. Based on this, the simulation system can determine that the simulation verification result is an unsuccessful simulation verification of the distributed system. If the above-mentioned difference is less than the threshold value, it indicates that the validity of the simulation data is high. Based on this, the simulation system can determine that the simulation verification result is a successful simulation verification of the distributed system.

[0060] Optionally, in the simulation verification method of a distributed system provided in an embodiment of the present application, the method also includes: obtaining at least one initial historical simulation data corresponding to the simulation verification requirements; based on the similarity between the at least one initial historical simulation data and the simulation data, determining historical simulation data having a similarity greater than a preset similarity from the at least one initial historical simulation data.

[0061] The above-mentioned initial historical simulation data may refer to the simulation data record of the distributed system under similar or identical conditions before the current simulation verification requirement. The above-mentioned similarity may be the degree of similarity between the current simulation data and the historical simulation data. The above-mentioned preset similarity may be a threshold value when performing data screening, which is used to determine whether the degree of similarity between the historical simulation data and the current simulation data is high enough, so that the historical data can be used as a reference for the current verification.

[0062] In an optional embodiment, it is considered that the historical simulation data reflects the actual behavior and performance of the system under different conditions, including performance under normal operation, high load, fault recovery and other scenarios. By obtaining these data, the simulation system can understand the past performance of the distributed system and provide a comparison basis for the current simulation verification. Therefore, the simulation system can obtain at least one initial historical simulation data corresponding to the simulation verification requirements. Subsequently, the simulation system can determine historical simulation data with a similarity greater than a preset similarity from at least one initial historical simulation data based on the similarity between at least one initial historical simulation data and the simulation data. Selecting historical simulation data with a similarity greater than a preset similarity for comparison can ensure that the comparison is of the performance of the system under similar scenarios or conditions, thereby avoiding inaccurate or unfair comparisons due to scenario differences.

[0063] Optionally, in the simulation and verification method of a distributed system provided in an embodiment of the present application, obtaining at least one initial historical simulation data corresponding to the simulation and verification requirements includes: obtaining data input requirements and application information corresponding to the simulation and verification requirements; extracting a simulation data set corresponding to the application information from a database; and screening the simulation data in the simulation data set based on the data input requirements to obtain at least one initial historical simulation data.

[0064] The above data input requirements may be the specifications and standards of the input data required by the system when performing simulation verification. The above data input requirements define the specific conditions of the simulation test. For example, the above data input requirements may include at least one or more of the following: data format, data volume, data distribution mode, load type (such as the ratio of read operations and write operations) and environmental parameters during system operation (such as network delay, processor utilization), but not limited to this. The data input requirements ensure that the simulation test can reflect the various situations that the system may encounter in actual applications, so as to comprehensively evaluate the performance and stability of the system. The above application information may refer to the attributes and characteristics of the application related to the current simulation verification requirements. For example, the above application information may include at least one or more of the following: functional description, architecture design, operating environment, version information, dependency, etc. of the application, but not limited to this. This information helps to identify and extract historical data that matches the current simulation verification requirements from the database, ensuring the reference value of historical data. The above simulation data set may be a data set collected in historical simulation verification. The above simulation data set contains performance data of the distributed system under various scenarios and conditions. For example, the above simulation data set may include at least one or more of the following: response time, throughput, error rate, etc., but not limited to this. Simulation data sets are usually stored in a database for subsequent simulation verification and data analysis.

[0065] In an optional embodiment, considering that the simulation system must clarify the verification goals and requirements before the simulation verification begins, the simulation system can first obtain the data input requirements and application information corresponding to the simulation verification requirements. Further considering that the database stores the results of past simulation tests, including the performance data of distributed systems under different conditions. The simulation system can provide historical references for subsequent comparative analysis by extracting data sets that match the current verification requirements. Subsequently, the simulation system can compare and screen with the current data input requirements to ensure that the conditions of the historical simulation data are consistent with the current verification requirements, thereby improving the accuracy and reliability of the simulation verification.

[0066] Optionally, in the simulation and verification method of a distributed system provided in an embodiment of the present application, obtaining call link data of the distributed system includes: obtaining parameter information of the distributed system and operation data of an application instance in the distributed system; and constructing call link data based on the parameter information and operation data.

[0067] The above-mentioned parameter information may refer to the detailed information of the configuration, setting and operation environment of each component in the distributed system. For example, the above-mentioned parameter information may include at least one or more of the following: service port, network configuration, load balancing strategy, data storage location, message queue setting, cache strategy, resource restrictions (such as processor, memory, disk I / O restrictions), etc., but not limited to this. The above-mentioned application instance may refer to a specific instance of an application or service running in a distributed system. Since a distributed system usually contains multiple services or components, these services may run multiple instances on multiple servers to achieve high availability and load balancing. For example, the above-mentioned application instance may include at least one or more of the following: the instance identifier, host name, operation status (such as running, paused, fault, etc.) and dependencies between instances, etc., but not limited to this. The above-mentioned operation data may refer to the performance data and behavior logs of each application instance in the distributed system during the actual operation process. For example, the above-mentioned operation data may include at least one or more of the following: service response time, throughput, error rate, resource utilization (such as processor, memory usage), network communication status, number of calls, call success / failure records, etc., but not limited to this.

[0068] In an optional embodiment, considering that a distributed system is composed of multiple nodes that cooperate with each other, each node may run different application services, and these application services implement the functions of the distributed system through complex calling relationships. The simulation system can accurately understand and simulate the process and behavior of service calls in the distributed system by obtaining parameter information of the distributed system and the operating data of the application instance. Further considering that in a distributed system, performance bottlenecks or failures may occur at any node in the service call link. By constructing call link data, the simulation system can track the complete path of the request in the distributed system, including all service nodes and network paths that the request passes through, which helps to quickly locate performance problems or fault points in the system, thereby improving the accuracy of the simulation system's simulation verification of the distributed system.

[0069] Optionally, in the simulation and verification method of a distributed system provided in an embodiment of the present application, the simulation node position is determined according to the simulation and verification requirements and the call link data, including: determining at least one simulation logic corresponding to the simulation and verification requirements, wherein the at least one simulation logic is used to guide the simulation and verification process; determining a simulation and verification target according to the at least one simulation logic, wherein the simulation and verification target is used to represent a target to be simulated and verified in the distributed system; determining the simulation node position according to the simulation and verification target and the call link data.

[0070] The above-mentioned simulation logic may be an algorithm or a set of rules that guides the simulation verification process. The above-mentioned simulation logic defines how to reproduce the real behavior of the distributed system in a virtual environment. For example, the above-mentioned simulation logic may include at least one or more of the following: calling patterns between services, data flow transmission methods, system load simulation methods, fault injection strategies, etc., but not limited to these. The above-mentioned simulation verification target may be a verification target set for specific components or functions of the distributed system. The above-mentioned simulation verification target defines the purpose of the simulation test. For example, the above-mentioned simulation verification target may include at least one or more of the following: performance indicators (such as response time, throughput), functional correctness (such as data processing logic, transaction consistency), fault tolerance (such as fault recovery time, data loss rate), system stability (such as processor, memory usage), etc., but not limited to these.

[0071] In an optional embodiment, considering that the simulation system needs to ensure the pertinence and purpose of the simulation verification and avoid blind testing and invalid verification, the simulation system can determine at least one simulation logic corresponding to the simulation verification requirement to guide the simulation system to design the simulation verification process, thereby improving the effectiveness of the simulation verification. Subsequently, the simulation system can also determine the simulation verification target based on at least one simulation logic to ensure that the simulation verification process has a clear goal orientation, thereby improving the efficiency and pertinence of the simulation verification. In addition, in order to concretize the simulation verification target to the process in the actual operation of the distributed system, the simulation system can also identify which nodes in the distributed system are more important nodes in the simulation verification process based on the simulation verification target and the call link data, based on which the simulation system can further determine the simulation node location. By determining the simulation logic, the simulation verification target and the simulation node location, the simulation system can design and execute the simulation verification process in a targeted manner, thereby ensuring that the verification process can accurately evaluate the performance and stability of the distributed system, thereby improving the accuracy of the simulation system in performing simulation verification on the distributed system.

[0072] Optionally, in the simulation and verification method of a distributed system provided in an embodiment of the present application, the simulation node position is determined according to the simulation and verification target and the call link data, including: determining the simulation and verification position and the logic change position in the distributed system according to the simulation and verification target and the call link data, wherein the simulation and verification position is used to indicate the node position to be simulated and verified in the distributed system, and the logic change position is used to indicate the node position to be simulated and verified by introducing abnormal data; based on the simulation and verification position and the logic change position, the simulation node position is determined.

[0073] The above-mentioned simulation verification location may refer to the location of a node or service in a distributed system that needs to be simulated to verify a certain goal or function. The above-mentioned logic change location may refer to the location of a node or service that requires special attention and operation in order to introduce specific abnormal conditions or logic changes during the simulation verification process. The selection of the above-mentioned logic change location is usually based on the simulation verification goal, and aims to test the fault tolerance and stability of the system by simulating the behavior of the distributed system under abnormal conditions.

[0074] In an optional embodiment, considering that the distributed system is composed of multiple components that cooperate with each other, each component may be responsible for different functions. By analyzing the simulation verification target and the call link data, the simulation system can identify the locations of those components or service nodes that are closely related to the simulation verification target, that is, the above-mentioned simulation verification location, so that the simulation verification can focus on these nodes that are more closely related to the simulation verification target, avoiding unnecessary testing of irrelevant or minor parts of the distributed system, thereby improving the efficiency and pertinence of the simulation verification. Further considering that in actual operation, the distributed system may encounter various faults or abnormal situations, such as network delays, server downtime, data inconsistency, etc. The simulation system can identify the location of the node that may cause the behavior of the distributed system to deviate from the expected due to abnormal data or faults by analyzing the call link, that is, the above-mentioned logic change location. By introducing abnormal data or simulating faults in the above-mentioned logic change location, the simulation system can test the response and recovery capabilities of the distributed system under these abnormal conditions, thereby effectively evaluating the fault tolerance and stability of the system. Based on the above-mentioned simulation verification location and logic change location, the simulation system can further determine the simulation node location, that is, the node to be simulated in the call link. The above-mentioned simulation verification locations and logic change locations combine the nodes and potential failure points in the distributed system that are highly related to the simulation verification targets, thereby ensuring that the simulation verification can not only evaluate the performance and functions of the distributed system under normal circumstances, but also test the response and recovery capabilities of the distributed system under abnormal circumstances, thereby improving the effectiveness of the simulation system for simulation verification of the distributed system.

[0075] The simulation and verification method for a distributed system provided in an embodiment of the present application can identify the dependencies between paths and nodes in the distributed system that are related to the simulation and verification requirements by analyzing the call link data. In combination with the simulation and verification requirements and the call link data, the nodes that have a direct impact on the verification target can be identified to ensure the targeted nature of the simulation and verification. Finally, by comparing and analyzing the current simulation data with the historical data, the effect of the improvement of the distributed system can be evaluated or potential problems can be discovered, thereby achieving the purpose of improving the accuracy and reliability of the simulation and verification results, thereby achieving the technical effect of improving the effectiveness of the simulation and verification of the distributed system, and further solving the technical problem of low effectiveness of the simulation and verification of the distributed system in the related technology.

[0076] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0077] Example 2

[0078] The embodiment of the present application also provides a simulation verification device for a distributed system. It should be noted that the simulation verification device for a distributed system in the embodiment of the present application can be used to execute the simulation verification method for a distributed system provided in the embodiment of the present application. The simulation verification device for a distributed system provided in the embodiment of the present application is introduced below.

[0079] According to an embodiment of the present application, a device for implementing the simulation verification method of the above-mentioned distributed system is also provided. Figure 3 is a schematic diagram of a simulation verification device for a distributed system according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:

[0080] The requirement parsing module 302 is used to parse the simulation verification requirements in the simulation verification instructions in response to receiving the simulation verification instructions of the distributed system, and obtain the call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system.

[0081] The position determination module 304 is used to determine the simulation node position according to the simulation verification requirement and the call link data, wherein the simulation node position is used to indicate the position corresponding to the simulation node affected by the simulation verification requirement.

[0082] The first simulation module 306 is used to simulate the simulation node positions of the distributed system according to the simulation verification requirements to obtain simulation data.

[0083] The result determination module 308 is used to determine the simulation verification result of the distributed system based on the simulation data and the historical simulation data corresponding to the simulation verification requirement, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

[0084] The simulation and verification device for a distributed system provided in an embodiment of the present application can identify the dependencies between paths and nodes in the distributed system that are related to the simulation and verification requirements by analyzing the call link data. In combination with the simulation and verification requirements and the call link data, the nodes that have a direct impact on the verification target can be identified to ensure the targeted nature of the simulation and verification. Finally, by comparing and analyzing the current simulation data with the historical data, the effect of the improvement of the distributed system can be evaluated or potential problems can be discovered, thereby achieving the purpose of improving the accuracy and reliability of the simulation and verification results, thereby achieving the technical effect of improving the effectiveness of the simulation and verification of the distributed system, and further solving the technical problem of low effectiveness of the simulation and verification of the distributed system in the related technology.

[0085] Optionally, in the simulation verification device of the distributed system provided in the embodiment of the present application, the result determination module is also used to: compare the simulation data with the historical simulation data to determine the first difference data between the simulation data and the historical simulation data; determine the predicted simulation data corresponding to the simulation verification requirement based on the simulation impact area corresponding to the simulation verification requirement; compare the simulation data with the predicted simulation data to determine the second difference data between the simulation data and the predicted simulation data; and determine the simulation verification result based on the first difference data and the second difference data.

[0086] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the result determination module is also used to: in response to the difference between the first difference data and the second difference data being greater than a preset threshold, determine that the simulation verification result is an unsuccessful simulation and verification of the distributed system; in response to the difference being less than a preset threshold, determine that the simulation verification result is a successful simulation and verification of the distributed system.

[0087] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the device also includes: a data acquisition module, used to acquire at least one initial historical simulation data corresponding to the simulation verification requirements; a data determination module, used to determine historical simulation data having a similarity greater than a preset similarity from at least one initial historical simulation data based on the similarity between the at least one initial historical simulation data and the simulation data.

[0088] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the data acquisition module is also used to: obtain data input requirements and application information corresponding to the simulation and verification requirements; extract a simulation data set corresponding to the application information from a database; and filter the simulation data in the simulation data set based on the data input requirements to obtain at least one initial historical simulation data.

[0089] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the demand analysis module is also used to: obtain parameter information of the distributed system and operation data of the application instance in the distributed system; and construct call link data based on the parameter information and operation data.

[0090] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the location determination module is also used to: determine at least one simulation logic corresponding to the simulation and verification requirements, wherein the at least one simulation logic is used to guide the simulation and verification process; determine a simulation and verification target according to the at least one simulation logic, wherein the simulation and verification target is used to represent a target to be simulated and verified in the distributed system; determine the simulation node location according to the simulation and verification target and the call link data.

[0091] Optionally, in the simulation and verification device of the distributed system provided in the embodiment of the present application, the position determination module is also used to: determine the simulation and verification position and the logic change position in the distributed system according to the simulation and verification target and the call link data, wherein the simulation and verification position is used to indicate the node position to be simulated and verified in the distributed system, and the logic change position is used to indicate the node position to be simulated and verified by introducing abnormal data; based on the simulation and verification position and the logic change position, determine the simulation node position.

[0092] It should be noted that the above-mentioned determination module 100 and sending module 102 correspond to steps S2111 to S2113 in Example 1, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above-mentioned modules may also be part of the device and may be run in the computer terminal 10 provided in Example 1.

[0093] Example 3

[0094] An embodiment of the present application may provide an electronic device, Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 4 As shown, the electronic device may include: one or more ( Figure 4(only one is shown) processor 1002, memory 1004, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0095] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0096] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: in response to receiving a simulation verification instruction of a distributed system, parse the simulation verification requirements in the simulation verification instruction, and obtain the call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system; determine the simulation node position according to the simulation verification requirements and the call link data, wherein the simulation node position is used to indicate the position corresponding to the simulation node affected by the simulation verification requirements; simulate the simulation node position of the distributed system according to the simulation verification requirements to obtain simulation data; determine the simulation verification result of the distributed system based on the simulation data and the historical simulation data corresponding to the simulation verification requirements, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

[0097] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: compare the simulation data with the historical simulation data to determine the first difference data between the simulation data and the historical simulation data; determine the predicted simulation data corresponding to the simulation verification requirement based on the simulation impact area corresponding to the simulation verification requirement; compare the simulation data with the predicted simulation data to determine the second difference data between the simulation data and the predicted simulation data; determine the simulation verification result based on the first difference data and the second difference data.

[0098] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: in response to the difference between the first difference data and the second difference data being greater than a preset threshold, determining that the simulation verification result is an unsuccessful simulation verification of the distributed system; in response to the difference being less than a preset threshold, determining that the simulation verification result is a successful simulation verification of the distributed system.

[0099] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: obtaining at least one initial historical simulation data corresponding to the simulation verification requirements; based on the similarity between at least one initial historical simulation data and the simulation data, determining historical simulation data whose similarity is greater than a preset similarity from at least one initial historical simulation data.

[0100] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain the data input requirements and application information corresponding to the simulation verification requirements; extract the simulation data set corresponding to the application information from the database; and filter the simulation data in the simulation data set based on the data input requirements to obtain at least one initial historical simulation data.

[0101] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain parameter information of the distributed system and operation data of the application instance in the distributed system; and construct call link data based on the parameter information and operation data.

[0102] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: determine at least one simulation logic corresponding to the simulation verification requirements, wherein the at least one simulation logic is used to guide the simulation verification process; determine the simulation verification target according to the at least one simulation logic, wherein the simulation verification target is used to represent the target to be simulated and verified in the distributed system; determine the simulation node location according to the simulation verification target and the call link data.

[0103] The processor can also call the information and application programs stored in the memory through the transmission device to perform the following steps: determine the simulation verification position and the logic change position in the distributed system according to the simulation verification target and the call link data, wherein the simulation verification position is used to indicate the node position to be simulated and verified in the distributed system, and the logic change position is used to indicate the node position to be simulated and verified by introducing abnormal data; based on the simulation verification position and the logic change position, determine the simulation node position.

[0104] By adopting the embodiment of the present application, a simulation verification scheme for a distributed system is provided. By analyzing the call link data, the dependencies between the paths and nodes in the distributed system related to the simulation verification requirements can be identified. By combining the simulation verification requirements and the call link data, the nodes that have a direct impact on the verification target can be identified to ensure the pertinence of the simulation verification. Finally, by comparing and analyzing the current simulation data with the historical data, the effect of the improvement of the distributed system can be evaluated or potential problems can be discovered, thereby achieving the purpose of improving the accuracy and reliability of the simulation verification results, thereby achieving the technical effect of improving the effectiveness of the simulation verification of the distributed system, and then solving the technical problem of low effectiveness of the simulation verification of the distributed system in the related technology.

[0105] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.

[0106] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0107] Example 4

[0108] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the simulation verification method of the distributed system provided in the first embodiment.

[0109] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0110] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the simulation verification method of a distributed system.

[0111] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0112] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0117] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A simulation verification method for a distributed system, characterized in that: include: In response to receiving a simulation verification instruction of a distributed system, parsing the simulation verification requirement in the simulation verification instruction, and acquiring call link data of the distributed system, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system; Determine a simulation node position according to the simulation verification requirement and the call link data, wherein the simulation node position is used to indicate a position corresponding to a simulation node affected by the simulation verification requirement; Simulate the simulation node position of the distributed system according to the simulation verification requirement to obtain simulation data; Based on the simulation data and the historical simulation data corresponding to the simulation verification requirement, a simulation verification result of the distributed system is determined, wherein the simulation verification result is used to indicate whether the simulation verification of the distributed system is successful.

2. The method according to claim 1, characterized in that Determining a simulation verification result of the distributed system based on the simulation data and historical simulation data corresponding to the simulation verification requirement includes: Comparing the simulation data with the historical simulation data, and determining first difference data between the simulation data and the historical simulation data; Determining predicted simulation data corresponding to the simulation verification requirement based on the simulation impact area corresponding to the simulation verification requirement; Comparing the simulation data with the predicted simulation data, and determining second difference data between the simulation data and the predicted simulation data; The simulation verification result is determined based on the first difference data and the second difference data.

3. The method according to claim 2, characterized in that Determining the simulation verification result based on the first difference data and the second difference data includes: In response to a difference between the first difference data and the second difference data being greater than a preset threshold, determining that the simulation verification result is an unsuccessful simulation verification of the distributed system; In response to the difference being less than the preset threshold, determining the simulation verification result as successful simulation verification of the distributed system.

4. The method according to claim 1, characterized in that The method further comprises: Acquire at least one initial historical simulation data corresponding to the simulation verification requirement; Based on the similarity between the at least one initial historical simulation data and the simulation data, the historical simulation data having the similarity greater than a preset similarity is determined from the at least one initial historical simulation data.

5. The method according to claim 4, characterized in that Acquiring at least one initial historical simulation data corresponding to the simulation verification requirement includes: Obtaining data input requirements and application information corresponding to the simulation verification requirements; Extracting a simulation data set corresponding to the application information from a database; The simulation data in the simulation data set is screened based on the data input requirement to obtain the at least one initial historical simulation data.

6. The method according to claim 1, characterized in that Obtaining call link data of the distributed system, including: Acquire parameter information of the distributed system and operation data of application instances in the distributed system; The call link data is constructed based on the parameter information and the operation data.

7. The method according to claim 1, characterized in that Determining the simulation node location according to the simulation verification requirement and the call link data includes: Determine at least one simulation logic corresponding to the simulation verification requirement, wherein the at least one simulation logic is used to guide the simulation verification process; Determine a simulation verification target according to the at least one simulation logic, wherein the simulation verification target is used to represent a target to be simulated and verified in the distributed system; The simulation node position is determined according to the simulation verification target and the call link data.

8. The method according to claim 7, characterized in that Determining the simulation node location according to the simulation verification target and the call link data includes: Determine a simulation verification position and a logic change position in the distributed system according to the simulation verification target and the call link data, wherein the simulation verification position is used to indicate a node position to be simulated and verified in the distributed system, and the logic change position is used to indicate a node position to be simulated and verified by introducing abnormal data; The simulation node position is determined based on the simulation verification position and the logic change position.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 8.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 8 when running.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Data verification method and device, electronic equipment, medium and program product

    CN120353714A