Simulation verification method and device of distributed system and electronic equipment
By analyzing simulation verification instructions, obtaining parameter information and operation data, building call link data, and determining simulation verification targets, the problem of low simulation verification efficiency of distributed systems is solved, and an efficient simulation verification process is realized.
Patent Information
- Application Number
- CN202510005096.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-05-06
AI Technical Summary
The simulation verification efficiency of distributed systems is low, resulting in high cost and low efficiency.
By analyzing the simulation verification instructions, obtaining the parameter information of the distributed system and the operation data of the application instance, building the call link data, determining the simulation verification target, and conducting simulation verification of the application instance based on the goals and requirements.
It effectively improves the simulation verification efficiency of distributed systems, improves the user experience, and solves the problem of low simulation verification efficiency.
Smart Images

Figure CN119938488A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of distributed technology, and in particular to a simulation verification method, device and electronic equipment for a distributed system. Background Art
[0002] With the rapid development of computer technology, the processing speed and computing speed of computers have been significantly improved. Thanks to the rapid development of computer technology, computers can perform more and more complex tasks, and distributed systems are one of the important computer systems now. Distributed systems are composed of multiple independent computer nodes, and multiple independent computer nodes can be distributed in different geographical locations and connected together through a network to complete more complex tasks through communication and collaboration. However, since the computer nodes of the distributed system are distributed in different geographical locations, the steps of simulation and verification of the distributed system in the relevant technology are relatively cumbersome, resulting in a high cost of simulation and verification of the distributed system, so that the efficiency of simulation and verification of the distributed system is low.
[0003] Currently, no effective solution has been proposed for the technical problem of low efficiency of simulation verification of distributed systems in related technologies. Summary of the invention
[0004] The main purpose of the present application is to provide a simulation verification method, device and electronic equipment for a distributed system to solve the technical problem of low efficiency of simulation verification of distributed systems in related technologies.
[0005] 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 comprises: in response to receiving a simulation verification instruction, parsing the simulation verification requirements in the simulation verification instruction, and obtaining parameter information of the distributed system and operation data of the application instance, wherein the application instance is deployed on a node of the distributed system; based on the parameter information and operation data, constructing 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; determining the simulation verification target according to the simulation verification requirements and the call link data; simulating and verifying the application instance based on the simulation verification target and the simulation verification requirements to obtain a simulation verification result.
[0006] Optionally, the application instance is simulated and verified based on the simulation verification target and the simulation verification requirement to obtain a simulation verification result, including: using the simulation verification target to decompose the simulation verification requirement to obtain a plurality of simulation item data, wherein different simulation item data correspond to different functional points of the application instance; and the application instance is simulated and verified based on the plurality of simulation item data to obtain a simulation verification result.
[0007] Optionally, the simulation verification requirement is decomposed using the simulation verification target to obtain multiple simulation item data, including: decomposing the simulation verification requirement based on the simulation verification target to obtain multiple function points involved in the first node corresponding to the simulation verification target and the verification logic of the multiple function points; constructing the simulation input data and simulation output data of the multiple function points based on the verification logic; and constructing multiple simulation item data corresponding to the first node based on the simulation input data and the simulation output data.
[0008] Optionally, a simulation verification target is determined according to the simulation verification requirements and the call link data, including: determining the simulation purpose involved in the simulation verification requirements, and the simulation input and output data corresponding to the simulation purpose, wherein the simulation purpose is used to determine the initial verification target corresponding to the simulation verification requirements, and the simulation input and output data are used to represent the expected input data and expected output data corresponding to the initial verification target; based on the simulation purpose and the simulation input and output data, determining the simulation impact range; and adjusting the initial verification target based on the simulation impact range and the call link data to obtain the simulation verification target.
[0009] Optionally, the simulation impact range is determined based on the simulation purpose and the simulation input and output data, including: determining multiple second nodes through which the simulation input and output data are to flow in the distributed system, and functional information associated with the multiple second nodes based on the simulation purpose; and determining the simulation impact range based on the connection relationship and functional information of the multiple second nodes.
[0010] Optionally, determining a simulation verification target based on the simulation impact range and the call link data includes: determining a plurality of third nodes covered by the simulation impact range in the call link data; and determining the simulation verification target based on the plurality of third nodes.
[0011] Optionally, the parameter information includes at least one of the following: system architecture information, node configuration information, network topology information, communication protocol information, resource allocation strategy information, and the operation data includes at least one of the following: input data, output data, and transmission data between nodes.
[0012] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, 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.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. 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.
[0014] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in each embodiment of the present invention is implemented.
[0015] According to another aspect of the embodiments of the present invention, a computer program is further provided. When the computer program is executed by a processor, the methods in the embodiments of the present invention are implemented.
[0016] In an embodiment of the present application, in response to receiving a simulation verification instruction, the simulation verification requirement in the simulation verification instruction is parsed, and the parameter information of the distributed system and the running data of the application instance are obtained; based on the parameter information and the running data, the call link data of the distributed system is constructed; according to the simulation verification requirement and the call link data, the simulation verification target is determined; based on the simulation verification target and the simulation verification requirement, the application instance is simulated and verified to obtain a simulation verification result. In the present application, by parsing the simulation requirement in the simulation verification instruction, the parameter information of the distributed system and the running data of the instance are accurately obtained, and the link data of the distributed system is quickly constructed according to the parameter information and the running data, so as to accurately determine the simulation verification target, and the application instance is quickly and accurately simulated and verified according to the simulation verification target and the simulation verification requirement, the purpose of effectively improving the efficiency of the simulation verification of the distributed system is achieved, thereby achieving the technical effect of effectively improving the user experience, and then solving the technical problem of low efficiency of the simulation verification of the distributed system in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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:
[0018] Figure 1 A hardware structure block diagram of a computer terminal for implementing a simulation verification method for a distributed system is shown;
[0019] Figure 2 It is a flow chart of a simulation verification method of a distributed system provided according to an embodiment of the present application;
[0020] Figure 3 It is a structural diagram of a simulation verification device for a distributed system provided in an embodiment of the present application;
[0021] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] 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.
[0023] 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.
[0024] 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.
[0025] Example 1
[0026] According to an embodiment of the present application, an embodiment of a simulation verification method for 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.
[0027] 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 1The 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 shown.
[0028] 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).
[0029] 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.
[0030] 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.
[0031] 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).
[0032] Under the above operating environment, this application provides Figure 2 The simulation verification method of the distributed system shown. Figure 2 is a flow chart of a simulation verification method for a distributed system provided in accordance with an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0033] Step S202, in response to receiving the simulation verification instruction, parsing the simulation verification requirement in the simulation verification instruction, and acquiring parameter information of the distributed system and running data of the application instance, wherein the application instance is deployed on a node of the distributed system.
[0034] The above-mentioned simulation verification instruction refers to an instruction sent by a user to the processor of a distributed system for controlling the above-mentioned distributed system to perform simulation verification. When the processor of the distributed system receives the above-mentioned simulation verification instruction, it starts the simulation verification of the above-mentioned distributed system. The above-mentioned simulation verification instruction includes but is not limited to: touch instructions, voice instructions or action instructions, etc.
[0035] The above-mentioned simulation verification requirements (SVR) refer to the user's requirements for simulation verification of the above-mentioned distributed system, wherein the above-mentioned simulation verification requirements can be set according to the state of the distributed system, the above-mentioned simulation verification requirements can also be set manually according to experience and requirements, and the above-mentioned simulation verification requirements can also be set according to actual application scenarios. The above-mentioned simulation verification requirements include but are not limited to: model accuracy, data instructions, algorithm validity, boundary conditions and initial conditions, etc.
[0036] The above-mentioned distributed system (DS) is a computer system, which is composed of multiple independent computers, which are called nodes. These nodes are connected together through a network and work together to complete a common task or provide a service. In this application, it is necessary to simulate and verify the above-mentioned distributed system to detect the above-mentioned distributed system.
[0037] The above-mentioned parameter information refers to the parameter information in the above-mentioned distributed system, and the state of the above-mentioned distributed system can be characterized by the above-mentioned parameter information, wherein the above-mentioned parameter information includes but is not limited to: system architecture information, node configuration information, network topology information, communication protocol information, resource allocation strategy information, node parameters of the distributed system, network parameters of the distributed system, fault tolerance parameters of the distributed system, performance parameters of the distributed system and load parameters of the distributed system, etc.
[0038] The above-mentioned application examples refer to specific instances of the above-mentioned distributed systems, and the above-mentioned application examples are actually running distributed systems, wherein the above-mentioned application examples include but are not limited to: cloud computing platforms, online social media, search engines, big data analysis, financial services, the Internet of Things or online games, etc.
[0039] The above-mentioned operation data refers to the data generated during the operation of the above-mentioned distributed system. The above-mentioned operation data can indicate whether a fault occurs during the operation of the above-mentioned distributed system. The above-mentioned operation data includes but is not limited to: input data, output data, transmission data between nodes, system load data, service status data, task queue data, task execution time data, data consistency data, resource utilization data, network delay data, error volume data, system throughput data and system throughput data, etc.
[0040] The above-mentioned nodes refer to multiple independent computer nodes in a distributed system. Through the above-mentioned distribution, the nodes in the system work together to achieve a common goal. The above-mentioned nodes include but are not limited to: physical servers, virtual machines, containers or devices that perform computing tasks. The above-mentioned nodes can be: computing nodes, storage nodes, communication nodes and management nodes, etc.
[0041] In an optional embodiment, a user can send a simulation verification instruction to a processor of a distributed system. After receiving the simulation verification instruction, the processor of the distributed system can parse the simulation verification requirements in the simulation verification instruction, obtain the simulation verification requirements, and retrieve parameter information of the distributed system and running data of the application instance from the server. The application instance is deployed on the node of the distributed system.
[0042] In another optional embodiment, the user sends a simulation verification instruction to the processor of the distributed system. After the processor of the distributed system receives the simulation verification instruction, it parses the simulation verification requirements in the simulation verification instruction, obtains the simulation verification requirements, and can also retrieve the parameter information of the distributed system and the operation data of the application instance from the cloud.
[0043] In another optional embodiment, a simulation requirement model can be established in advance, and the user sends a simulation verification instruction to the processor of the distributed system. After the processor of the distributed system receives the simulation verification instruction, the simulation verification instruction is used as the input of the simulation requirement model, input into the simulation requirement model, outputs the simulation verification requirement, and obtains the parameter information of the distributed system and the operation data of the application instance.
[0044] When the simulation verification instruction is a touch instruction, the user can send the above-mentioned simulation verification instruction to the processor of the above-mentioned distributed system by clicking the preset virtual button of the interactive panel. After the processor of the distributed system receives the simulation verification instruction, it parses the simulation verification requirements in the simulation verification instruction, obtains the simulation verification requirements, and obtains the parameter information of the distributed system and the operation data of the application instance.
[0045] In the case where the simulation verification instruction is a voice instruction, a specific sentence can be determined in advance, and the voice acquisition module of the distributed system acquires the user's voice in real time, and recognizes the user's voice in real time through the processor. When the processor recognizes that the user's voice contains the above-mentioned specific sentence, it is determined that the user has issued a voice instruction, that is, a simulation verification instruction, and the simulation verification requirements in the simulation verification instruction are parsed to obtain the simulation verification requirements, and the parameter information of the distributed system and the operation data of the application instance are obtained.
[0046] In the case where the simulation verification instruction is an action instruction, a specific action can be determined in advance, and the user's image information can be obtained in real time through an external camera device, and the user's image information is recognized by the processor. When the processor recognizes that the user makes a specific action, it is determined that the user has issued an action instruction, that is, a simulation verification instruction, and the simulation verification requirements in the simulation verification instruction are parsed to obtain the simulation verification requirements, and the parameter information of the distributed system and the operation data of the application instance are obtained.
[0047] When the above-mentioned nodes are computing nodes, users can send simulation verification instructions to the processor of the distributed system. After receiving the simulation verification instructions, the processor of the distributed system can parse the simulation verification requirements in the simulation verification instructions, obtain the simulation verification requirements, and retrieve the parameter information of the distributed system and the running data of the application instance from the server. The application instance is deployed on the computing node of the distributed system.
[0048] When the above-mentioned node is a physical server, the user can send a simulation verification instruction to the processor of the distributed system. After receiving the simulation verification instruction, the processor of the distributed system can parse the simulation verification requirements in the simulation verification instruction, obtain the simulation verification requirements, and retrieve the parameter information of the distributed system and the operation data of the application instance from the server. The application instance is deployed on the physical server of the distributed system.
[0049] In the present application, the simulation verification requirements in the simulation verification instructions are parsed to quickly determine the user's simulation verification requirements, thereby effectively improving the accuracy of the distributed system simulation verification, thereby effectively improving the user experience.
[0050] Step S204, constructing call link data of the distributed system based on the parameter information and the operation data, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system.
[0051] The above-mentioned call link data refers to a series of call information recorded when the various components within the distributed system communicate with each other. Through the above-mentioned call link data, users can understand the call process within the above-mentioned distributed system in order to perform performance analysis, troubleshooting and optimization.
[0052] In an optional embodiment, after obtaining parameter information and operating data of the application instance, call link data of the distributed system is constructed based on the parameter information and operating data, and the user can manually determine the data flow relationship between different computer nodes in the distributed system based on the above call link data.
[0053] In another optional embodiment, a data circulation model can be established in advance. After obtaining parameter information and operating data of the application instance, the above parameter information and operating data can be used to construct the call link data of the distributed system. After obtaining the call link data, the above call link data can be used as the input of the above data circulation model, input into the above data circulation model, and output the data circulation relationship between different computer nodes in the distributed system.
[0054] In another optional embodiment, a construction model may be pre-established, and after obtaining parameter information and operating data of the application instance, the parameter information and operating data may be used as inputs to the construction model, and input into the construction model to output call link data of the distributed system. The user may determine the data flow relationship between different computer nodes in the distributed system based on the call link data.
[0055] In the present application, more accurate call link data of the distributed system is constructed based on parameter information and operation data, so that users can determine the data flow relationship between different nodes in the above-mentioned distributed system based on the call link data of the above-mentioned distributed system, effectively improving the controllability of the simulation verification of the distributed system and effectively improving the user experience.
[0056] Step S206, determining the simulation verification target according to the simulation verification requirements and the call link data.
[0057] The above-mentioned simulation verification target refers to the node that needs to be simulated and verified in the distributed system. Through the above-mentioned call link and simulation verification requirements, it can be determined that the distribution is the node that needs to be focused on in the system, as well as the node with abnormal changes, and then the node that needs to be simulated and verified, that is, the above-mentioned simulation verification target.
[0058] In an optional embodiment, after obtaining the call link data, the user can determine the nodes in the distributed system that need to be simulated and verified according to the simulation verification requirements and the call link data, and determine the simulation verification target.
[0059] In another optional embodiment, a simulation verification target determination model can be established in advance. After obtaining the call link data, the above-mentioned simulation verification requirements and the above-mentioned call link data can be used as inputs of the above-mentioned simulation verification target determination model, input into the above-mentioned simulation verification target determination model, and output the simulation verification target.
[0060] In another optional embodiment, after obtaining the simulation verification requirements and the call link, the user can determine the simulation purpose in the simulation verification requirements, and determine the simulation input data and simulation output data corresponding to the simulation purpose. The user can determine the initial verification target corresponding to the simulation verification requirements through the simulation purpose, and the user can also determine the expected simulation input data and expected simulation output data corresponding to the initial verification target through the simulation input and output data. After determining the simulation purpose, simulation input data, and simulation output data, the simulation impact range is determined according to the simulation purpose, simulation input data, and simulation output data; after obtaining the simulation impact range and the call link data, the initial verification target is adjusted according to the simulation impact range and the call link data to obtain the simulation verification target.
[0061] In another optional embodiment, after obtaining the simulation verification requirements and the call link, the user can determine the simulation purpose in the simulation verification requirements, and determine the simulation input data and simulation output data corresponding to the simulation purpose. The user can determine the initial verification target corresponding to the simulation verification requirements through the simulation purpose, and the user can also determine the expected simulation input data and expected simulation output data corresponding to the initial verification target through the simulation input and output data. After determining the simulation purpose, simulation input data, and simulation output data, it is also possible to determine the multiple nodes covered by the simulation impact range in the call link data, and determine the simulation verification target based on the multiple nodes covered by the simulation impact range.
[0062] In another optional embodiment, after obtaining the simulation verification requirements and the call link, the user can determine the simulation purpose in the simulation verification requirements, and determine the simulation input data and simulation output data corresponding to the simulation purpose. The user can determine the initial verification target corresponding to the simulation verification requirements through the simulation purpose, and the user can also determine the expected simulation input data and expected simulation output data corresponding to the initial verification target through the simulation input and output data. After determining the simulation purpose, simulation input data, and simulation output data, it is also possible to determine multiple nodes covered by the simulation influence range in the call link data, and determine other nodes covered by the simulation influence range in the call link data. After obtaining other nodes, the simulation verification target is determined based on the other nodes.
[0063] In the present application, the simulation verification targets that need to be simulated and verified in the distributed system are accurately determined according to the simulation verification requirements and the calling link data, which effectively improves the accuracy of the simulation verification of the distributed system, improves the simulation verification rate of the distributed system, and thus improves the efficiency of the simulation verification of the distributed system and improves the user experience.
[0064] Step S208, performing simulation verification on the application instance based on the simulation verification target and the simulation verification requirement to obtain a simulation verification result.
[0065] The above-mentioned simulation verification result refers to the result obtained after simulating and verifying the above-mentioned simulation verification target, and the above-mentioned simulation verification target corresponds to the above-mentioned simulation verification result one by one, wherein the above-mentioned simulation verification result can be: the simulation verification of the application instance passes, or the simulation verification of the application instance fails.
[0066] In an optional embodiment, after determining the above-mentioned simulation verification target, the above-mentioned application instance is simulated and verified according to the above-mentioned simulation verification target and simulation verification requirements to obtain a simulation verification result indicating that the simulation verification of the application instance passes, or that the simulation verification of the application instance fails.
[0067] In another optional embodiment, after obtaining the simulation verification target and the simulation verification requirement, the simulation verification requirement is disassembled using the simulation verification target. After disassembling the simulation verification requirement, multiple simulation item data can be obtained. The user can determine different functional points of the application instance through different simulation item data. After obtaining the different simulation item data, the application instance is simulated and verified to obtain the simulation verification result.
[0068] In another optional embodiment, after obtaining the simulation verification target and the simulation verification requirement, the simulation verification requirement can also be disassembled according to the simulation verification target to obtain multiple functional points involved in the computer node corresponding to the simulation verification target and the verification logic of the multiple functional points; the simulation input data and simulation output data of the multiple functional points are constructed according to the verification logic, and after obtaining the simulation input data and simulation output data, multiple simulation item data corresponding to the above-mentioned computer nodes are constructed, and the user can determine different functional points of the application instance through different simulation item data; after obtaining the different simulation item data, the application instance is simulated and verified to obtain the simulation verification result.
[0069] In this application, the application instance is simulated and verified according to the simulation verification objectives and simulation verification requirements to obtain more accurate simulation verification results, and effectively improve the simulation verification rate of the distributed system and improve the user experience.
[0070] Through the above steps, in response to receiving the simulation verification instruction, the simulation verification requirements in the simulation verification instruction are parsed, and the parameter information of the distributed system and the running data of the application instance are obtained; based on the parameter information and the running data, the call link data of the distributed system is constructed; according to the simulation verification requirements and the call link data, the simulation verification target is determined; based on the simulation verification target and the simulation verification requirements, the application instance is simulated and verified to obtain the simulation verification result. In the present application, the simulation requirements in the simulation verification instruction are parsed to accurately obtain the parameter information of the distributed system and the running data of the instance, and the link data of the distributed system is quickly constructed according to the parameter information and the running data, so as to accurately determine the simulation verification target, and the application instance is quickly and accurately simulated and verified according to the simulation verification target and the simulation verification requirements, so as to achieve the purpose of effectively improving the efficiency of the simulation verification of the distributed system, thereby achieving the technical effect of effectively improving the user experience, and then solving the technical problem of low efficiency of the simulation verification of the distributed system in the related technology.
[0071] Optionally, the application instance is simulated and verified based on the simulation verification target and the simulation verification requirement to obtain a simulation verification result, including: using the simulation verification target to decompose the simulation verification requirement to obtain a plurality of simulation item data, wherein different simulation item data correspond to different functional points of the application instance; and the application instance is simulated and verified based on the plurality of simulation item data to obtain a simulation verification result.
[0072] The above-mentioned simulation item data refers to the simulation item data obtained by disassembling the above-mentioned simulation verification requirements. Different simulation item data correspond to different functions of application instances in the distributed system. In the present application, the above-mentioned simulation verification requirements are accurately divided by obtaining simulation item data.
[0073] In an optional embodiment, after obtaining the above-mentioned simulation verification requirements and the above-mentioned simulation verification targets, the simulation verification requirements are disassembled according to the simulation verification targets to obtain multiple simulation item data to accurately divide the above-mentioned simulation verification requirements, wherein different simulation item data correspond to different functional points of the application instance. After obtaining multiple simulation item data, the application instance is simulated and verified according to the multiple simulation item data to obtain a simulation verification result.
[0074] In this application, by decomposing the simulation verification requirements into multiple simulation item data, and performing simulation verification on the application instance based on the multiple simulation item data to obtain more accurate simulation verification results, the accuracy of simulation verification of the distributed system is effectively improved, the comprehensiveness of simulation verification of the distributed system is improved, and the user experience is improved.
[0075] Optionally, the simulation verification requirement is decomposed using the simulation verification target to obtain multiple simulation item data, including: decomposing the simulation verification requirement based on the simulation verification target to obtain multiple function points involved in the first node corresponding to the simulation verification target and the verification logic of the multiple function points; constructing the simulation input data and simulation output data of the multiple function points based on the verification logic; and constructing multiple simulation item data corresponding to the first node based on the simulation input data and the simulation output data.
[0076] In an optional embodiment, after the simulation verification requirement is disassembled according to the simulation verification target, multiple function points involved in the first node corresponding to the simulation verification target and the verification logic corresponding to the multiple function points are obtained. After obtaining the verification logic corresponding to the multiple function points, the user can manually construct the simulation input data and simulation output data of the multiple function points according to the verification logic. The user can manually construct multiple simulation item data corresponding to the first node according to the simulation input data and the simulation output data.
[0077] In another optional embodiment, a simulation data construction model can be pre-established, and after the simulation verification requirements are disassembled according to the simulation verification target, multiple function points involved in the first node corresponding to the simulation verification target and the verification logic corresponding to the multiple function points are obtained. After obtaining the verification logic corresponding to the multiple function points, the verification logic corresponding to the multiple function points can be used as the input of the simulation data construction module, input into the simulation data construction module, output the simulation input data and simulation output data of the multiple function points, and manually construct multiple simulation item data corresponding to the first node according to the simulation input data and simulation output data.
[0078] In another optional embodiment, a simulation item data construction model can be pre-established, and after the simulation verification requirements are disassembled according to the simulation verification target, multiple function points involved in the first node corresponding to the simulation verification target and the verification logic corresponding to the multiple function points are obtained. After obtaining the verification logic corresponding to the multiple function points, the simulation input data and simulation output data of the multiple function points are constructed according to the verification logic, and after obtaining the simulation input data and simulation output data, the above-mentioned simulation input data and the above-mentioned simulation output data are used as inputs of the above-mentioned simulation item data construction model, and are input into the above-mentioned simulation item data construction model, and multiple simulation item data are output.
[0079] In this application, verification logic is used to construct more accurate simulation input data and simulation output data, and then more accurate multiple simulation item data are obtained, thereby effectively improving the targetedness of simulation verification of distributed systems, effectively improving the accuracy of simulation verification of distributed systems, and improving the user experience.
[0080] Optionally, a simulation verification target is determined according to the simulation verification requirements and the call link data, including: determining the simulation purpose involved in the simulation verification requirements, and the simulation input and output data corresponding to the simulation purpose, wherein the simulation purpose is used to determine the initial verification target corresponding to the simulation verification requirements, and the simulation input and output data are used to represent the expected input data and expected output data corresponding to the initial verification target; based on the simulation purpose and the simulation input and output data, determining the simulation impact range; and adjusting the initial verification target based on the simulation impact range and the call link data to obtain the simulation verification target.
[0081] The above-mentioned initial verification target refers to the target that needs to be simulated and verified according to the simulation purpose. After determining the above-mentioned initial verification target, the initial verification target needs to be adjusted to determine the final simulation verification target, so as to improve the resource utilization of the distributed system simulation verification and improve the efficiency of the distributed system simulation verification.
[0082] In an optional embodiment, the user can manually determine the simulation purpose involved in the simulation verification requirement, and determine the simulation input and output data corresponding to the simulation purpose. The user can determine the initial verification target corresponding to the simulation verification requirement through the above simulation purpose. The user can also determine the expected input data and expected output data corresponding to the initial verification target through the simulation input and output data. After obtaining the simulation purpose and simulation input and output data, determine the scope of simulation impact. After obtaining the above simulation impact scope, the user can adjust the initial verification target according to the above simulation impact scope and call link data to obtain the simulation verification target.
[0083] In this application, the simulation purpose and simulation input and output data are determined to accurately determine the simulation impact range, and then the initial target is accurately adjusted through the simulation impact range and call link data to obtain a more accurate simulation verification target, thereby effectively improving the accuracy of simulation verification of the distributed system and effectively improving the user experience.
[0084] Optionally, the simulation impact range is determined based on the simulation purpose and the simulation input and output data, including: determining multiple second nodes through which the simulation input and output data are to flow in the distributed system, and functional information associated with the multiple second nodes based on the simulation purpose; and determining the simulation impact range based on the connection relationship and functional information of the multiple second nodes.
[0085] In an optional embodiment, the user can determine multiple second nodes through which the simulation input and output data is to flow in a distributed system according to the simulation purpose, and then determine the functional information associated with the second nodes. After obtaining the connection relationship and functional information of the second nodes, the user can manually determine the simulation impact range based on the connection relationship and functional information of the second nodes.
[0086] In another optional embodiment, a scope determination model can be established in advance, and the user can determine the multiple second nodes through which the simulation input and output data are to flow in the distributed system according to the simulation purpose, and then determine the functional information associated with the second nodes. After obtaining the connection relationship and functional information of the second nodes, the connection relationship and functional information of the second nodes can be used as input to the above-mentioned scope determination model, and input into the above-mentioned scope determination model to output the simulation impact range.
[0087] In the present application, the connection relationship and functional information of the second node are used to accurately determine the above-mentioned simulation impact range, and then the initial verification target is accurately adjusted to obtain a more accurate simulation verification target, which effectively improves the accuracy of simulation verification of the distributed system and improves the user experience.
[0088] Optionally, determining a simulation verification target based on the simulation impact scope and the call link data includes: determining a plurality of third nodes covered by the simulation impact scope in the call link data; and determining the simulation verification target based on the plurality of third nodes.
[0089] In an optional embodiment, after determining the above-mentioned simulation influence range, multiple third nodes covered by the above-mentioned simulation influence range are determined according to the above-mentioned simulation influence range. After obtaining the third node, the user can manually determine the simulation verification target in combination with the third node.
[0090] In the present application, multiple third nodes covered by the simulation impact range are determined, and simulation verification targets are determined based on the third nodes, which effectively improves the comprehensiveness of determining simulation verification targets, thereby effectively improving the comprehensiveness of simulation verification of distributed systems, and thereby improving the user experience.
[0091] Optionally, the parameter information includes at least one of the following: system architecture information, node configuration information, network topology information, communication protocol information, resource allocation strategy information, and the operation data includes at least one of the following: input data, output data, and transmission data between nodes.
[0092] In an optional embodiment, the parameter information includes at least one of system architecture information, node configuration information, network topology information, communication protocol information and resource allocation strategy information, and the operating data includes at least one of input data, output data and transmission data between nodes.
[0093] In the present application, by determining that the parameter information includes at least one of system architecture information, node configuration information, network topology information, communication protocol information and resource allocation strategy information, and the operating data includes at least one of input data, output data, and transmission data between nodes, the reliability of the simulation verification of the distributed system is effectively improved, thereby improving the user experience.
[0094] 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.
[0095] Example 2
[0096] 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.
[0097] 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 the structure of a simulation verification device for a distributed system provided in an embodiment of the present application, such as Figure 3 As shown, the device includes: a parsing module 30, which is used to parse the simulation verification requirements in the simulation verification instructions in response to receiving the simulation verification instructions, and obtain the parameter information of the distributed system and the running data of the application instance, wherein the application instance is deployed on the node of the distributed system; a construction module 32, which is used to construct the call link data of the distributed system based on the parameter information and the running data, wherein the call link data is used to describe the data flow relationship between different nodes in the distributed system; a determination module 34, which is used to determine the simulation verification target according to the simulation verification requirements and the call link data; a simulation verification module 36, which is used to simulate and verify the application instance based on the simulation verification target and the simulation verification requirements to obtain a simulation verification result.
[0098] Optionally, the simulation verification module includes: a disassembly unit, used to disassemble the simulation verification requirements using the simulation verification target to obtain multiple simulation item data, wherein different simulation item data correspond to different functional points of the application instance; a simulation verification unit, used to simulate and verify the application instance based on the multiple simulation item data to obtain a simulation verification result.
[0099] Optionally, the disassembly unit includes: a disassembly sub-unit, used to disassemble the simulation verification requirements based on the simulation verification target to obtain multiple functional points involved in the first node corresponding to the simulation verification target and the verification logic of the multiple functional points; a first construction sub-unit, used to construct simulation input data and simulation output data of the multiple functional points based on the verification logic; and a second construction sub-unit, used to construct multiple simulation item data corresponding to the first node based on the simulation input data and the simulation output data.
[0100] Optionally, the determination module includes: a first determination unit, used to determine the simulation purpose involved in the simulation verification requirement, and the simulation input and output data corresponding to the simulation purpose, wherein the simulation purpose is used to determine the initial verification target corresponding to the simulation verification requirement, and the simulation input and output data are used to represent the expected input data and expected output data corresponding to the initial verification target; a second determination unit, used to determine the simulation impact range based on the simulation purpose and the simulation input and output data; an adjustment unit, used to adjust the initial verification target based on the simulation impact range and the call link data to obtain the simulation verification target.
[0101] Optionally, the first determination unit includes: a first determination sub-unit, used to determine, based on the simulation purpose, multiple second nodes through which simulation input and output data are to flow in a distributed system, and functional information associated with the multiple second nodes; and a second determination sub-unit, used to determine the simulation impact range based on the connection relationship and functional information of the multiple second nodes.
[0102] Optionally, the second determination unit includes: a third determination subunit, used to determine multiple third nodes covered by the simulation influence range in the call link data; and a fourth determination subunit, used to determine the simulation verification target based on the multiple third nodes.
[0103] Optionally, the parameter information includes at least one of the following: system architecture information, node configuration information, network topology information, communication protocol information, resource allocation strategy information, and the operation data includes at least one of the following: input data, output data, and transmission data between nodes.
[0104] Example 3
[0105] 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 402, memory 404, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0106] 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.
[0107] 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 shown.
[0108] 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.
[0109] Example 4
[0110] 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.
[0111] 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.
[0112] 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.
[0113] Example 5
[0114] An embodiment of the present application further provides a computer program product, including a computer program, which implements the methods in various embodiments of the present invention when executed by a processor.
[0115] Example 6
[0116] The embodiments of the present application further provide a computer program, which implements the methods in the above-mentioned embodiments of the present invention when executed by a processor.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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 the simulation verification instruction, parsing the simulation verification requirement in the simulation verification instruction, and acquiring parameter information of the distributed system and operation data of the application instance, wherein the application instance is deployed on a node of the distributed system; Based on the parameter information and the operation data, construct 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 verification target according to the simulation verification requirement and the call link data; The application instance is simulated and verified based on the simulation verification target and the simulation verification requirement to obtain a simulation verification result.
2. The method according to claim 1, characterized in that The application example is simulated and verified based on the simulation verification target and the simulation verification requirement to obtain a simulation verification result, including: Decomposing the simulation verification requirement by using the simulation verification target to obtain a plurality of simulation item data, wherein different simulation item data correspond to different functional points of the application instance; The application instance is simulated and verified based on the multiple simulation item data to obtain the simulation verification result.
3. The method according to claim 2, characterized in that The simulation verification requirement is decomposed using the simulation verification target to obtain multiple simulation item data, including: Decomposing the simulation verification requirement based on the simulation verification target to obtain multiple function points involved in the first node corresponding to the simulation verification target and verification logics of the multiple function points; Constructing simulation input data and simulation output data of the plurality of function points based on the verification logic; The plurality of simulation item data corresponding to the first node are constructed based on the simulation input data and the simulation output data.
4. The method according to claim 1, characterized in that: Determining a simulation verification target according to the simulation verification requirement and the call link data includes: Determine the simulation purpose involved in the simulation verification requirement, and the simulation input and output data corresponding to the simulation purpose, wherein the simulation purpose is used to determine the initial verification target corresponding to the simulation verification requirement, and the simulation input and output data is used to represent the expected input data and expected output data corresponding to the initial verification target; Determining a simulation impact range based on the simulation purpose and the simulation input and output data; The initial verification target is adjusted based on the simulation impact range and the call link data to obtain the simulation verification target.
5. The method according to claim 4, characterized in that Determining a simulation impact range based on the simulation purpose and the simulation input and output data includes: Determine, based on the simulation purpose, a plurality of second nodes in the distributed system through which the simulation input and output data is to flow, and functional information associated with the plurality of second nodes; The simulation influence range is determined based on the connection relationship between the plurality of second nodes and the function information.
6. The method according to claim 4, characterized in that Determining the simulation verification target based on the simulation impact range and the call link data includes: Determine a plurality of third nodes covered by the simulation impact range in the call link data; The simulation verification target is determined based on the plurality of third nodes.
7. The method according to claim 1, characterized in that The parameter information includes at least one of the following: system architecture information, node configuration information, network topology information, communication protocol information, and resource allocation strategy information; the operation data includes at least one of the following: input data, output data, and transmission data between nodes.
8. 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 7.
9. 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 7 when running.
10. 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 7 are implemented.