Simulation method, system, platform and device for computer system
By generating traffic simulation nodes with the same traffic transmission and reception behavior, the problems of waste of resources and low simulation efficiency in the prior art are solved, and efficient computer system simulation is realized, reducing costs and increasing simulation scale.
Patent Information
- Application Number
- CN202310618197.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-12-06
AI Technical Summary
In the existing computer system simulation method, creating a simulation worker node requires replicating all the code of the real node, resulting in waste of resources and low simulation efficiency, especially during large-scale testing and integration verification, with high cost and long cycles.
Using the method of traffic simulation nodes, by obtaining traffic transmission and reception information and behavioral rules of real work nodes, we generate simulation nodes with the same or similar traffic transmission and reception behavioral behavioral behavioral rules in low-code or zero-code form To achieve mass production and deployment at scale.
It greatly reduces the simulation cost of computer systems, increases the maximum simulation scale, saves resources, and improves simulation efficiency, applicability and universality.
Smart Images

Figure CN119088498A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of simulation technology, and in particular to a simulation method, system, platform and device for a computer system. Background Art
[0002] With the rise of microservice architecture, the scale of computer systems is getting larger and larger. Integration verification and large-scale testing require a lot of resources and costs, which makes problem discovery delayed, costly and time-consuming. Computer system simulation is used to simulate the external behavior of services, conduct baseline testing, architecture verification, etc., reduce the resources and costs of integration verification and large-scale testing, and support testing left shift.
[0003] In traditional computer simulation methods, if you want to create a simulation work node, you need to completely copy a corresponding real work node, which not only copies the code related to its traffic receiving and sending behavior, but also copies a large amount of business code. However, in actual simulation needs, the simulation node may not be required to perform precise business processing, which causes a waste of resources and reduces simulation efficiency. Summary of the invention
[0004] The embodiments of the present application provide a simulation method, system, platform and device for a computer system, and can provide a simulation method, system, platform and device using a traffic simulation node, which greatly reduces the simulation cost of the computer system and increases the maximum simulation scale of the computer system.
[0005] In a first aspect, a method for generating a simulation node is provided, wherein the method comprises:
[0006] Get the traffic sending and receiving information of the real working node;
[0007] According to the traffic sending and receiving information of the real working node, a traffic behavior rule of the real working node is acquired, where the traffic behavior rule of the real working node is used to instruct the real working node to perform traffic sending and receiving behavior;
[0008] A traffic simulation node is generated according to the traffic behavior rule of the real working node, and the traffic simulation node occupies less resources than the real working node.
[0009] The method provided in the embodiment of the present application can generate a traffic simulation node with the same or similar traffic receiving and sending behavior as the real working node by monitoring the external traffic receiving and sending information of the real working node. The traffic simulation node only focuses on the traffic receiving and sending, and pays little or no attention to the internal business processing behavior of the real working node. Compared with the real working node, the traffic simulation node can greatly reduce the resources occupied, which greatly saves resources in large-scale simulation experiments.
[0010] In one possible implementation, the traffic behavior rules of the real working node are stored in the traffic simulation node in the form of low code or zero code.
[0011] In this implementation, storing traffic behavior rules in a low-code or zero-code manner can facilitate large-scale batch production and deployment of traffic simulation nodes, improving the universality of traffic simulation node generation.
[0012] In a possible implementation manner, the acquiring the traffic behavior rule of the real working node further includes:
[0013] Obtain the status information corresponding to the traffic behavior rules of the real working node;
[0014] The generating flow simulation node also includes:
[0015] The state information corresponding to the flow behavior rule of the real working node is stored in the flow simulation node.
[0016] In this implementation, if a real working node has multiple different operating states, the traffic simulation node that stores state information can also simulate the real working node to adjust different business states in different situations, thereby applying different traffic behavior rules, thereby displaying different traffic sending and receiving states to the outside world, thereby better simulating the real working node and improving simulation efficiency.
[0017] In a possible implementation, the traffic behavior rule includes one or more of the following:
[0018] Passive response rules, proxy forwarding rules, active request rules, event definition rules, and state cache rules.
[0019] In this implementation, through the detailed traffic behavior rules such as passive response rules and proxy forwarding rules, the vast majority of real simulation nodes can be imitated more comprehensively and universally.
[0020] In a possible implementation, the traffic receiving and sending information of the real working node is obtained by using traffic probe technology.
[0021] In this implementation, the traffic probe technology can effectively obtain relevant traffic receiving and sending information of the real working node, such as the API interface of traffic receiving and sending, information in the stack, API call frequency, etc.
[0022] In a possible implementation, the method further includes:
[0023] Comparing the traffic receiving and sending information of the traffic simulation node and the real working node;
[0024] Obtaining the difference in traffic receiving and sending information between the real working node and the traffic simulation node;
[0025] According to the difference in the traffic receiving and sending information, the traffic behavior rule of the traffic simulation node is adjusted.
[0026] In this implementation, after the traffic simulation node is generated, the traffic simulation node can be continuously adjusted according to the difference in traffic sending and receiving behaviors between the two, so that the traffic simulation node can continuously evolve and more realistically simulate a real working node.
[0027] In a possible implementation manner, before comparing the traffic receiving and sending information of the traffic simulation node and the real working node, the method further includes:
[0028] The same traffic information is sent to the traffic simulation node and the real working node.
[0029] In this implementation, before comparing the real working node and the traffic simulation node, they are given the same traffic to observe the difference in traffic behavior between the two under the same input traffic, which can eliminate the interference caused by different traffic and improve the realism of the simulation.
[0030] In a possible implementation manner, before comparing the traffic sending and receiving information of the traffic simulation node and the real working node, the method further includes:
[0031] Traffic information is input into the real computer system and the simulated computer system. The simulated computer system where the traffic simulation node is located also includes other working nodes, and the real computer system where the real working node is located also includes other working nodes.
[0032] In this implementation, the real working nodes and the traffic simulation nodes can be placed in their corresponding working systems respectively. By inputting the same traffic into the two systems to simulate the working conditions in the real production environment, the differences in the traffic sending and receiving behaviors of the two in the real working conditions can be detected to improve the simulation efficiency.
[0033] In a second aspect, the present invention provides a device for generating a traffic simulation node, which is implemented by the device of the first aspect and will not be described in detail here.
[0034] In a third aspect, the present invention provides a computer system, wherein at least one working node in the computer system is a traffic simulation node, and the traffic simulation node corresponds to at least one real working node;
[0035] The traffic simulation node includes at least one traffic behavior rule module and at least one execution engine module, wherein the traffic behavior rule module is used to store the traffic behavior rules of the traffic simulation node, and the traffic behavior rules are rules for the working nodes corresponding to the traffic behavior rules to execute traffic receiving and sending behaviors;
[0036] The traffic simulation node occupies less resources than the real working node;
[0037] The execution engine module is used to drive the execution of the traffic behavior rules of the traffic simulation node.
[0038] In this implementation, the traffic simulation nodes can be deployed in the production environment to achieve large-scale simulation while using fewer resources, thus saving resource consumption.
[0039] In one possible implementation, the traffic behavior rule module stores the traffic behavior rules in a low-code or zero-code format.
[0040] In this implementation, storing traffic behavior rules in a low-code or zero-code manner can facilitate large-scale batch production and deployment of traffic simulation nodes, improving the universality of traffic simulation node generation.
[0041] In a possible implementation, the traffic simulation node is further configured with at least one state cache module, and the state cache module is used to cache state information of the traffic simulation node, and different state information corresponds to different traffic behavior rules.
[0042] In this implementation, if a real working node has multiple different operating states, the traffic simulation node that stores state information can also simulate the real working node to adjust different business states in different situations, thereby applying different traffic behavior rules, thereby displaying different traffic sending and receiving states to the outside world, thereby better simulating the real working node and improving simulation efficiency.
[0043] In a possible implementation, the traffic behavior rule includes one or more of the following:
[0044] Passive response rules, proxy forwarding rules, active request rules, event definition rules, and state cache rules.
[0045] In this implementation, through the detailed traffic behavior rules such as passive response rules and proxy forwarding rules, the vast majority of real simulation nodes can be imitated more comprehensively and universally.
[0046] In a possible implementation, the computer system further includes at least one event simulation module, which is used to simulate at least one flow change event, including: flow burst, flow surge, flow fluctuation, and flow drop.
[0047] In this implementation, various types of traffic change events encountered in a real computer system can be simulated more comprehensively, and the traffic processing process of the real system can be simulated more comprehensively.
[0048] In a fourth aspect, the present invention provides a computer device cluster, each computing device comprising a processor and a memory;
[0049] The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.
[0050] In a fifth aspect, the present invention provides a computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method as described in any one of claims 1-8.
[0051] In a sixth aspect, the present invention provides a computer-readable storage medium, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method as described in any one of claims 1-8. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a method for generating a traffic simulation node provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of a type of traffic behavior rule provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the structure of traffic transmission of a microservice system provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of the structure of a traffic simulation node provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of another method for generating a traffic simulation node provided in an embodiment of the present application;
[0057] Figure 6 A schematic diagram of a simulation measurement method provided in an embodiment of the present application;
[0058] Figure 7A schematic diagram of the structure of a simulation generation system provided in an embodiment of the present application;
[0059] Figure 8 A schematic diagram of a simulation system deployment method provided in an embodiment of the present application;
[0060] Fig. 9 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0061] Fig.10 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0062] Fig.11 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application; DETAILED DESCRIPTION
[0063] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0064] In the description of this specification, "one embodiment" or "some embodiments" etc. means that one or more embodiments of this specification include a specific feature, structure or characteristic described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.
[0065] In the description of this specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this specification, "multiple" means two or more than two.
[0066] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0067] Microservice: A software development technology - a variation of the service-oriented architecture style, which advocates dividing a single application into a group of small services, which coordinate and cooperate with each other to provide ultimate value to users. Each service runs in its own independent process, and services communicate with each other using lightweight communication mechanisms. Each service is built around a specific business and can be independently deployed to a production environment, a production-like environment, etc.
[0068] Simulation node: refers to the basic working unit in the simulation system, which is used to imitate the various working nodes in the real system. Under normal circumstances, in microservices, each separately deployed service can be regarded as a working node.
[0069] Computer system simulation refers to the establishment of a simulation model that can describe the system structure or behavior process and has certain logical or quantitative relationships based on the analysis of the properties of each element of the system and their mutual relationships according to the purpose of system analysis, and then conduct experiments or quantitative analysis to obtain various information required for correct decision-making. Traditional computer system simulation models retain all or most of the code and environment of the original system, which results in a series of disadvantages such as high resource consumption and limited simulation scale when simulating large-scale computer systems.
[0070] Traffic simulation node: After deleting all or most of the codes that are irrelevant or weakly related to the traffic sending and receiving function, the simulation node can still simulate the traffic sending and receiving function of the real node. The traffic simulation node can greatly reduce the amount of internal code of the simulation node and delete the business code that is irrelevant or weakly related to the execution of the traffic sending and receiving task, so that its resource usage is greatly reduced.
[0071] Subcall: The subcall is a series of subsequent traffic information sending and receiving actions triggered when a certain working node receives a traffic information. For example, the login module 302 sends a second traffic information to the database 303 and receives the third traffic information returned by the database, which can be regarded as a subcall of the received first traffic information.
[0072] Low code: Encapsulate a series of code functions so that the corresponding multiple encapsulated code functions can be called through only one or several simple codes. The one or several simple codes can be called low code.
[0073] Zero code: encapsulates a series of code functions so that the corresponding multiple encapsulated code functions can be called only through some non-code instructions (such as text, etc.). The non-code instructions can be called zero code.
[0074] In existing microservice system simulations, it is often necessary to create a large number of simulation nodes to simulate the working nodes in the real microservice system, so as to further simulate the overall working status of the microservice system. How to simulate the working nodes in the real microservice system on a large scale and in batches has become a core issue in microservice system simulation.
[0075] In an existing technical solution, a solution for deploying a virtual machine separately is provided. In this technical solution, the business code in the real working node can be completely deployed in the virtual machine to form a simulation node, and then the simulation nodes in multiple virtual machines are connected and deployed as a complete simulation system to achieve the most realistic imitation of the running state of the real system.
[0076] This technical solution has the following disadvantages: high resource consumption. In this technical solution, since the complete business code is deployed in the virtual machine, each simulation node consumes the same resources as the nodes in the real system, including computing resources, network resources, storage resources, etc., which is equivalent to deploying a second real system to a certain extent, which consumes a lot of computing resources. When a large number of simulation nodes need to be deployed, the cost of computing resources required is too high.
[0077] The present invention proposes a technical solution, using traffic simulation nodes to replace simulation nodes in a traditional simulation system, thereby reducing resource consumption of the simulation nodes, so as to achieve the purpose of saving a lot of resources and improving simulation efficiency.
[0078] Compared with the general simulation method of performing business transformation to reduce resource occupation, the traffic simulation node has the advantages of simple application, strong versatility and large-scale replication, which greatly enhances the commercial value of simulation technology.
[0079] Combine the following Figure 1 This paper introduces the method of generating traffic simulation nodes.
[0080] S101, obtaining traffic receiving and sending information of a real working node.
[0081] The traffic behavior sending and receiving information may be obtained through traffic probe technology or by reading traffic logs.
[0082] S102: Acquire the traffic behavior rules of the real working node according to the traffic receiving and sending information of the real working node.
[0083] According to the following Figure 2 This section describes the content of traffic behavior rules.
[0084] The traffic behavior rules may include:
[0085] Passive response rule 202, the passive response rule may be a traffic response behavior made by a certain working node when it receives a certain traffic. The traffic response behavior is an external performance behavior with traffic sending and receiving behavior as the content after receiving a certain external traffic. The traffic response behavior does not focus on the specific processing work of the received traffic inside the working node, but only focuses on the traffic sending and receiving behavior displayed to the outside after the processing result.
[0086] According to the following Figure 3 For example, when the login module 302 receives the password of the user 301, the password information sent by the user 301 to the login module 302 can be regarded as the first flow information. After receiving this information, the login module 302 sends a query request to the database 303, and the request can carry the password sent by the user 301 to it. This query request can be regarded as the second flow information sent by the login module 302. After the database 303 completes the query action according to the received second flow information, it returns the query result to the login module 302, and this query result can be regarded as the third flow information. After receiving the third flow information, the login module 302 returns the fourth flow information of the wrong password to the user 301 according to the specific content of the information, or sends the fifth flow information of the information call to the business module 304. The above login module 302's receiving and issuing behaviors of the first flow information, the second flow information, the third flow information, the fourth flow information, and the fifth flow information can be summarized as the passive response rules of the login module 302. The rules are: receive the first flow information (external flow) sent by the user 301, and after receiving the first flow information sent by the user 301, send the second flow information to the database 303, and after sending the second flow information to the database 303, receive the third flow information from the database 303, and after receiving the third flow information from the database 303, send the fourth flow information to the user 301 or send the fifth flow information to the business module 304. Among them, after receiving the third flow information from the database 303, how to choose whether to send the fourth flow information or the fifth flow information can be determined according to the selection ratio of the login module in the real system. For example, if the login module in the real system receives the third information, there is a 30% probability of returning the password error information to the user, that is, the fourth flow information, and a 70% probability of sending the call information, that is, the fifth flow information, to the business module. This probability can be recorded in the passive response rule of the login module 302, so that the traffic simulation node generated according to this passive response rule can more fully imitate the traffic response behavior of the login module 302.
[0087] In a possible implementation, after receiving the third flow information, the login module 302 can selectively send the fourth flow or the fifth flow in a variety of ways, and extracting the probability selection as the flow behavior rule of the login module 302 is only one possible implementation. For example, the selection behavior of the fourth flow or the fifth flow can also be implemented by the flow behavior rule of the database 303. After receiving the second flow information, the database 303 can select the content of the third flow information returned to the login module 302 according to the probability of the real database verification result, and the content can represent a correct password or an incorrect password. When the login module 302 receives the third flow information representing a correct password or an incorrect password, it can select to send the fourth flow information or the fifth flow information according to the set rules. For example, after receiving the flow information of the correct password (for example, when the third flow information is 0), send the fifth flow information, and when receiving the flow information of the incorrect password (for example, when the third flow information is 1), send the fourth flow information.
[0088] In a possible implementation, the selective transmission of the fourth flow or the fifth flow can also be realized by adding a probability module separately. That is, a probability module is deployed separately in the simulation system or a probability module is deployed inside each simulation node. The probability module can help the simulation node select and execute one of the flow behaviors according to the set probability when such selection behavior occurs. The probability set inside the probability module can be adjusted in real time according to demand, so that the flow simulation node can better imitate the flow behavior of the real node.
[0089] In a possible implementation, the selective traffic sending behavior can be implemented in multiple ways. The selective traffic sending behavior is that a certain node needs to select one of multiple traffic sending behaviors to execute. For example, after the login module 302 receives the third traffic information, it needs to select to send the fourth traffic information or the fifth traffic information. The specific implementation of the above selection behavior can be determined by extracting the historical selection probability of the real node corresponding to the login module 302, or it can be considered that a certain behavior rule is set, which can make the login module 302
[0090] Traffic sending and receiving behavior: Traffic sending and receiving behavior is a general term for the behavior of a working node receiving and sending traffic. Traffic sending and receiving behavior can include actively sending traffic, receiving traffic, and forwarding traffic.
[0091] Traffic sending and receiving information: Traffic sending and receiving information refers to the relevant information of traffic sending and receiving behavior of a certain working node.
[0092] Traffic behavior rule: A set of rules that a certain working node executes to perform related traffic receiving and sending behaviors. For example, after module A receives the first traffic, it will send the second traffic to the traffic analysis module 702. The traffic behavior rule of module A is: receive the first traffic, and then send the second traffic to the traffic analysis module 702.
[0093] The content of the first flow or the second flow mentioned above can be meaningless trigger information, or it can be information that has been agreed to have a certain meaning. For example, if the flow information sent by the user 301 to the login module 302 in the real system only contains the user password or the login request, the first flow information in the simulation system can be set as a meaningless trigger information, and the corresponding passive response rule will be automatically executed as long as this trigger information is received. If the third flow information returned by the database 303 to the login module 302 contains two types of results, namely, the password is correct or the password is incorrect, the login module 302 can decide to send the fourth flow information or the fifth flow information according to the content of the third flow information. At this time, the third flow information can include 0 or 1 or other two kinds of information with distinguishing meanings. Among them, 0 can represent a correct password, and 1 can represent an incorrect password. The login module 302 can perform subsequent flow sending and receiving behaviors according to the specific content of the received third flow information.
[0094] Proxy forwarding rule 203, the proxy forwarding rule can be that when a module receives a certain flow information, a certain forwarding action is executed, or after completing certain business behaviors, a certain forwarding action is executed. Figure 3 For example, when the login module 302 receives the first flow information of the user 301, it can directly forward this information to the database 303, or it can forward the above flow information after processing its behavior internally (for example, verifying whether it is a malicious attack). The above behavior can be summarized as the proxy forwarding rule of the login module 302, and the proxy forwarding rule is that after the login module 302 receives the first flow information of the user 301, it forwards the first information to the database 303 (equivalent to sending the second information).
[0095] Active request rule 204, the active request rule may be a behavior rule that a module actively sends flow information to other modules. Figure 3 For example, the simulation system can be configured with a user 301 module to simulate the user's request behavior. For example, user 301 often sends the first flow information to the login module 302 at a fixed frequency, or suddenly increases the frequency of sending the first flow information in a certain time period. The above behavior can be summarized as an active request rule. The active request rule is that user 301 actively sends the first flow information to the login module 302 after a fixed time, or sends the first flow information to the login module 302 after a random time.
[0096] For another example, all modules can be configured with a heartbeat detection function, where all modules need to routinely send information to the system management module every fixed time so that the system management module can determine the operating status of all modules. The above heartbeat detection behavior can also be summarized as an active request rule.
[0097] The types of the traffic behavior rules are not limited and can be set according to the actual behavior of the real node. The actual traffic behavior rules may not be any of the above three behavior rules, or may include one or more of the above behaviors or their permutations and combinations.
[0098] The implementation of the above traffic behavior rules can also be assisted by the event definition rules 205, which are the behavior rules that simulate the occurrence of a real event by adjusting the relevant traffic behavior rules or operating states of the traffic simulation nodes. Figure 3 For example, an event definition rule can be defined as, when a specific time is reached, the frequency of sending the first traffic information of user 301 is increased to 100 times the usual frequency to simulate certain instantaneous traffic burst scenarios (such as Double Eleven). An event definition rule can also be defined as randomly shutting down a service module at fixed or irregular intervals to simulate the occurrence of a downtime event. The above events can be summarized into corresponding event definition rules waiting to be executed. When the above event definition rules are executed, event effects corresponding to the events should be generated, such as a traffic surge, service downtime, etc.
[0099] State caching rules 206, the state caching rules may include the conditions for the module to change state, and the consequences of the state change. Figure 3 For example, if the default state of the business module 304 is not to respond to the request of the user 301, it is because the user 301 has not passed the verification of the login module 302 at this time, and it is not yet certain whether it is a legitimate user. When the user 301 passes the verification of the login module 302, the login module 302 sends the fifth flow information to the business module 304. At this time, the business module 304 is regarded as a state change, and can respond to the request of the user 301 and return the sixth flow information to the user 301. The above rules can be summarized as follows: default state: do not receive the request of the user 301. Trigger state: receive the request of the user 301 and return the sixth flow information to it, trigger condition: receive the fifth flow information of the login module 302.
[0100] The state cache rule 206 can also be used to simulate different operating states of real nodes. For example, if the work content of the real node is rendering, and the rendering work needs to last for 1 hour, when the rendering node receives the status query request, it may return three results to it according to the actual state: rendering not started, rendering in progress, and rendering completed. The state cache rule 206 can be set as follows: before receiving the rendering request, return: 0 to the status query request, indicating that rendering has not started. Within 1 hour after receiving the rendering request, return: 1 to the status query request, indicating that rendering is in progress. One hour after receiving the rendering request, return: 2 to the status query request, indicating that rendering is completed.
[0101] S102, arranging traffic simulation nodes according to traffic behavior rules of real nodes.
[0102] The method for arranging the traffic simulation nodes may be to write specific functions according to the traffic behavior rules to execute the above rules.
[0103] In this implementation, the specific function only needs to be able to execute all traffic behavior rules extracted by a certain module without having to implement the specific business content of the module. Figure 3 For example, in a real system, when the database 303 receives the second flow information (user password) sent by the login module 302, it needs to complete the internal verification and return the third flow information to the login module 302 according to the verification result. In the process of traffic simulation node arrangement, the traffic simulation node corresponding to the database 303 only needs to perform the following functions: receive the second flow information, and after receiving the second flow information, return the third flow information to the login module 302. The traffic simulation node does not need to have an internal verification function, so naturally there is no need to implement the corresponding business code of this function. The second flow information does not need to be a real business password, and can be replaced by a simple 0 or other information. The actual code required to implement the above-mentioned traffic behavior rules is greatly reduced compared to the complete code of the original business module, and only fewer functions are needed to execute the above-mentioned traffic behavior rules. Therefore, the simulation node generated according to this method can be called a traffic simulation node.
[0104] Combine the following Figure 4 This paper introduces a possible implementation of a traffic simulation node.
[0105] The traffic simulation node may include a traffic behavior rule module 401 , an execution engine module 402 , a state cache 403 , an event simulator 404 , and a multi-protocol connection pool 405 .
[0106] The traffic behavior rule module 401 can store the traffic behavior rules of the traffic simulation node in the form of target code or source code. When the target code is executed or the source code is compiled and then executed by the central processing unit, the traffic simulation node can perform the corresponding traffic behavior.
[0107] The traffic behavior rule module 401 can also be a traffic behavior rule stored in other ways such as low code or plain text. When the traffic behavior rule module 401 is a traffic behavior rule stored in other ways such as low code or plain text, a parsing module needs to be deployed in the traffic simulation node. The parsing module is used to parse the traffic behavior rule module 401 and convert it into executable code. When the code is executed, the traffic simulation node can perform the corresponding traffic behavior.
[0108] The traffic behavior rule module 401 may include passive response rules, proxy forwarding rules, active request rules, etc.
[0109] In a possible implementation, the traffic behavior rule may also include an event definition rule and a state cache rule.
[0110] The execution engine module 402 is used to drive the traffic behavior rule execution module 401, which can execute the instructions stored in the traffic behavior rules, so that the traffic simulation node can perform the corresponding traffic sending and receiving actions.
[0111] The state cache 403 may include a cache layer, in which the state information of the traffic simulation node may be cached, and the state information may include a default state or a special state, and the special state may be a state other than the default state. The state cache 403 may record the triggering rules of the default state and the special state, as well as the new traffic behavior rules executed after the triggering. The traffic behavior rules stored in the state cache may be driven by the execution engine module 402 or driven by itself.
[0112] In a possible implementation, after a special state in the state cache 403 is triggered, the traffic behavior rule module 401 can be directly modified so that the traffic behavior corresponding to the traffic behavior rule module 401 corresponds to the traffic behavior of the special state. In a possible implementation, after a special state in the state cache 403 is triggered, the execution engine module can also be made to directly execute the new traffic behavior rule, and the execution method can be to make the execution engine module directly execute the traffic behavior rule corresponding to the special state cached in the state cache.
[0113] The event simulator 404 may store the code required to implement event definition rules. The code may be driven by the event simulator itself or by the execution engine module 402. After being driven, the code may implement the behavioral logic of the corresponding event, such as increasing the frequency of traffic transmission and reception or shutting down the traffic simulation node.
[0114] In a possible implementation, an event simulation node may be deployed separately in the simulation system instead of deploying an event simulator 404 inside each traffic simulation node. In this implementation, the event simulation node may send an event execution instruction to a specific or all traffic simulation nodes as needed. The instruction may include a complete event execution method or a simple 0 or 1 instruction, and the event execution method may be stored and executed by the traffic simulation node itself.
[0115] In this embodiment, the event simulator inside the traffic simulation node only needs to execute the event execution method received from the event simulation node. The method can be sent in the form of a complete execution code. When the execution code is executed, the traffic simulation node can implement the behavior logic of the corresponding event. The method can also be received in the form of text information or low code. When the method is received in the form of text information or low code, a parsing module can be configured inside the traffic simulation node, and the parsing module can parse the text information or low code into a target code that can be executed by the central processing unit.
[0116] The multi-protocol link pool 405 may be configured with multiple communication protocols to facilitate mutual communication between the various traffic simulation nodes. In order to better simulate the real system, each working node in the real system may use different communication protocols, so the traffic simulation node can be configured to use the same communication method as the corresponding real working node to improve the realism of the simulation system.
[0117] The multi-protocol connection pool 405 can also be used to perform communication work between the traffic simulation node and other modules, such as registration management nodes, event simulation nodes, etc., so the multi-protocol connection pool 405 can also be regarded as a communication module. The multi-protocol connection pool 405 can also be configured to have the function of a parsing module. When the multi-protocol connection pool 405 receives external traffic, if the external traffic carries a complete execution code, the execution code can be submitted to the execution engine module for execution. When the external traffic carries text information or low code, the multi-protocol connection pool 405 can translate the text information or low code into executable code.
[0118] In a possible implementation, the multi-protocol connection pool 405 may also store specific parsing rules, which can enable the traffic simulation node to execute specific execution code when receiving specific traffic information. The execution of the specific execution code may be performed by triggering a traffic behavior in the traffic behavior rule module 401. Figure 3 For example, when the multi-protocol connection pool 405 is a multi-protocol connection pool of a login module, when it receives the third flow information, if the third flow information is 0, the multi-protocol connection pool can query whether the relevant parsing rules of the third flow information are stored internally, and if the parsing rules related to the third flow information are queried, the relevant parsing behavior is executed. If the third flow information is 0, which means that the password is wrong, the login module 302 executes the flow behavior of returning the fourth flow information to the user 301. If the third flow information is received as 1, and the meaning of the third flow information being 1 is that the password is correct, the login module 302 sends the fifth flow information to the business module 304.
[0119] In one possible implementation, the simulation system may include both traffic simulation nodes and ordinary simulation nodes or real working nodes. The traffic simulation nodes need to communicate with multiple types of nodes at the same time, and the messages of different types of communication protocols received by them can be received, parsed or forwarded through a multi-protocol link pool.
[0120] The above-mentioned traffic behavior rule module 401, execution engine module 402, state cache 403, event simulator 404, and multi-protocol connection pool 405 can be regarded as individual modules, such as traffic behavior rule module, execution engine module, state cache module, event simulator module, multi-protocol connection pool module, etc. The above-mentioned modules can be configured as one program executing the function of one module, one program executing the functions of multiple modules, or multiple programs executing the function of one module, as well as cross-combinations of the above-mentioned situations, etc., and the present invention does not limit the specific deployment method thereof.
[0121] Combine the following Figure 5 A method for generating a traffic simulation node is introduced, and the method for generating a traffic simulation node includes:
[0122] S501, traffic acquisition, the traffic acquisition includes acquiring traffic receiving and sending information of the real system / real system working node, such as the first traffic information received by the login module 302, the second traffic information sent by the login module 302, etc.
[0123] S502, flow analysis, the flow analysis includes extracting flow behavior rules based on the flow receiving and sending information of the real system / real system working node. The extracted flow behavior rules may include passive response rules, proxy forwarding rules, active request rules, event definition rules, state cache rules, etc. The method for extracting flow behavior rules may be to analyze the flow receiving and sending information of the working node of the real system and infer it. Figure 3 For example, when it is analyzed that the login module 302 sends the second flow information to the database 303 every time it receives the first flow information, the sending of the second flow information and the receiving of the third flow information can be regarded as a sub-call of the first flow information, and it is defined as a flow behavior rule. The flow behavior rule can also be extracted by analyzing the request content of the first flow information. If the request content of the first flow information contains the processing method of the login module 302 for the first flow information, then its method is defined as a flow behavior rule.
[0124] The flow analysis step may also include analyzing other flow receiving and sending information of the real system to extract the flow behavior rules. For example, when the flow receiving and sending information shows that every time the time reaches 10 o'clock in the evening, the amount of flow transmission between systems will increase to 10 times the normal state, the flow increase of 10 times every fixed time can be summarized as a flow behavior rule. When the flow receiving and sending information shows that the amount of the first flow information is 10% more than the second flow information, it is possible that the second flow information forwarded by the login module 302 is reduced by 10% compared to the received first flow information due to downtime or other factors. The amount of the second flow information reduced by 10% compared to the first flow information can also be summarized as a flow behavior rule. The summary and induction method of the flow rules can be set and adjusted according to the actual operation characteristics of the system.
[0125] S503, generate a traffic simulation node. The method for generating a traffic simulation node includes arranging a simulation model according to traffic behavior rules or other rules. The simulation model may be arranged in such a way that executable code is written according to the traffic behavior rules, and the code can execute the above traffic behavior rules when running. When generating a traffic simulation node, at least one execution engine module may also be configured for the traffic simulation node, and the execution engine module is used to drive the execution of the executable code written according to the traffic behavior rules. The method for generating a traffic simulation node may also include combining traffic behavior rules, execution engine modules, state caches, event simulators, and multi-protocol link pools into a separately deployable program for deployment in a computing instance to form a traffic simulation node.
[0126] In a possible implementation, the simulation node generation method may further include S504 simulation measurement. The simulation measurement includes comparing the simulation system with the real system to find out the difference in traffic behavior rules between the simulation system and the real system for subsequent optimization of the behavior of the simulation system.
[0127] In a possible implementation, the simulation metric further includes recommending new traffic behavior rules, or recommending an improvement method for the traffic behavior rules of the simulation system, based on differences between the traffic behavior rules of the simulation system and the real system.
[0128] Combine the following Figure 6 A simulation measurement method is introduced.
[0129] The simulation measurement method can be executed by a simulation measurement device, and the simulation measurement method includes:
[0130] S601 Traffic recording: recording the traffic of the real system and the simulation system at the same time to extract traffic receiving and sending information. The recording method can adopt the traffic probe technology or the method of reading the traffic log.
[0131] S602 compares the traffic of the real system with the traffic of the simulation system. The traffic comparison can be to compare the differences in the traffic receiving and sending information, that is, to compare the differences in sub-calls, etc., or to compare the differences in the traffic behavior rules, such as comparing the similarities and differences in the traffic behavior rules of a certain working node and its corresponding simulation node, or to compare the similarities and differences in the traffic transmission and forwarding in the entire system.
[0132] S603 summarizes the traffic difference, where the traffic difference may be a difference between traffic transceiver information of the real system and traffic transceiver information of the simulation system, or a difference between traffic behavior rules of the real system and traffic behavior rules of the simulation system.
[0133] S604 recommends new rules, and the recommended new rules may be new traffic behavior rules generated according to the traffic difference between the real system and the simulation system, or may be adjustment measures for the original traffic rules of the simulation system generated according to the traffic difference between the real system and the simulation system. The method of recommending new rules may be to adjust the traffic behavior rules of the simulation system so that the traffic behavior rules of the simulation system are closer to the traffic behavior rules of the real system. The method of adjusting the traffic behavior rules of the simulation system may be to adjust the traffic behavior rules of the corresponding simulation node according to the traffic transceiver information of a certain working node in the real system. The method of adjusting the traffic behavior rules of the simulation system may also be to extract the traffic behavior rules of the working node of the real system according to the traffic transceiver information of the working node of the real system, compare the traffic behavior rules of the working node of the real system with the traffic behavior rules of the corresponding simulation node, and adjust the traffic behavior rules of the working node of the simulation system.
[0134] In a possible implementation, before the traffic recording in S601, the same traffic may be input to the real system and the simulation system at the same time to observe the difference between the real system and the simulation system under the condition of the same traffic input, thereby improving the accuracy of the simulation measurement.
[0135] In a possible implementation, the simulation measurement device can periodically perform simulation measurement on the real system and the simulation system, so that the simulation system can automatically adapt to the update of the real system.
[0136] In a possible implementation, if a system contains both real nodes and simulated nodes, the traffic of the real nodes in the system can also be used to compare with the traffic of the simulated nodes in the system. After the traffic is injected into the system, the different processing methods of the real nodes and the simulated nodes can be observed, and new traffic behavior rules for the simulated nodes can be recommended based on their differences. At this time, the traffic of the real nodes can be regarded as the traffic of the real system, and the traffic of the simulated nodes can be regarded as the traffic of the simulated system.
[0137] The simulation measurement method can be used for simulation measurement between a real system and a simulation system, so that the simulation system can simulate the real system more realistically, and can also be used for simulation measurement between simulation systems, so as to determine which simulation system has a better degree of simulation or a better simulation performance. In one possible implementation, when different traffic behavior rules show different simulation performances, different simulation systems / nodes using different traffic behavior rules can be scored according to the quality of the simulation performance, and finally the final recommended traffic behavior rule is selected based on the comprehensive scoring results.
[0138] The performance of the simulation can be comprehensively evaluated based on the following reference factors:
[0139] Availability: Availability includes the time that the simulation system can continue to work, which can be measured by mean time between failures and recoverability. The mean time between failures is the total time the system is running divided by the number of failures that occur during the total time. Recoverability includes the ability of the system to recover to normal operation after a failure. The higher the availability, the higher the score of the corresponding traffic behavior rule.
[0140] Working capacity: The working capacity includes the capacity of the simulation system under normal working conditions. The capacity may include throughput, delay, and resource utilization.
[0141] Throughput: The throughput includes the processing capacity of the system per unit time, and the processing capacity includes the number of tasks completed by the system per unit time. The meaning of the throughput may be different for different systems or different nodes. For example, when the node is a database node, the throughput may be the number of password query actions completed per unit time. For the login module, the throughput may be the number of instructions returned to the login request per unit time. Generally speaking, the greater the throughput, the higher the score of the corresponding traffic behavior rule.
[0142] Latency: The latency includes the time it takes to complete a task. For example, when the node is a database node, the latency includes the time it takes for the database node to complete a query or complete a data process. When the node is a network node, the latency includes the time it takes for the network node to send a data packet, etc. Generally speaking, the lower the latency, the higher the score of the corresponding traffic behavior rule.
[0143] Resource utilization: The resource utilization includes the system resources required for the system or node to complete a task. For example, when the node is a database node, it takes the processor time, memory size, or network bandwidth size to complete a data processing. When evaluating the resource utilization of the system, you can refer to the different overall resource usage of different systems under the same traffic input, or refer to the load rate of different systems under the same traffic input. The scoring rules for resource utilization can be set according to actual conditions. Generally speaking, too high or too low resource utilization may prevent the system from running in an optimal state.
[0144] After obtaining the comprehensive scores of different systems / nodes, different traffic behavior rules can be arranged according to the score results, and the traffic behavior rule with the highest score can be recommended to the system / node.
[0145] When most simulation measurement methods are used for simulation measurement between real systems and simulated systems, the score can be evaluated based on the degree of proximity to the real system. For example, when the latency of the real node is 30ms, the latency of the first traffic simulation node is 25ms, and the latency of the second traffic simulation node is 20ms. Although generally speaking, the lower the latency of a node, the better the performance of the node, and the better the overall score. However, in the simulation scenario, since the latency of the real node is 30ms, although the latency of the first traffic simulation node is higher than that of the second traffic simulation node, the latency of the first traffic simulation node of 25ms is closer to the latency of the real node of 30ms, so the traffic behavior rules corresponding to the first traffic simulation node can obtain a higher score.
[0146] Combine the following Figure 7A traffic simulation node generation device is introduced.
[0147] The present application also provides a flow simulation node generation device, such as Figure 7 As shown, including:
[0148] Traffic acquisition module 701, traffic analysis module 702, and traffic simulation node generation module 703. The traffic analysis module 702 is used to execute the traffic analysis method of S502. The traffic simulation node generation module 703 is used to execute the method of generating traffic simulation nodes of S503.
[0149] Among them, the traffic acquisition module 701, the traffic analysis module 702 and the traffic simulation node generation module 703 can all be implemented by software, or can be implemented by hardware. Exemplarily, the implementation of the traffic acquisition module 701 is introduced below by taking the traffic acquisition module 701 as an example. Similarly, the implementation of the traffic analysis module 702 and the traffic simulation node generation module 703 can refer to the implementation of the traffic acquisition module 701.
[0150] As an example of a software functional unit, the traffic acquisition module 701 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the traffic acquisition module 701 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with similar geographical locations. Among them, usually a region can include multiple AZs.
[0151] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0152] As an example of a hardware functional unit, the traffic acquisition module 701 may include at least one computing device, such as a server, etc. Alternatively, the traffic acquisition module 701 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0153] The multiple computing devices included in the traffic acquisition module 701 can be distributed in the same region or in different regions. The multiple computing devices included in the traffic acquisition module 701 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the traffic acquisition module 701 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0154] It should be noted that, in other embodiments, the traffic acquisition module 701 may be used to execute Figure 5 In any step of the method shown, the traffic analysis module 702 can be used to perform Figure 5 In any step of the method shown, the traffic simulation node generation module 703 can be used to perform Figure 5 In any step of the method shown, the steps that the flow acquisition module 701, the flow analysis module 702, and the flow simulation node generation module 703 are responsible for implementing can be specified as needed, and the flow acquisition module 701, the flow analysis module 702, and the flow simulation node generation module 703 are respectively implemented Figure 5 The different steps in the method shown are used to implement the full functionality of the YY device. Figure 8 Introducing a method for deploying traffic simulation nodes
[0155] S801, obtaining a traffic simulation node. The traffic simulation node may be obtained by using a simulation generation system to generate a simulation node, or by using a packaged traffic simulation node provided by others, or by other means.
[0156] S802, deploy the traffic simulation node into the simulation system. The simulation system may be a computer system designed with the concept of microservices. The deployment method may be to register the traffic simulation node with the simulation system. The simulation system may include a registration management node for finding, discovering, and managing newly opened working nodes. The registration management node may be a module deployed with registration management software such as Eureka, Zookeeper, Nacos, or may be a module deployed with other modules having similar functions.
[0157] The working nodes of the simulation system may all be simulation nodes, or may include some real working nodes. The simulation nodes may all be traffic simulation nodes, or may include traffic simulation nodes and other types of simulation nodes at the same time. The simulation system may be a computer system that is isolated from the real system and deployed separately, or it may be an operating state of the real system. If at least one node running inside a system is a simulation node, then this system may also be called a simulation system.
[0158] A registration module may also be deployed inside the traffic simulation node, and the registration module may enable the traffic simulation node to register with the registration management node and receive and execute related instructions.
[0159] The present application also provides a computing device 1000. Fig. 9 As shown, computing device 1000 includes: bus 1002, processor 1004, memory 1006 and communication interface 1008. Processor 1004, memory 1006 and communication interface 1008 communicate through bus 1002. Computing device 1000 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 1000.
[0160] The bus 1002 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The bus 1004 may include a path for transmitting information between various components of the computing device 1000 (eg, the memory 1006, the processor 1004, and the communication interface 1008).
[0161] The processor 1004 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0162] The memory 1006 may include a volatile memory, such as a random access memory (RAM). The processor 1004 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0163] The memory 1006 stores executable program codes, and the processor 1004 executes the executable program codes to respectively implement the functions of the aforementioned traffic analysis device and the simulation model arrangement device, thereby achieving Figure 5 That is, the memory 1006 stores the method for executing Figure 5 Instructions for the method shown.
[0164] The communication interface 1003 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.
[0165] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0166] like Fig.10 As shown, the computing device cluster includes at least one computing device 1000. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same Figure 5 Instructions for the method shown.
[0167] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store a memory for executing Figure 5In other words, a combination of one or more computing devices 1000 can jointly execute instructions for executing Figure 5 Instructions for the method shown.
[0168] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the simulation generation system. That is, the instructions stored in the memory 1006 in different computing devices 1000 can implement the functions of one or more devices in the simulation generation system.
[0169] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 1000A and 1000B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1006 in the computing device 1000A stores instructions for executing the functions of the flow acquisition device and the flow analysis device. At the same time, the memory 1006 in the computing device 1000B stores instructions for the flow simulation node orchestration device.
[0170] It should be understood that Fig.11 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices 1000.
[0171] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes Figure 5 The method shown.
[0172] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute Figure 5 The method shown.
[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a simulation node, It is characterized in that The method comprises: Get the traffic sending and receiving information of the real working node; According to the traffic sending and receiving information of the real working node, a traffic behavior rule of the real working node is acquired, where the traffic behavior rule of the real working node is used to instruct the real working node to perform traffic sending and receiving behavior; A traffic simulation node is generated according to the traffic behavior rule of the real working node, and the traffic simulation node occupies less resources than the real working node.
2. The method according to claim 1, It is characterized in that The generating flow simulation node also includes: The traffic behavior rules of the real working node are stored in the traffic simulation node in the form of low code or zero code.
3. The method according to any one of claims 1 to 2, It is characterized in that The step of obtaining the traffic behavior rule of the real working node further includes: Obtain the status information corresponding to the traffic behavior rules of the real working node; The generating flow simulation node also includes: The state information corresponding to the flow behavior rule of the real working node is stored in the flow simulation node.
4. The method according to any one of claims 1 to 3, It is characterized in that The traffic behavior rules include one or more of the following: Passive response rules, proxy forwarding rules, active request rules, event definition rules, and state cache rules.
5. The method according to any one of claims 1 to 4, It is characterized in that The flow probe technology is used to obtain the flow receiving and sending information of the real working node.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: Comparing the traffic receiving and sending information of the traffic simulation node and the real working node; Obtaining the difference in traffic receiving and sending information between the real working node and the traffic simulation node; According to the difference in the traffic receiving and sending information, the traffic behavior rule of the traffic simulation node is adjusted.
7. The method according to claim 6, It is characterized in that Before comparing the traffic receiving and sending information of the traffic simulation node and the real working node, the method further includes: The same traffic information is sent to the traffic simulation node and the real working node.
8. The method according to any one of claim 7, It is characterized in that Before comparing the traffic receiving and sending information of the traffic simulation node and the real working node, the method further includes: Traffic information is input into the real computer system and the simulated computer system. The simulated computer system where the traffic simulation node is located also includes other working nodes, and the real computer system where the real working node is located also includes other working nodes.
9. A device for generating a simulation node, It is characterized in that The device comprises: A traffic acquisition module, which is used to acquire traffic sending and receiving information of real working nodes; A traffic analysis module, the traffic analysis module is used to obtain the traffic behavior rules of the real working node according to the traffic sending and receiving information of the real working node, and the traffic behavior rules of the real working node are used to instruct the real working node to perform traffic sending and receiving behavior; A traffic simulation node generation module, wherein the traffic simulation node generation module is used to generate a traffic simulation node according to the traffic behavior rules of the real working node, and the traffic simulation node occupies less resources than the real working node.
10. The device according to claim 9, It is characterized in that The traffic simulation node generation module is also used for: The traffic behavior rules of the real working node are stored in the traffic simulation node in the form of low code or zero code.
11. The device according to any one of claims 9 to 10, It is characterized in that The traffic analysis module is also used to obtain status information corresponding to the traffic behavior rules of the real working node; The traffic simulation node generating device is also used to: store the status information corresponding to the traffic behavior rule of the real working node in the traffic simulation node.
12. The device according to any one of claims 9 to 11, It is characterized in that The traffic behavior rules include one or more of the following: Passive response rules, proxy forwarding rules, active request rules, event definition rules, and state cache rules.
13. The device according to any one of claims 9 to 12, It is characterized in that The traffic acquisition module acquires the traffic receiving and sending information of the real working node through the traffic probe technology.
14. The device according to any one of claims 9 to 13, It is characterized in that The traffic simulation node also includes at least one event simulation module, and the event simulation module is used to simulate at least one traffic change event, and the traffic change event includes: traffic burst, traffic surge, traffic fluctuation, and traffic drop.
15. A computer system, It is characterized in that At least one working node in the computer system is a traffic simulation node, and the traffic simulation node corresponds to at least one real working node; The traffic simulation node includes at least one traffic behavior rule module and at least one execution engine module, wherein the traffic behavior rule module is used to store the traffic behavior rules of the traffic simulation node, and the traffic behavior rules are rules for the working nodes corresponding to the traffic behavior rules to execute traffic receiving and sending behaviors; The traffic simulation node occupies less resources than the real working node; The execution engine module is used to drive the execution of the traffic behavior rules of the traffic simulation node.
16. The system according to claim 15, It is characterized in that The traffic behavior rule module stores the traffic behavior rules in the form of low code or zero code.
17. The computer system according to any one of claims 15 to 16, It is characterized in that The traffic simulation node is further configured with at least one state cache module, and the state cache module is used to cache state information of the traffic simulation node, and different state information corresponds to different traffic behavior rules.
18. A system according to any one of claims 15 to 17, It is characterized in that The traffic behavior rules include one or more of the following: Passive response rules, proxy forwarding rules, active request rules, event definition rules, and state cache rules.
19. The system according to any one of claims 15 to 18, It is characterized in that The computer system also includes at least one event simulation module, which is used to simulate at least one flow change event, and the flow change event includes: flow burst, flow surge, flow fluctuation, and flow drop.
20. A computing device cluster, It is characterized in that The system comprises at least one computing device, each computing device comprising a processor and a memory. The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.
21. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 8.
22. A computer-readable storage medium, It is characterized in that The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.
