Digital modeling device, digital model driving method and device, equipment and medium
Through the component module and connector module of the digital modeling device, digital modeling of general information systems is realized, which solves the problem of insufficient modeling capabilities in the existing technology, increases flexibility and scalability, and is suitable for information The system's digital twin and wider application scenarios.
Patent Information
- Application Number
- CN202411280702.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-27
AI Technical Summary
Existing digital twin technologies are difficult to achieve modeling support for general information systems, and lack flexibility and scalability.
By designing digital modeling devices, including component modules and connector modules, component modules are used to map components in the information system, and connector modules are used to map relationship types between components, and digital for general information systems is realized Modeling. The component module contains state paragraphs, data paragraphs, and method paragraphs for recording and manipulating the status and information of components.
It realizes non-customized modeling support for general information systems, increases modeling flexibility and scalability, and provides the function of manipulating and monitoring information systems, which is suitable for a wider range of application scenarios.
Smart Images

Figure CN119206067A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information technology, and in particular relates to a digital modeling device, a driving method, a device, a equipment and a medium for a digital model. Background Art
[0002] Digital twins are virtual digital replicas of objects or systems in the physical world created using digital technology. Digital twins were first proposed and applied in the field of industrial production. In recent years, with the development of technologies such as the Internet of Things, 5G, and cloud computing, related technologies have developed rapidly and their application scope has continued to expand. In the field of information technology, the advantages of applying digital twins to the monitoring, fault diagnosis, and operation and maintenance management of large and complex information system groups have been widely recognized, and related research work has attracted much attention.
[0003] When realizing the digital twin of an information system, modeling of the information system is an essential part. The basis for modeling an information system is the digital modeling of various software components with independent functions that constitute the information system. In existing digital twin technology solutions, the modeling capabilities are often limited, and it is difficult to achieve modeling support for general information systems. Therefore, how to design a method to increase the flexibility and scalability of modeling in a non-customized way to support the modeling support of general information systems is a technical problem that needs to be solved at present. Summary of the invention
[0004] The embodiments of the present application provide a digital modeling device, a driving method, a device, a equipment and a medium for a digital model, which can solve the technical problem of how to realize modeling of a general information system.
[0005] In a first aspect, an embodiment of the present application provides a digital modeling device, comprising:
[0006] The component module includes multiple components, which are used to map components in the information system; the component has a status section, a data section and a method section; the status section is used to record the status of the component mapped by the component; the data section is used to record the running information of the component; the method section is used to represent the entry of the component to manipulate and monitor the component;
[0007] The connector module includes a variety of component connectors, which are used to map the relationship types between multiple components in the information system and to connect multiple components to generate a digital model of the information system.
[0008] In one possible implementation, the plurality of components include at least one collective component;
[0009] The collection component includes a plurality of member components, the member components are used to map subcomponents in the component, and the member components include a member status paragraph, a member data paragraph and a member method paragraph;
[0010] The member status section is used to record the status of the subcomponents mapped by the member component; the member data section is used to record the running information of the member component; the member method section is used to represent the entry of the member component to manipulate and monitor the subcomponents;
[0011] Among them, multiple member components affect the state paragraph and the data paragraph, and the method paragraph is also used to call the member method paragraph of the member component when the collective component manipulates and monitors the component.
[0012] In one possible implementation, a preset member component determines the validity of a collection component.
[0013] In one possible implementation, the collective component includes a cluster-type composite component;
[0014] A cluster type composite component includes a plurality of similar member components; in the cluster type composite component, when a preset member component is valid, the cluster type composite component is valid;
[0015] And / or, the aggregate component includes a constituent composite component, in which a plurality of member components are related via component connectors, and if one member component fails, the constituent composite component fails.
[0016] In a feasible implementation, the collective component includes a combined component; in the combined component, at least two member components are connected by a connector.
[0017] In one possible implementation, the multiple component connectors include at least one of the following:
[0018] One-way data connectors, used to map one-way data flows between two components in an information system;
[0019] Relying on connectors, it is used to map the operational dependency of one component on another component in the information system;
[0020] Interconnectors are used to map the bidirectional physical connection relationships between components in an information system;
[0021] Convergence connectors are used to map the data convergence relationship between multiple components in an information system and another component.
[0022] In a second aspect, an embodiment of the present application provides a method for driving a digital model, wherein the digital model is modeled using a modeling device provided by any aspect of the embodiment of the present application, and the method includes:
[0023] Launch digital models;
[0024] The operation data of each component is obtained one by one through each component, and the status field of the corresponding component is updated.
[0025] In an achievable implementation, after updating the status field of the corresponding component, the method further includes:
[0026] When the status field update of a component can trigger the status change of other components related to it, update the status of other components;
[0027] In the case where the updated status field is passed to other components related thereto through the component connector component, the status of other components is updated.
[0028] In a third aspect, an embodiment of the present application provides a driving device for a digital model, wherein the digital model is modeled using a modeling device provided by any aspect of the embodiment of the present application, and the driving device comprises:
[0029] A startup module, used to start the digital model;
[0030] The acquisition module is used to obtain the operation data of each component through each component one by one;
[0031] The update module is used to update the status field of the corresponding component.
[0032] In one possible implementation, the update module is further used for:
[0033] When the status field update of a component can trigger the status change of other components related to it, update the status of other components;
[0034] In the case where the updated status field is passed to other components related thereto through the component connector component, the status of other components is updated.
[0035] In a fourth aspect, an embodiment of the present application provides a driving device for a digital model, the device comprising:
[0036] A processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the driving method of the digital model provided in any aspect of the embodiments of the present application.
[0037] In a fifth aspect, an embodiment of the present application provides a computer storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, a driving method for a digital model provided in any aspect of the embodiment of the present application is implemented.
[0038] In a sixth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the driving method of the digital model provided by any aspect of the embodiment of the present application.
[0039] The digital modeling device provided by the embodiment of the present application provides tools for users to map various components in the information system by setting a component module including a variety of components, and provides tools for mapping various component relationship types by setting a connector module. When the user uses the digital modeling device provided by the embodiment of the present application to digitally model the target information system, the various components in the component module can be called to map the various components in the target information system. Then, according to the relationship type between the various components in the target information system, the corresponding component connector is called to connect the various components called by the user, so as to realize the digital modeling of the target information system, that is, to realize the digital twin of the target information system. Moreover, in the component, it also includes a state paragraph, a data paragraph and a method paragraph. The state paragraph corresponds to the expression of the component state, the data paragraph expresses the data (information) of the component operation, and the method paragraph expresses the method used by the component when manipulating or monitoring the component. These three paragraphs are used by users when the component is running. For example, the state paragraph will provide the user with the running status of the component, the data paragraph will let the user know the various information of the component in operation (such as the running log of the component), and the method paragraph will provide the user with the entrance to manipulate and monitor the corresponding component with the help of the component. Thus, users can observe the components through the status section and the data section, and call specific functions (functions) through the method section to manipulate and monitor the corresponding components.
[0040] Therefore, the digital modeling device provided in the embodiment of the present application can digitally model the general information system through various components and connectors. Therefore, the digital modeling device provided in the embodiment of the present application realizes the modeling support for the general information system in a non-customized manner, which increases the flexibility and scalability of modeling. And the digital model built by the digital modeling device provided in the embodiment of the present application can also provide users with the functions of manipulating and monitoring the corresponding information system. In addition, in addition to being applicable to the digital twin of the information system, the digital modeling device provided in the embodiment of the present application is also suitable for a wider range of application scenarios related to information system modeling, and therefore has a wider range of practical application value. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0042] Figure 1It is a structural schematic diagram of a component provided in an embodiment of the present application;
[0043] Figure 2 It is a schematic diagram of the mapping relationship between components of a digital model and components of an information system provided in an embodiment of the present application;
[0044] Figure 3 It is a structural diagram of the mapping relationship between basic components and assemblies in the embodiment of the present application;
[0045] Figure 4 It is a schematic diagram of the structural relationship between the basic components, composite components and combined components provided in the embodiments of the present application;
[0046] Figure 5 It is a structural schematic diagram of a MySQL cluster and its cluster-type composite component provided in an embodiment of the present application;
[0047] Figure 6 It is a structural schematic diagram of a server rack and its constituent composite components provided in an embodiment of the present application;
[0048] Figure 7 It is a flowchart of a driving method of a digital model provided in an embodiment of the present application;
[0049] Figure 8 It is a partial flow chart of another method for driving a digital model provided in an embodiment of the present application;
[0050] Fig. 9 It is a structural schematic diagram of a driving device of a digital model provided in an embodiment of the present application;
[0051] Fig.10 It is a schematic diagram of a scenario structure of an information system provided by an embodiment of the present application;
[0052] Fig.11 yes Fig.10 The information system shown is a schematic diagram of the structure of a digital model obtained by the digital modeling device provided by the embodiment of the present application;
[0053] Fig.12 It is a structural schematic diagram of a digital model driving device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0055] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0056] The information system recorded in the embodiments of the present application refers to an IT system (information technology system). Modern information systems are generally developed and deployed in a componentized manner, in which components refer to components with independent functions, including various commonly used middleware, databases, gateways, reverse proxies, etc. The basis for modeling an information system is to digitally model these components that constitute the information system. After the components in the information system are digitally modeled, the components of the digital twin platform of the information system can be obtained. By assembling and stacking the components, a digital twin platform corresponding to the real IT system is built.
[0057] At present, the industry's main focus on application system modeling is on conceptual models, that is, using a set of tools with standard semantics and representations to create a model that describes the functional flow of an application system and / or characterizes its internal operating mechanism. The direct output of modeling is usually a series of documents. Commonly used modeling tools of this type include SysML, UML, etc. In addition, some modeling technologies focus on the business domain and specific business forms of the application system, which has led to various terms such as domain modeling, business modeling, and more basic data modeling. Such models are used to describe and characterize information related to the domain, business, and data flow of the application system; using some technologies, such models can be converted into executable program code to achieve the purpose of improving the efficiency of business function design and development.
[0058] Different from the above-mentioned modeling methods in the industry, in order to solve the technical problem of how to achieve the modeling of a general information system, the present application provides a digital modeling device for an information system. In addition, considering the technical problem of how to allow users to observe and control the information system, the digital model of the mapped information system obtained by the digital modeling device provided by the present application can be used to manipulate and monitor the information system.
[0059] The present application embodiment provides a Figure 1 The digital modeling device 100 shown includes:
[0060] The component module 150 includes a plurality of components 140, wherein the components 140 are used to map components in the information system; the components 140 have a state section 110, a data section 120, and a method section 130; the state section 110 is used to record the state of the component mapped by the component 140; the data section 120 is used to record the operation information of the component 140; the method section 130 is used to represent the component 140 to manipulate and monitor the entry of the component;
[0061] The connector module 150 includes a plurality of component connectors 160 . The component connectors 160 are used to map the relationship types between a plurality of components in the information system and to connect a plurality of the components 140 to generate a digital model of the information system.
[0062] The digital modeling device 100 provided in the embodiment of the present application provides a tool for users to map various components in the information system by setting a component module 150 including multiple components 140, and provides a tool for mapping various component relationship types by setting a connector module 150. Figure 1The digital modeling device 100 shown is only for example, and the component module 150 may include multiple components 140 to correspond to different components in the information system. When the user uses the digital modeling device 100 provided in the embodiment of the present application to digitally model the target information system, the various components 140 in the component module 150 can be called to map the various components in the target information system. Then, according to the relationship type between the various components in the target information system, the corresponding component connector 160 is called to connect the various components 140 called by the user, thereby realizing the digital modeling of the target information system, that is, realizing the digital twin of the target information system. Moreover, the component 140 also includes a state paragraph 110, a data paragraph 120 and a method paragraph 130. These three paragraphs are as follows Figure 1 As shown, the status paragraph 110 corresponds to the expression of the status of the component 140, the data paragraph 120 expresses the data (information) of the component 140 operation, and the method paragraph 130 expresses the method used by the component 140 when manipulating or monitoring the component. These three paragraphs are used by the user when the component 140 is running. For example, the status paragraph 110 will provide the user with the running status of the component 140, the data paragraph 120 will let the user know various information of the component 140 during operation (such as the running log of the component), and the method paragraph 130 will provide the user with an entry to manipulate and monitor the corresponding component with the help of the component 140. Therefore, the user can observe the component 140 through the status paragraph 110 and the data paragraph 120, and call specific functions (functions) through the method paragraph 130 to manipulate and monitor the corresponding component.
[0063] In summary, the digital modeling device 100 provided in the embodiment of the present application performs digital modeling of a general information system by setting various components 140 and connectors 150. Therefore, the digital modeling device 100 provided in the embodiment of the present application realizes the modeling support for the general information system in a non-customized manner, which increases the flexibility and scalability of the modeling. And the digital model built by the digital modeling device 100 provided in the embodiment of the present application can also provide users with the functions of manipulating and monitoring the corresponding information system. In addition, in addition to being applicable to the digital twin of the information system, the digital modeling device 100 provided in the embodiment of the present application is also suitable for a wider range of application scenarios related to information system modeling, and therefore has a wider range of practical application value.
[0064] Specifically, for example, Figure 2 In the scenario shown, the user can regard the production environment as the target information system and the MySQL cluster component 220 as a single component. After determining this component, the user can obtain the corresponding MySQL component 210. If the production environment also includes other components, the user can associate different components through component connectors to establish a digital model corresponding to the production environment.
[0065] Specifically, Figure 1 The component module 150 shown may include various relatively simple components 140, corresponding to relatively simple components in the information system. Figure 3 As shown, the components may include Mysql database node 310, Nginx (single point) 320 and Java application (single point) 330; accordingly, the various components 140 may include Mysql node component 340, Nginx component 350 and Java application component 360, so that users can directly model these relatively simple basic components.
[0066] In an information system, there may be relatively complex components, such as a component that includes multiple subcomponents with their own functions. For example, the MySQL cluster component 220 may include multiple Mysql database nodes, and each Mysql database node is regarded as a subcomponent. Although these subcomponents can be modeled by corresponding simple components, in order to facilitate user modeling, in some embodiments of the present application, such as Figure 1 The component module 150 shown may also include a collection component. The collection component includes multiple member components, which are used to map subcomponents in the component. The member component includes a member status paragraph, a member data paragraph, and a member method paragraph. The member status paragraph is used to record the status of the subcomponent mapped by the member component; the member data paragraph is used to record the running information of the member component; and the member method paragraph is used to represent the entry of the member component to manipulate and monitor the subcomponent. Among them, multiple member components affect the status paragraph and the data paragraph, and the method paragraph is also used to call the member method paragraph of the member component when the collection component manipulates and monitors the component.
[0067] In the user's modeling process, the user can first determine the target component in the target information system, including the subcomponents, and then call the corresponding collective component in the digital modeling device to model the target component. This avoids the need for the user to model each subcomponent, thereby increasing the convenience of user modeling. Moreover, the collective component can be regarded as a whole to establish a connection with other components.
[0068] Specifically, see Figure 4 , the assembly component may include a composite component 420 and a combined component 430, such as Figure 3 The simple components such as the Mysql node component 340 shown correspond to Figure 4 The basic component 410 is shown. The basic component 410 can be used as a member component in the composite component 420, and in the composite component 430, both the basic component 410 and the composite component 420 can appear as member components. The collection component can also include a component connector to connect the corresponding member components, so that the relationship between the member components in the collection component can conform to the relationship between subcomponents in the real information system.
[0069] After the user completes the digital modeling of the target information system using the collection component, the user may use the collection component to manipulate or monitor the corresponding target component. Therefore, the user will use the method paragraph of the collection component to achieve the above operations. In this process, the user may call a specific member component in the collection component. Therefore, the setting of the method paragraph will find the specific member component to be called through the data paragraph after receiving the user's instructions, and call the member method paragraph of the specific member component to achieve the final manipulation or monitoring of the target component.
[0070] In some embodiments of the present application, the preset member component determines the validity of the collection component. Figure 5 and Figure 6 Give examples of assembly components.
[0071] Specifically, see Figure 5 In some embodiments of the present application, the set component may include a cluster type composite component. The cluster type composite component includes a plurality of similar member components. In the cluster type composite component, when a preset number of member components are valid, the cluster type composite component is valid.
[0072] The relationship between the member components in the cluster type composite component can be, for example, active / standby or load sharing. The state of the cluster type composite component is determined by the state of the member components therein. For example, a multi-node MySQL cluster, a multi-node Nginx cluster, etc. Figure 5 The MySQL cluster shown includes multiple Mysql nodes 510. In the MySQL cluster, when all Mysql nodes fail, the MySQL cluster will fail. That is, the preset member components include all Mysql node components in the MySQL cluster. In the digital modeling device provided in the embodiment of the present application, which member components are preset in the cluster type composite component can be set by presetting or adjusting. Similarly, for example, in the MySQL cluster, when two Mysql node components fail, it can be determined that the MySQL cluster fails.
[0073] See also Figure 6 In some embodiments of the present application, the collective component may include a constituent composite component, in which multiple member components establish relationships through component connectors, and if one member component fails, the constituent composite component fails.
[0074] A composite component can also be considered as a whole and is associated with other components through component connectors. In a composite component, each component has its own function, and these components are associated with each other to perform a specific function together. Therefore, if a component in a composite component fails, the function is lost.
[0075] Figure 6 The example given is a composite component of a server rack 640. In a real server rack 640, a power supply and a switch are included, and the power supply supplies power to the switch so that the switch can operate. Accordingly, the component corresponding to the server rack 640 is a server rack composite component 610. In the server rack composite component 610, a built-in switch component 630 and a power module component 620 are included. The power module component 620 is connected to the built-in switch component 630 through a component connector, and such a connection relationship represents that the power module component 620 supplies power to the built-in switch component 630. Therefore, whether it is a built-in switch failure or a power module failure, the entire rack is unavailable.
[0076] The above two composite components can be regarded as a container for components. Composite components do not necessarily correspond to real components of business systems. The state of a composite component is determined by the state of the member components it contains. The above various composite components can correspond well to various components in real information systems, and are convenient for quickly calling components corresponding to complex components. The validity judgment of different composite components can also be different, and can provide users with adjustment space. At the same time, the use of composite components does not have to completely correspond to the real information system. Therefore, the setting of composite components provides users with greater flexibility in building digital models.
[0077] The component module may also include various combined components 430, in which at least two member components are connected by a connector. Figure 6 The server rack assembly type composite component 610 shown can be regarded as a type of composite component 430. A more complex composite component can be composed of a basic component 410 and a composite component 420, and the basic component 410 and the composite component 420 can also be connected, for example, by a component connector.
[0078] The combined component 430 is a model composed of components and component connectors. No matter whether its structure is simple or complex, it can be packaged as a combined component 430 and become a new component for use in modeling after packaging.
[0079] Composite components can be sent to others through the network, or they can be pre-stored in any device and called by other users in the form of software modules. Composite components have a common component structure, and the way to use composite components is the same as using other components. Composite components realize self-maintenance of internal states and data, so users do not need to care about their internal topology and implementation methods. For example, when modeling cross-system service calls, the service provider can encapsulate a public service into a composite component and hand it over to the service caller for use in its modeling.
[0080] In some embodiments of the present application, the number of set components may be multiple, and the multiple set components included therein correspond to various complex components. The set components may include various composite components and combined components as described above. During the use of the digital modeling device, after the user completes the modeling of the target information system, the user may also encapsulate the obtained digital model into a component for subsequent use by himself or others.
[0081] In some embodiments of the present application, the multiple component connectors include at least one of the following:
[0082] One-way data connectors, used to map one-way data flows between two components in an information system;
[0083] Relying on connectors, it is used to map the operational dependency of one component on another component in the information system;
[0084] Interconnectors are used to map the bidirectional physical connection relationships between components in an information system;
[0085] Convergence connectors are used to map the data convergence relationship between multiple components in an information system and another component.
[0086] Each of the above-mentioned component connectors corresponds to a basic relationship type between components, so that the component connector can cover various relationships between components in the information system, which helps to ensure the applicability of the digital modeling method of the information system provided by the embodiment of the present application. Of course, in the embodiment of the present application, multiple component connectors as above can also be combined and used together, so that like the combined component, it is convenient for users to directly call them in a complex modeling process.
[0087] Specifically, a one-way data connector is used to identify the one-way data flow between two components. Usage scenarios include: API interface calls, business data flows on the network, etc. The component status transmission rule on this connector is: if the component on the target end of the connector fails, the component on the source end of the connector will fail; otherwise, there will be no impact.
[0088] Dependency connectors are used to identify a one-way dependency relationship between two components. For example, component 2 runs on component 1. If the process or container (component 2) on the server (component 1) fails, it will not affect the status of the server; but if the server (component 1) fails, the process or container (component 2) on it will fail.
[0089] Interconnects are used for physical connections between devices in a network. The state update direction of the components connected at both ends of a bidirectional physical connector is bidirectional. That is, if the state of either end of the interconnect fails, the state of the other end also fails. For example, the physical link between two network devices can be described using a bidirectional physical connector.
[0090] The convergence type component connector is used to converge traffic in the network. The lower end and upper end of the convergence type component connector are many-to-one. For example, multiple terminals (lower ends) are connected (for example, through a wireless network) to a base station (upper end). If the upper end fails, the status of all lower ends will fail. The failure of any one or more lower ends will not affect the status of the upper end.
[0091] The user can realize the modeling of the target information system through any one of the digital modeling devices provided in the embodiments of the present application, and after the modeling is completed, the obtained digital model can be driven, and the target information system can be manipulated and monitored through the digital model.
[0092] Therefore, the embodiment of the present application also provides a driving method of a digital model. The digital model is modeled by using the modeling device provided in any of the above embodiments, and the method is as follows: Figure 7 As shown, including:
[0093] S701, start the digital model;
[0094] S702: Obtain the operation data of each component through each component one by one, and update the status field of the corresponding component.
[0095] In the above method, the update of each component to its own paragraph can be, for example, a repetitive (e.g., periodic) action, and since the component has a method paragraph, the user can also manipulate and monitor the target information system through the method paragraph, so real-time data intercommunication can be achieved between the digital model and the target information system. Of course, in some special cases, such as artificial termination of the operation of the digital model or a pre-set operation time, the update of the component to its own paragraph can be a single time. But no matter what the situation, the driving method of the digital model provided in the embodiment of the present application provides the user with a window to know the operating status, cause of failure, etc. of the target information system. Moreover, in the embodiment of the present application, the component can also send data to the component through the method paragraph, thereby affecting the operation of the component, thereby providing a technical means for the user to control the components in the information system through the component.
[0096] In some embodiments of the present application, Figure 8 As shown, after updating the status field of the corresponding component, the method further includes:
[0097] S801, when the update of the status field of a component can trigger the change of the status of other components related to it, update the status of other components;
[0098] S802: When the updated status field is transmitted to other components related thereto through the component connector component, the status of other components is updated.
[0099] In the above-mentioned monitoring method of the information system, after each component updates itself, it will further transmit some of its own data to the components that can trigger it, thereby reflecting the data flow and / or correlation between the components. For example, the software is built on the hardware, and the hardware may affect the operation of the software after updating its own status. Each component not only monitors the components mapped by itself, but the data flow between different components makes the overall digital model evolve over time. Users can discover problems in the correlation between different components in the information system by checking the operation of the digital model.
[0100] Accordingly, if Fig. 9 As shown, the embodiment of the present application further provides a driving device for a digital model. The digital model is modeled by a modeling device provided in any of the above embodiments, and the driving device includes: a starting module 910 , an acquisition module 920 and an update module 930 .
[0101] The start module 910 is used to start the digital model. The acquisition module 920 is used to acquire the operation data of each component through each component one by one. The update module 930 is used to update the status field of the corresponding component.
[0102] In some embodiments of the present application, in the driving device of the digital model, the update module 930 is also used to update the status of other components when the update of the status field of the component can trigger a change in the status of other components related to it; and to update the status of other components when the updated status field is passed to other components related to it through the component connector component.
[0103] The method for using the driving device of the digital model provided in the embodiment of the present application is a device corresponding to the driving method of the digital model. All implementations in the above method embodiment are applicable to the embodiment of the device and have the same technical effects.
[0104] Specifically, in the embodiment of the present application, the modeling process of the target information system is to connect components and component connectors into a directed graph, and the directed graph has the same topological structure as the target information system. The following is an example of the scene application of the digital modeling device and the driving method of the digital model provided in the embodiment of the present application.
[0105] See first Fig.10 , showing a network and server scenario. The information system includes two switches (Sw-1 and Sw-2), which are interconnected through dual physical links. The switch runs two network protocols (Prot1 and then Prot2) on the link. Prot1 is responsible for forwarding common business traffic, and Prot2 is responsible for specific proprietary business traffic. Sw-1 and Sw-2 are connected to one host machine in two different racks respectively. Each host machine runs several virtual machines. The virtual machines are managed by Paas (Platform as a service). Each Pod runs on two virtual machines. The virtual machine is, for example, a server. Paas services are deployed on the network and server, including several master nodes (Master) and slave nodes (Node). Based on the above Paas service, the following business functions are constructed: Pod-01 calls Pod-02, and then calls Pod-03 through the Prot-1 protocol; and Pod-01 calls Pod-02, and then calls Pod-04 through Prot-2.
[0106] Based on the above Fig.10 The application scenario of the network and server shown in the figure is modeled by the digital modeling device provided in the embodiment of the present application for the above application scenario, that is, the information system, and the following is obtained: Fig.11 The digital model is shown. Fig.11 In the digital model shown, different rectangles represent different types of components, and the components are connected using component connectors to obtain a mapping. Fig.10 Digital model of the information system shown.
[0107] Among them, switches Sw-1 and Sw-2 have two network cards (Nic-1 and Nic-2) respectively, and the network cards Nic-1 and Nic-2 form a cluster-type composite component. The two switches Sw-1 and Sw-2 are connected to the network through the above-mentioned network cards, and the two switches Sw-1 and Sw-2 form a composition-type composite component. Protocol 1 and Protocol 2 run on the two switches Sw-1 and Sw-2 by relying on connectors. The four racks (Rack-01sBox, Rack-02, Rack-03 and Rack-04) respectively include four servers (ECS-011, ECS-012, ECS-013 and ECS-014), corresponding to the above-mentioned virtual machines. The master node included in the Paas service is, for example, a K8s master node (K8s Master), and multiple K8s master nodes form a cluster-type composite component, and correspondingly, a slave node (Node) runs on each server. Pod-01 to Pod-04 run in the slave nodes and perform business functions, such as Fig.11 Business 01 and business 02 shown correspond to the business functions constructed by the above-mentioned Paas service.
[0108] In e.g. Fig.11 After the digital model shown is built, the user can start the digital model. Fig.11 Each component shown, for example, periodically obtains data such as operating indicators on the corresponding component side. Each component uses the obtained operating indicators and other data to perform calculations and update its own status paragraph. Moreover, the update of the component status paragraph may trigger a change in the state of the composite component or combined component related to it, so the status paragraph and data paragraph of the composite component or combined component are updated; for example, it is iteratively passed to other components related to it through the component connector, thereby updating the status paragraph and data paragraph of these components. Repeat the above periodic process until the digital model stops. By observing the above digital model, the user can observe the operating status of the corresponding information system, thereby finding out the existing fault points and links that may be affected.
[0109] Fig.12 The hardware structure diagram of the driving device of the digital model provided in the embodiment of the present application is shown. The driving device of the digital model may include a processor 1210 and a memory 1220 storing computer program instructions. The processor reads and executes the computer program instructions to implement the driving method of the digital model provided in any of the above embodiments.
[0110] Specifically, the processor 1210 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0111] The memory 1220 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1220 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 1220 may include a removable or non-removable (or fixed) medium, or the memory 1220 is a non-volatile solid-state memory. The memory 1220 may be inside or outside the integrated gateway disaster recovery device.
[0112] In one example, the memory 1220 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.
[0113] The memory 1220 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0114] The processor 1210 implements the driving method of the digital model in the embodiment of the present application by reading and executing the computer program instructions stored in the memory 1220 .
[0115] In one example, the driving device of the digital model may further include a communication interface 1230 and a bus 1240. Figure 3 As shown, the processor 1210, the memory 1220, and the communication interface 1230 are connected via a bus 1240 and communicate with each other.
[0116] The communication interface 1230 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0117] Bus 1240 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1240 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0118] In addition, in combination with the digital modeling method of the information system in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the driving methods of the digital model in the above embodiment is implemented.
[0119] An embodiment of the present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the driving method of the digital model provided in any of the above embodiments.
[0120] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0121] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0122] An embodiment of the present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the information system modeling method provided by any aspect of the embodiment of the present application.
[0123] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0124] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0125] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A digital modeling device, characterized in that: include: A component module, including a plurality of components, wherein the components are used to map components in an information system; The component has a state section, a data section and a method section; the state section is used to record the state of the component mapped by the component; The data segment is used to record the operation information of the component; The method paragraph is used to manipulate and monitor the entry of the component on behalf of the component; The connector module includes a plurality of component connectors, wherein the component connectors are used to map the relationship types between a plurality of components in the information system and to connect a plurality of the components to generate a digital model of the information system.
2. The digital modeling device according to claim 1, characterized in that: The plurality of components include at least one collective component; The collection component includes a plurality of member components, the member components are used to map the subcomponents in the component, and the member components include a member status section, a member data section and a member method section; The member status paragraph is used to record the status of the subcomponent mapped by the member component; the member data paragraph is used to record the operation information of the member component; the member method paragraph is used to represent the member component to manipulate and monitor the entry of the subcomponent; The multiple member components affect the state paragraph and the data paragraph, and the method paragraph is also used to call the member method paragraph of the member component when the collection component manipulates and monitors the component.
3. The digital modeling device according to claim 2, characterized in that: The preset member components determine the validity of the set component.
4. The digital modeling device according to claim 2, characterized in that: The collective component includes a cluster type composite component; The cluster type composite component comprises a plurality of similar member components; In the cluster type composite component, when a preset number of the member components are valid, the cluster type composite component is valid; And / or, the collective component comprises a constituent composite component, in which the plurality of member components are related via the component connector, and if one of the member components fails, the constituent composite component fails.
5. The digital modeling device according to any one of claims 2 to 4, characterized in that: The collective component includes a combined component; In the combined component, at least two of the member components are connected by a connector.
6. The digital modeling device according to claim 1, characterized in that: The plurality of component connectors include at least one of the following: One-way data connectors, used to map one-way data flows between two components in an information system; Relying on connectors, it is used to map the operational dependency of one component on another component in the information system; Interconnectors are used to map the bidirectional physical connection relationships between components in an information system; Convergence connectors are used to map the data convergence relationship between multiple components in an information system and another component.
7. A method for driving a digital model, characterized in that: The digital model is modeled by using the modeling device according to any one of claims 1 to 6, and the method comprises: starting the digital model; The operation data of each component is obtained through each component in a one-to-one correspondence, and the status field of the corresponding component is updated.
8. The driving method according to claim 7, characterized in that: After the updating of the status field corresponding to the component, the method further comprises: In the case where the update of the status field of the component can trigger the change of the status of other components related thereto, updating the status of the other components; When the updated state field is transmitted to other components related thereto through the component connector component, the states of the other components are updated.
9. A driving device for a digital model, characterized in that: The digital model is modeled by a modeling device according to any one of claims 1 to 6, and the driving device comprises: A startup module, used for starting the digital model; An acquisition module, used for acquiring the operation data of each component through each component in a one-to-one correspondence; The updating module is used to update the status field corresponding to the component.
10. The driving device of the digital model according to claim 9, characterized in that: The update module is also used for: In the case where the update of the status field of the component can trigger the change of the status of other components related thereto, updating the status of the other components; When the updated state field is transmitted to other components related thereto through the component connector component, the states of the other components are updated.
11. A driving device for a digital model, characterized in that: The device comprises: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the driving method of the digital model as claimed in claim 7 or 8.
12. A computer-readable storage medium, characterized in that: The computer storage medium stores computer program instructions, which, when executed by a processor, implement the driving method of the digital model as claimed in claim 7 or 8.
13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the driving method of the digital model as claimed in claim 7 or 8.
