Redundant architecture virtual machine creation method and device for rail transit
By querying the redundant architecture data table to obtain target parameters and determine the computing nodes, the efficient one-time creation of the rail transit virtual machine redundant architecture is achieved, solving the problems of cumbersome operations and low efficiency in existing technologies.
Patent Information
- Application Number
- CN202510882274.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-26
AI Technical Summary
In the existing technology, the creation of a redundant architecture for rail transit virtual machines is cumbersome and inefficient. It needs to be created one by one and cannot be completed in one go.
By querying the redundant architecture data table based on the identity information of the target redundant architecture to obtain target parameters, the first target computing node is determined, and a virtual machine creation request is sent to the first target computing node to achieve the creation of multiple virtual machines at one time.
This simplifies the creation of redundant architecture virtual machines, improves creation efficiency, and avoids the waiting process of creating each machine one by one.
Smart Images

Figure CN120704806A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of cloud computing technology, and in particular relates to a method and device for creating a redundant architecture virtual machine for rail transit. Background Art
[0002] In rail transit applications, redundant virtual machine scheduling requires establishing a host group and setting its affinity policy to anti-affinity. Multiple identical virtual machines are then created within the host group. This involves waiting for the first virtual machine to be created before creating the second; waiting for the second to be created before creating the third; and so on, until the Nth virtual machine is created. N is the number of virtual machines in the host group. This process is quite cumbersome. Summary of the Invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a method and apparatus for creating a redundant architecture virtual machine for rail transit, which can simplify the operation of creating a redundant architecture virtual machine for rail transit and improve the efficiency of creating a redundant architecture virtual machine for rail transit.
[0004] In a first aspect, the present application provides a method for creating a redundant architecture virtual machine for rail transit, the method comprising:
[0005] Based on the identity information of the target redundant architecture, querying the configured redundant architecture data table to obtain target parameters of the target redundant architecture; the target redundant architecture includes multiple virtual machines for rail transit;
[0006] Determining, based on target parameters of the target redundant architecture, a first target computing node for creating the target redundant architecture;
[0007] A virtual machine creation request is sent to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
[0008] According to the redundant architecture virtual machine creation method for rail transit of the present application, target parameters of the target redundant architecture are obtained based on the identity information of the target redundant architecture, and the first target computing node is determined based on the target parameters of the target redundant architecture. The first target computing node sends a virtual machine creation request so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request. A method for creating a virtual machine of a specified redundant architecture in one go can be provided, without the need to create a host group or to wait until the previous virtual machine is created before creating the next virtual machine. This can simplify the operation of creating redundant architecture virtual machines for rail transit and improve the efficiency of creating redundant architecture virtual machines for rail transit.
[0009] According to one embodiment of the present application, querying a configured redundant architecture data table based on the identity information of the target redundant architecture to obtain target parameters of the target redundant architecture includes:
[0010] Receive a first input, and obtain identity information of the target redundant architecture carried by the first input;
[0011] Based on the identity information of the target redundant architecture, a redundant architecture data table in a target database is queried to obtain target parameters of the target redundant architecture.
[0012] According to one embodiment of the present application, determining the first target computing node for creating the target redundant architecture based on the target parameters of the target redundant architecture includes:
[0013] Querying a list of computing nodes in the target database, and determining, for each virtual machine included in the target redundant architecture, one or more second target computing nodes for creating each virtual machine;
[0014] The first target computing node among the second target computing nodes is determined based on target parameters of the target redundant architecture.
[0015] According to one embodiment of the present application, sending a virtual machine creation request to the first target computing node includes:
[0016] Determining, based on target parameters of the target redundant architecture, a correspondence between each virtual machine included in the target redundant architecture and each first target computing node;
[0017] The virtual machine creation request for creating a virtual machine corresponding to the first target computing node is sent to each of the first target computing nodes respectively.
[0018] According to an embodiment of the present application, before querying the configured redundant architecture data table based on the identity information of the target redundant architecture to obtain the target parameters of the target redundant architecture, the method further includes:
[0019] In response to the second input, the redundant schema data table is created in the target database.
[0020] According to one embodiment of the present application, the method further includes:
[0021] In response to a third input, an edit operation is performed on the redundant architecture data table.
[0022] In a second aspect, the present application provides a redundant architecture virtual machine creation device for rail transit, the device comprising:
[0023] An acquisition module is configured to query a configured redundant architecture data table based on the identity information of a target redundant architecture to obtain target parameters of the target redundant architecture; the target redundant architecture includes a plurality of virtual machines for rail transit;
[0024] a determination module, configured to determine a first target computing node for creating the target redundant architecture based on target parameters of the target redundant architecture;
[0025] The sending module is configured to send a virtual machine creation request to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
[0026] According to the redundant architecture virtual machine creation device for rail transit of the present application, the target parameters of the target redundant architecture are obtained by querying the configured redundant architecture data table based on the identity information of the target redundant architecture, and the first target computing node is determined based on the target parameters of the target redundant architecture. The first target computing node sends a virtual machine creation request so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request. A method for creating a virtual machine of a specified redundant architecture in one go can be provided, without the need to create a host group or to wait until the previous virtual machine is created before creating the next virtual machine. This can simplify the operation of creating a redundant architecture virtual machine for rail transit and improve the efficiency of creating a redundant architecture virtual machine for rail transit.
[0027] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the method for creating a redundant architecture virtual machine for rail transit as described in the first aspect above.
[0028] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for creating a redundant architecture virtual machine for rail transit as described in the first aspect above.
[0029] In a fifth aspect, the present application provides a chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method for creating a redundant architecture virtual machine for rail transit as described in the first aspect.
[0030] In a sixth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method for creating a redundant architecture virtual machine for rail transit as described in the first aspect above.
[0031] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0033] Figure 1 This is a flow chart of a method for creating a redundant architecture virtual machine for rail transit provided by an embodiment of the present application;
[0034] Figure 2 This is a schematic diagram of the principle of the pre-scheduling link in the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application;
[0035] Figure 3 This is a schematic diagram of the principle of creating a redundant architecture data packet in the redundant architecture virtual machine creation method for rail transit provided by an embodiment of the present application;
[0036] Figure 4 This is a schematic diagram of the principle of a method for creating a redundant architecture virtual machine for rail transit provided in an embodiment of the present application;
[0037] Figure 5 This is a schematic diagram of the structure of a redundant architecture virtual machine creation device for rail transit provided by an embodiment of the present application;
[0038] Figure 6 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0040] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0041] Below, in combination with the accompanying drawings, the redundant architecture virtual machine creation method for rail transit, the redundant architecture virtual machine creation device for rail transit, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0042] Among them, the redundant architecture virtual machine creation method for rail transit can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
[0043] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that, in some embodiments, the terminal may not be a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).
[0044] In the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.
[0045] The embodiment of the present application provides a method for creating a redundant architecture virtual machine for rail transit. The execution subject of the method for creating a redundant architecture virtual machine for rail transit can be an electronic device or a functional module or functional entity in the electronic device that can implement the method for creating a redundant architecture virtual machine for rail transit. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablets, computers, cameras and wearable devices, etc. The following describes the method for creating a redundant architecture virtual machine for rail transit provided in the embodiment of the present application using an electronic device as an example of the execution subject.
[0046] Figure 1 This is a flow chart of a method for creating a redundant architecture virtual machine for rail transit provided by an embodiment of the present application. Figure 1 As shown, the method for creating a redundant architecture virtual machine for rail transit includes: step 110, step 120 and step 130.
[0047] Step 110: Based on the identity information of the target redundant architecture, query the configured redundant architecture data table to obtain target parameters of the target redundant architecture; the target redundant architecture includes multiple virtual machines for rail transit.
[0048] In actual implementation, the redundant architecture virtual machine creation method for rail transit provided in the embodiments of the present application can be implemented based on various cloud computing platforms (hereinafter referred to as "cloud platforms"). The embodiments of the present application do not limit the specific cloud computing platform used. In some embodiments, a cloud platform based on the OpenStack architecture can be used.
[0049] The physical architecture of the above-mentioned cloud computing platform can be composed of four major parts: control nodes, computing nodes, network nodes, and storage nodes. Among them, the control node can be used to control other nodes. The above-mentioned control functions may include controlling the establishment and migration of virtual machines, network allocation, and storage allocation. Computing nodes can be used for the operation of virtual machines. Network nodes can be used for communication between the external communication network and the internal communication network of the cloud computing platform. Storage nodes can be used to manage additional storage of virtual machines, etc. In some embodiments, the executor of the redundant architecture virtual machine creation method for rail transit provided in the embodiments of the present application can be the above-mentioned control node.
[0050] The target redundant architecture is the redundant architecture that requires scheduling. A redundant architecture is a design method for improving reliability in computer systems by adding backup components, and is primarily categorized as active and passive. In the various embodiments of this application, a redundant architecture refers to an architecture consisting of multiple virtual machines with a redundant number of virtual machines. The target redundant architecture can be an execution redundant architecture.
[0051] A correspondence between the identity information of each redundant architecture and the target parameters of the redundant architecture can be pre-established. Based on the correspondence, the target parameters of the redundant architecture corresponding to the identity information of the target redundant architecture, ie, the target parameters of the target redundant architecture, can be determined.
[0052] In some embodiments, the identity information of the redundant architecture can be used to uniquely identify the redundant architecture. The identity information of the redundant architecture can include at least one of a unique identity document (ID) of the redundant architecture and a unique name of the redundant architecture.
[0053] Target parameters for a redundant architecture include the number of virtual machines and virtual machine affinity. The number of virtual machines refers to the number of virtual machines included in the redundant architecture. Affinity indicates whether a virtual machine can be deployed on the same compute node as other virtual machines. A positive affinity indicates that the virtual machine can be deployed on the same compute node as other virtual machines. A negative affinity indicates that the virtual machine cannot be deployed on the same compute node as other virtual machines.
[0054] In some embodiments, a pre-configured redundant architecture data table may be used to store information about each redundant architecture. The redundant architecture information may include identity information and target parameters of the redundant architecture.
[0055] In some embodiments, each row in the redundant architecture data table can store the aforementioned identity information and target parameters of a redundant architecture. Therefore, each row in the redundant architecture data table can indicate the correspondence between the identity information of a redundant architecture and the target parameters of the redundant architecture.
[0056] In some embodiments, based on the identity information of the target redundant architecture, the redundant architecture data table is queried to determine which redundant architecture the target redundant architecture is and to determine target parameters of the target redundant architecture.
[0057] Step 120: Determine a first target computing node for creating the target redundant architecture based on target parameters of the target redundant architecture.
[0058] In actual implementation, based on target parameters of the target redundant architecture, one or more computing nodes can be selected from all computing nodes included in the cloud platform as first target computing nodes. The first target computing nodes can be used to create each virtual machine included in the target redundant architecture, thereby creating the target redundant architecture.
[0059] For any computing node, whether to determine the computing node as the first target computing node may be determined by conditions including: whether the hardware resources of the computing node are sufficient to create a virtual machine and whether the target parameters of the target redundant architecture are met.
[0060] In some embodiments, the above-mentioned resources may include at least one of a central processing unit (CPU), memory, and disk capacity.
[0061] In some embodiments, whether the computing node meets the target parameter requirements of the target redundant architecture may include: whether the computing node has a virtual machine deployed, thereby meeting the affinity of the target redundant architecture, etc.
[0062] Step 130: Send a virtual machine creation request to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
[0063] In actual execution, after determining the first target computing node, a virtual machine creation request may be sent to each first target computing node. The virtual machine creation request may be used to trigger the creation of at least one virtual machine in the target redundant architecture at the first target computing node.
[0064] After receiving the virtual machine creation request, each first target computing node can create at least one virtual machine in the target redundant architecture in response to the virtual machine creation request. After each first target computing node creates a virtual machine, all virtual machines included in the target redundant architecture can be created, thereby establishing the target redundant architecture and completing the scheduling of the virtual machines in the target redundant architecture.
[0065] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, the configured redundant architecture data table is queried based on the identity information of the target redundant architecture, the target parameters of the target redundant architecture are obtained, and the first target computing node is determined based on the target parameters of the target redundant architecture. The first target computing node sends a virtual machine creation request so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request. A method for creating a virtual machine of a specified redundant architecture in one go can be provided, without the need to create a host group or to wait until the previous virtual machine is created before creating the next virtual machine. This can simplify the operation of creating redundant architecture virtual machines for rail transit and improve the efficiency of creating redundant architecture virtual machines for rail transit.
[0066] In some embodiments of the present application, based on the identity information of the target redundant architecture, the configured redundant architecture data table is queried to obtain the target parameters of the target redundant architecture, including: receiving a first input and obtaining the identity information of the target redundant architecture carried by the first input.
[0067] In actual implementation, the first input may carry the identity information of the target redundant architecture. After receiving the first input, the identity information of the target redundant architecture carried in the first input may be obtained through parsing or other methods. The first input may be user input, used by the user to designate a redundant architecture as the target redundant architecture.
[0068] In some embodiments, the first input may be an input for a target interface. In some embodiments, the target interface may be an interface for creating a target redundant architecture or an interface for creating a virtual machine.
[0069] In some embodiments, the first input may be an input to an input component in the target interface. The input component may include at least one of an input box and a drop-down menu. The specific form of the first input is not limited in this embodiment of the application.
[0070] Based on the identity information of the target redundant architecture, the redundant architecture data table in the target database is queried to obtain target parameters of the target redundant architecture.
[0071] In actual implementation, the target database may be a database in a storage node in the cloud platform, and redundant architecture data tables may be pre-stored in the target database.
[0072] In some embodiments, the target database may be a nova database in a cloud platform.
[0073] In some embodiments, based on the identity information of the target redundant architecture, the redundant architecture data table is queried to determine which redundant architecture the target redundant architecture is and to determine target parameters of the target redundant architecture.
[0074] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, by obtaining the identity information of the target redundant architecture carried by the user's first input, based on the identity information of the target redundant architecture, querying the redundant architecture data table in the target database, and obtaining the target parameters of the target redundant architecture, the target parameters of the target redundant architecture can be quickly determined, thereby triggering the one-time creation of a virtual machine of a specified redundant architecture based on the target parameters of the target redundant architecture, simplifying the operation of creating a redundant architecture virtual machine for rail transit, and improving the efficiency of creating a redundant architecture virtual machine for rail transit.
[0075] In some embodiments of the present application, based on the target parameters of the target redundant architecture, determining the first target computing node for creating the target redundant architecture includes: querying the computing node list in the target database, and determining one or more second target computing nodes for creating each virtual machine included in the target redundant architecture.
[0076] In actual implementation, virtual machine pre-scheduling can be performed first. This pre-scheduling can be used to determine, for each virtual machine included in the target redundant architecture, a second target computing node for creating that virtual machine. The second target computing node used to create any virtual machine can include one or more computing nodes from among all computing nodes included in the cloud platform.
[0077] In some embodiments, the part of the control node used to implement the above-mentioned pre-scheduling function may be a virtual machine pre-scheduling module.
[0078] In some embodiments, a list of computing nodes may be pre-stored in the target database. The computing node list may be used to store information about each computing node in the cloud platform. This computing node information may include information about the computing node's hardware resources. By querying the computing node list, information about each computing node may be obtained. Based on this information, a determination may be made as to whether the computing node can be used to create a virtual machine in the target redundant architecture. If the determination is yes, the computing node is available and may be designated as the second target computing node. If the determination is no, the computing node is not designated as the second target computing node.
[0079] In some embodiments, the judgment condition may include: whether the hardware resources of the computing node are sufficient to create a virtual machine, etc.
[0080] Figure 2 This is a schematic diagram of the principle of the pre-scheduling link in the redundant architecture virtual machine creation method for rail transit provided by the embodiment of the present application. Figure 2 As shown, in some embodiments, a virtual machine pre-scheduling function can be called based on the nova virtual machine scheduler in the control node to query the target database (specifically, a computing node list) to query available computing nodes, and return all available computing nodes for creating a single virtual machine in the target redundant architecture as the second target node. In some embodiments, the aforementioned virtual machine pre-scheduling function can be added to the nova service of the cloud platform.
[0081] A first target computing node among the second target computing nodes is determined based on target parameters of the target redundant architecture.
[0082] In actual execution, the virtual machine can be pre-scheduled and formal scheduling can be continued. The formal scheduling can be used to filter out the first target computing node from the second target computing node.
[0083] In some embodiments, the portion of the control node used to implement the above-mentioned pre-scheduling function may be a redundant architecture scheduling module.
[0084] After determining the second target computing node, the second target computing node can be further screened in combination with the target parameters of the target redundant architecture to select the first target computing node. The first target computing node can include at least one second target computing node.
[0085] In some embodiments, the screening condition may include: whether the computing node meets the requirements of target parameters of the target redundancy architecture.
[0086] In some embodiments, a redundant architecture scheduling function may be added to the nova service of the cloud platform. By calling the redundant architecture scheduling function, all available computing nodes may be queried, thereby determining the first target computing node based on the information obtained from the query.
[0087] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, by querying the computing node list in the target database, one or more second target computing nodes for creating each virtual machine included in the target redundant architecture are determined respectively, and based on the target parameters of the target redundant architecture, the first target computing node among the second target computing nodes is determined. This can quickly select all computing nodes that can create a virtual machine of a specified redundant architecture at one time, thereby enabling scheduling of a virtual machine of a specified redundant architecture to be created at one time based on the above-mentioned first target computing node, simplifying the operation of creating a redundant architecture virtual machine for rail transit, and improving the efficiency of creating a redundant architecture virtual machine for rail transit.
[0088] In some embodiments of the present application, sending a virtual machine creation request to a first target computing node includes: determining a correspondence between each virtual machine included in the target redundant architecture and each first target computing node based on target parameters of the target redundant architecture.
[0089] In actual implementation, after determining the first target computing node, each virtual machine included in the target redundant architecture can be bound to a first target computing node based on the target parameters of the target redundant architecture. The binding relationship is a correspondence between each virtual machine included in the target redundant architecture and each first target computing node.
[0090] A virtual machine creation request for creating a virtual machine corresponding to the first target computing node is sent to each first target computing node respectively.
[0091] In actual implementation, after each virtual machine included in the target redundant architecture is bound to a first target computing node, a virtual machine creation request can be sent to each first target computing node. The virtual machine creation request sent to the first target computing node can be used to create a virtual machine corresponding to the first target computing node in the target redundant architecture. The virtual machine corresponding to the first target computing node is a virtual machine that has a corresponding relationship with the first target computing node.
[0092] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, by: based on the target parameters of the target redundant architecture, determining the correspondence between each virtual machine included in the target redundant architecture and each first target computing node, and sending a virtual machine creation request for creating a virtual machine corresponding to the first target computing node to each first target computing node respectively, each virtual machine included in the target redundant architecture can be bound to a first target computing node, so that based on the above binding, scheduling of the virtual machine of the specified redundant architecture can be performed at one time through the above first target computing node, which can simplify the operation of creating the redundant architecture virtual machine for rail transit and improve the efficiency of creating the redundant architecture virtual machine for rail transit.
[0093] In some embodiments of the present application, before querying the configured redundant architecture data table based on the identity information of the target redundant architecture to obtain the target parameters of the target redundant architecture, the method also includes: creating a redundant architecture data table in the target database in response to the second input.
[0094] In actual execution, the user may create a redundant architecture data table in the target database of the storage node by inputting the second input.
[0095] In some embodiments, the second input may include at least one of click, drag, and text input operations on the interface. The specific form of the second input is not limited in this embodiment of the application.
[0096] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, a redundant architecture data table is created in a target database in response to a second input, and information of each redundant architecture is pre-stored in the database. The redundant architecture data table can describe the correspondence between the identity information of the redundant architecture and the target parameters, so that based on the user's designation of the target redundant architecture, the target parameters of the target redundant architecture can be obtained more quickly, thereby realizing the one-time creation of a virtual machine of the specified redundant architecture based on the target parameters of the target redundant architecture, simplifying the operation of creating redundant architecture virtual machines for rail transit, and improving the efficiency of creating redundant architecture virtual machines for rail transit.
[0097] In some embodiments of the present application, the method further includes: performing an editing operation on the redundant architecture data table in response to a third input.
[0098] In actual implementation, the user can input a third input so that the control node can respond based on the third input and perform an edit operation on the aforementioned redundant architecture data table to edit information of one or more redundant architectures. The specific form of the third input is not limited in this embodiment of the application.
[0099] In some embodiments, the editing operation may include operations such as adding (ie, creating), deleting, modifying, and querying.
[0100] Figure 3 This is a schematic diagram of the principle of creating a redundant architecture data packet in the redundant architecture virtual machine creation method for rail transit provided by the embodiment of the present application. Figure 3 As shown, in some embodiments, the control node can create a redundant architecture data table in the target database through its own redundant architecture management module. The redundant architecture data table may include fields such as redundant architecture ID, redundant architecture name, number of redundant machines, and redundant machine affinity, which respectively correspond to data such as the redundant architecture ID, redundant architecture name, number of virtual machines included in the redundant architecture, and affinity of the virtual machines included in the redundant architecture. The redundant architecture data table can be used to store data for each redundant architecture and information about each redundant architecture.
[0101] In some embodiments, a redundant architecture management interface can be added to the management interface provided by the cloud platform. This redundant architecture management interface enables functions such as creating, editing, and deleting information for one or more redundant architectures in the redundant architecture data table. Accordingly, a redundant architecture management interface can be added to the nova service of the cloud platform. This redundant architecture management interface can be used to call the redundant architecture management interface, including the redundant architecture management interface, to operate on the redundant architecture data table in the target database, thereby enabling the aforementioned functions such as creating, editing, and deleting information for one or more redundant architectures.
[0102] In some embodiments, the redundant architecture management interface may include sub-interfaces such as redundant architecture creation, redundant architecture deletion, and redundant architecture query, which respectively correspond to functions such as creation, editing, and deletion of redundant architecture information.
[0103] According to the redundant architecture virtual machine creation method for rail transit provided in an embodiment of the present application, by performing an editing operation on the redundant architecture data table in response to a third input, a redundant architecture data table for storing redundant architecture information can be more conveniently maintained.
[0104] In order to facilitate the understanding of the above embodiments of the present application, Figure 4 The implementation process of the redundant architecture virtual machine creation method for rail transit is described. Figure 4 This is a schematic diagram of the principle of the method for creating a redundant architecture virtual machine for rail transit provided by an embodiment of the present application. Figure 4 , the implementation process of a robot system collaborative management method may include the following steps.
[0105] Triggering the creation of a virtual machine. The process of creating a virtual machine can be triggered by responding to user input.
[0106] After triggering the creation of a virtual machine, it is determined whether to create a virtual machine in a redundant architecture. Specifically, it is determined whether the virtual machine to be created is a virtual machine in a redundant architecture. If not, the process for creating a virtual machine in a standard architecture is triggered. If so, the process for creating a virtual machine in a redundant architecture is triggered, and the redundant architecture virtual machine is scheduled.
[0107] In some embodiments, the creation process of the virtual machine in the redundant architecture can be implemented by the redundant architecture virtual machine creation module and the redundant architecture scheduling module in the control node. In some embodiments, the redundant architecture scheduling module can be added to the virtual machine creation interface of the nova service of the cloud platform.
[0108] When creating a virtual machine in a redundant architecture, you can now add the ability to select a redundant architecture in the target interface. The target interface can be used for virtual machine creation.
[0109] The redundant architecture virtual machine creation module can query the details of the target redundant architecture based on the identity information of the target redundant architecture carried in the first input, which can specifically include: querying the redundant architecture in the target database by calling the redundant architecture query interface to obtain target parameters of the target redundant architecture.
[0110] The redundant architecture virtual machine creation module can also perform pre-scheduling, query all available computing nodes through the virtual machine pre-scheduling function, and determine the first target computing node.
[0111] The redundant architecture virtual machine creation module can transmit information about the first target computing node to the redundant architecture scheduling module. The redundant architecture scheduling module can determine whether to call the redundant architecture scheduling function based on whether to select a redundant architecture and identity information such as the redundant architecture ID, which is input from the front end (i.e., input from the user).
[0112] The redundant architecture scheduling module can bind the virtual machines included in the target redundant architecture to the computing nodes according to the number and affinity of the virtual machines in the target parameters of the target redundant architecture to form a redundant architecture strategy, and then allocate the virtual machines and the first target computing node according to the redundant architecture strategy, and send the virtual machine creation request to the designated first target computing node to create the virtual machine.
[0113] The redundant architecture virtual machine creation method for rail transit provided in the embodiments of the present application can be executed by a redundant architecture virtual machine creation device for rail transit. In the embodiments of the present application, the redundant architecture virtual machine creation method for rail transit is executed by the redundant architecture virtual machine creation device for rail transit as an example to illustrate the redundant architecture virtual machine creation method for rail transit provided in the embodiments of the present application.
[0114] An embodiment of the present application also provides a redundant architecture virtual machine creation device for rail transit. Figure 5 This is a schematic diagram of the structure of a redundant architecture virtual machine creation device for rail transit provided by an embodiment of the present application. Figure 5 As shown, the redundant architecture virtual machine creation device for rail transit includes: an acquisition module 510 , a determination module 520 and a sending module 530 .
[0115] The acquisition module 510 is configured to query the configured redundant architecture data table based on the identity information of the target redundant architecture to obtain target parameters of the target redundant architecture; the target redundant architecture includes multiple virtual machines for rail transit;
[0116] A determination module 520 is configured to determine a first target computing node for creating a target redundant architecture based on target parameters of the target redundant architecture;
[0117] The sending module 530 is configured to send a virtual machine creation request to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
[0118] According to the redundant architecture virtual machine creation device for rail transit provided in an embodiment of the present application, the configured redundant architecture data table is queried based on the identity information of the target redundant architecture, the target parameters of the target redundant architecture are obtained, and the first target computing node is determined based on the target parameters of the target redundant architecture. The first target computing node sends a virtual machine creation request so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request. A method for creating a virtual machine of a specified redundant architecture in one go can be provided, without the need to create a host group or to wait until the previous virtual machine is created before creating the next virtual machine. This can simplify the operation of creating redundant architecture virtual machines for rail transit and improve the efficiency of creating redundant architecture virtual machines for rail transit.
[0119] In some embodiments, the acquisition module 510 may include:
[0120] A receiving unit, configured to receive a first input;
[0121] an acquiring unit, configured to acquire identity information of a target redundant architecture carried by the first input;
[0122] The query unit is used to query the redundant architecture data table in the target database based on the identity information of the target redundant architecture to obtain the target parameters of the target redundant architecture.
[0123] In some embodiments, the determination module 520 may include:
[0124] A first determining unit is configured to query a list of computing nodes in a target database, and determine, for each virtual machine included in the target redundant architecture, one or more second target computing nodes for creating each virtual machine;
[0125] The second determining unit is configured to determine a first target computing node among the second target computing nodes based on a target parameter of the target redundant architecture.
[0126] In some embodiments, the sending module 530 may be specifically configured to:
[0127] Determining, based on target parameters of the target redundant architecture, a correspondence between each virtual machine and each first target computing node included in the target redundant architecture;
[0128] A virtual machine creation request for creating a virtual machine corresponding to the first target computing node is sent to each first target computing node respectively.
[0129] In some embodiments, the redundant architecture virtual machine creation device for rail transit may further include:
[0130] The creation module is configured to create a redundant schema data table in the target database in response to the second input.
[0131] In some embodiments, the redundant architecture virtual machine creation device for rail transit may further include:
[0132] The editing module is configured to perform an editing operation on the redundant architecture data table in response to a third input.
[0133] The redundant architecture virtual machine creation device for rail transit in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), an ATM or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0134] The redundant architecture virtual machine creation device for rail transit in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0135] The redundant architecture virtual machine creation device for rail transit provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0136] In some embodiments, as Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 610, a memory 620, and a computer program stored in the memory 620 and executable on the processor 610. When the program is executed by the processor 610, each process of the above-mentioned redundant architecture virtual machine creation method embodiment for rail transit is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0137] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0138] An embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned redundant architecture virtual machine creation method for rail transit and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0139] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0140] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the above-mentioned method for creating a redundant architecture virtual machine for rail transit.
[0141] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0142] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned redundant architecture virtual machine creation method for rail transit, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0143] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0144] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0146] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0147] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0148] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A method for creating a redundant architecture virtual machine for rail transit, characterized in that: include: Based on the identity information of the target redundant architecture, query the configured redundant architecture data table to obtain target parameters of the target redundant architecture; The target redundancy architecture includes a plurality of virtual machines for rail transit; Determining, based on target parameters of the target redundant architecture, a first target computing node for creating the target redundant architecture; A virtual machine creation request is sent to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
2. The method for creating a redundant architecture virtual machine for rail transit according to claim 1, characterized in that: The step of querying a configured redundant architecture data table based on the identity information of the target redundant architecture to obtain target parameters of the target redundant architecture includes: Receive a first input, and obtain identity information of the target redundant architecture carried by the first input; Based on the identity information of the target redundant architecture, a redundant architecture data table in a target database is queried to obtain target parameters of the target redundant architecture.
3. The method for creating a redundant architecture virtual machine for rail transit according to claim 2, characterized in that: The determining, based on the target parameters of the target redundant architecture, a first target computing node for creating the target redundant architecture includes: Querying a list of computing nodes in the target database, and determining, for each virtual machine included in the target redundant architecture, one or more second target computing nodes for creating each virtual machine; The first target computing node among the second target computing nodes is determined based on target parameters of the target redundant architecture.
4. The method for creating a redundant architecture virtual machine for rail transit according to any one of claims 1 to 3, characterized in that: The sending a virtual machine creation request to the first target computing node includes: Determining, based on target parameters of the target redundant architecture, a correspondence between each virtual machine included in the target redundant architecture and each first target computing node; The virtual machine creation request for creating a virtual machine corresponding to the first target computing node is sent to each of the first target computing nodes respectively.
5. The method for creating a redundant architecture virtual machine for rail transit according to claim 2 or 3, characterized in that: Before querying the configured redundant architecture data table based on the identity information of the target redundant architecture to obtain the target parameters of the target redundant architecture, the method further includes: In response to the second input, the redundant schema data table is created in the target database.
6. The method for creating a redundant architecture virtual machine for rail transit according to claim 5, characterized in that: The method further comprises: In response to a third input, an edit or delete operation is performed on the redundant architecture data table.
7. A redundant architecture virtual machine creation device for rail transit, characterized in that: include: An acquisition module, configured to query a configured redundant architecture data table based on the identity information of the target redundant architecture, and acquire target parameters of the target redundant architecture; The target redundancy architecture includes a plurality of virtual machines for rail transit; a determination module, configured to determine a first target computing node for creating the target redundant architecture based on target parameters of the target redundant architecture; The sending module is configured to send a virtual machine creation request to the first target computing node, so that the first target computing node creates each virtual machine included in the target redundant architecture based on the virtual machine creation request.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for creating a redundant architecture virtual machine for rail transit as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for creating a redundant architecture virtual machine for rail transit as described in any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for creating a redundant architecture virtual machine for rail transit as described in any one of claims 1 to 6 is implemented.
