Physical machine configuration method and device, equipment and storage medium

By using message queues to implement asynchronous configuration in the configuration process of public cloud physical machine, the problem of long wait time in the existing technology is solved, work efficiency is improved, and configuration process is flexibly adjusted.

CN120166034APending Publication Date: 2025-06-17BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311733483.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing public cloud physical machine configuration process requires waiting for each step to be completed, resulting in a long wait time for users to be unable to handle other tasks at the same time, which is inefficient.

Method used

By sending operation information to the message queue, obtaining the operation call chain and obtaining metadata, asynchronous configuration of the physical machine is realized, allowing users to switch to other operations during the configuration process.

Benefits of technology

It realizes asynchronous execution of the physical machine configuration process, reduces user waiting time, improves work efficiency, and makes the configuration process more flexible, making the service provider adjusting the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166034A_ABST
    Figure CN120166034A_ABST
Patent Text Reader

Abstract

The invention relates to a physical machine configuration method, device and equipment and a storage medium, and the method comprises the steps that in response to a physical machine configuration instruction, first operation information is sent to a message queue, and the first operation information is used for instructing a second device to obtain a first operation call chain and metadata; receiving a first response message returned by the message queue; in response to the first configuration success information returned by the server, second operation information is sent to the message queue, and the second operation information is used for indicating the second device to acquire a second operation call chain and realize second configuration of the physical machine; and receiving a second response message returned by the message queue. According to the method, the operation information is sent to the message queue, so that the second device obtains the operation call chain and receives the response message returned by the operation queue, other operations can be executed before configuration of the physical machine is completed, the waiting time is shortened, and the working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, apparatus, device, and storage medium for configuring a physical machine. Background Art

[0002] A public cloud refers to a cloud that can be used provided by a third-party provider for users, and its core attribute is shared resource services. Usually, after a user purchases a physical machine of a public cloud, they need to perform basic configuration on the physical machine through a console. During the configuration process, metadata required for configuration needs to be prepared first. After the metadata is prepared, a Preboot eXecution Environment (PXE) server is called to complete the initial configuration of the physical machine. After the initial configuration is completed, the configuration information of the physical machine is further added or modified to complete the final configuration of the physical machine. After the final configuration is completed, the user can freely use the physical machine to deploy online applications.

[0003] However, in the existing configuration process, it is necessary to wait for each step to be executed. After the final configuration of the physical machine is completed, a response message can be received to exit the console and perform other operations. However, the execution time of preparing metadata, the initial configuration of the physical machine, and the final configuration is relatively long, and the user needs to wait for a long time. Other work cannot be processed during the waiting process, resulting in low work efficiency. Summary of the Invention

[0004] To solve the above technical problems, the present disclosure provides a method, apparatus, device, and storage medium for configuring a physical machine.

[0005] In a first aspect of an embodiment of the present disclosure, a method for configuring a physical machine is provided. The method is applicable to a first device and includes:

[0006] In response to a physical machine configuration instruction, send first operation information to a message queue. The first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server implements a first configuration of the physical machine based on the metadata;

[0007] Receive a first response message returned by the message queue after the first operation information is successfully sent;

[0008] In response to the information indicating that the first configuration is successful returned by the server, send second operation information to the message queue. The second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain;

[0009] Receive a first response message returned by the message queue after the second operation information is successfully sent.

[0010] The second aspect of the embodiments of the present disclosure provides a physical machine configuration method, which is applicable to a second device. The method includes:

[0011] Monitor a message queue and extract first operation information from the message queue;

[0012] Obtain a first operation call chain based on the first operation information, and obtain metadata based on the first operation call chain;

[0013] Send first configuration information to a server so that the server implements a first configuration of the physical machine based on the first configuration information and the metadata;

[0014] Extract second operation information from the message queue;

[0015] Obtain a second operation call chain based on the second operation information, and implement a second configuration of the physical machine based on the second operation call chain.

[0016] The third aspect of the embodiments of the present disclosure provides a physical machine configuration device, which includes:

[0017] A first sending module, configured to send first operation information to a message queue in response to a physical machine configuration instruction. The first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that the server implements a first configuration of the physical machine based on the metadata;

[0018] A first receiving module, configured to receive a first response message returned by the message queue after the first operation information is successfully sent;

[0019] A second sending module, configured to send second operation information to the message queue in response to the information that the first configuration is successful returned by the server. The second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain;

[0020] A second receiving module, configured to receive a first response message returned by the message queue after the second operation information is successfully sent.

[0021] The fourth aspect of the embodiments of the present disclosure provides a physical machine configuration device, which includes:

[0022] A first extraction module, configured to monitor a message queue and extract first operation information from the message queue;

[0023] The first acquisition module is configured to acquire a first operation call chain based on the first operation information, and acquire metadata based on the first operation call chain;

[0024] The third sending module is configured to send first configuration information to a server, so that the server implements a first configuration of the physical machine based on the first configuration information and the metadata;

[0025] The second extraction module is configured to extract second operation information from the message queue;

[0026] The second acquisition module is configured to acquire a second operation call chain based on the second operation information, and implement a second configuration of the physical machine based on the second operation call chain.

[0027] A fifth aspect of the embodiments of the present disclosure provides a computer device, including a memory, a processor, and a computer program, wherein the memory stores a computer program, and when the computer program is executed by the processor, the physical machine configuration method as described in the first aspect or the second aspect above is implemented.

[0028] A sixth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by the processor, the physical machine configuration method as described in the first aspect or the second aspect above is implemented.

[0029] The technical solution provided by the embodiments of the present disclosure has the following advantages compared with the prior art:

[0030] In the physical machine configuration method, apparatus, device, and storage medium provided by the embodiments of the present disclosure, in response to a physical machine configuration instruction, first operation information is sent to a message queue. The first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server implements a first configuration of the physical machine based on the metadata. After receiving a first response message returned by the message queue after the first operation information is successfully sent, in response to information indicating successful first configuration returned by the server, second operation information is sent to the message queue. The second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain. After receiving a second response message returned by the message queue after the second operation information is successfully sent, after sending the first operation information, through the first response message returned by the message queue, a user can switch to other pages to perform other operations without waiting for the metadata acquisition to complete. Until the metadata acquisition is completed and the preliminary configuration of the physical machine by the server is also completed, information indicating successful first configuration returned by the server is received, and the next step of sending the second operation information is executed. After the sending is successful, the second response message returned by the message queue is received, so that other operations can be performed without waiting for the final configuration of the physical machine to complete, changing the physical machine configuration process from traditional synchronous execution to asynchronous execution. Compared with the traditional method of receiving a response message and performing other operations only after the physical machine configuration is completed, the message queue sends the response message faster and takes less time, so that the manual waiting time is shorter, greatly improving the overall work efficiency. At the same time, by setting the first operation call chain and the second operation call chain, the overall process of physical machine configuration can be made more flexible, facilitating service providers to adjust the configuration process by modifying the operation call chain. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.

[0032] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or in the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0033] Figure 1 is a flowchart of a physical machine configuration method provided by an embodiment of the present disclosure;

[0034] Figure 2 is a flowchart of another physical machine configuration method provided by an embodiment of the present disclosure;

[0035] Figure 3 It is a schematic structural diagram of a physical machine configuration device provided by an embodiment of the present disclosure;

[0036] Figure 4 It is a schematic structural diagram of another physical machine configuration device provided by an embodiment of the present disclosure;

[0037] Figure 5 It is a schematic structural diagram of a computer device provided by an embodiment of the present disclosure. Specific implementation manners

[0038] In order to more clearly understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0039] Many specific details are set forth in the following description to facilitate a thorough understanding of the present disclosure, but the present disclosure may be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.

[0040] It should be understood that the various steps recorded in the method implementation manners of the present disclosure may be executed in different orders and / or in parallel. In addition, the method implementation manners may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0041] Figure 1 It is a flowchart of a physical machine configuration method provided by an embodiment of the present disclosure. This method may be executed by a first device. Optionally, the first device may be a physical machine configuration device.

[0042] As Figure 1 shown, the physical machine configuration method provided in this embodiment includes the following steps:

[0043] S101. In response to a physical machine configuration instruction, send first operation information to a message queue. The first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that the server can implement a first configuration of the physical machine based on the metadata.

[0044] The physical machine configuration instruction in the embodiments of the present disclosure may be understood as information used to instruct to start operations related to the creation and configuration of a physical machine. For example, the physical machine configuration instruction may be issued by a user or automatically triggered based on certain preset conditions, which is not limited herein. Optionally, the physical machine configuration instruction may be an instruction issued by the user from a console.

[0045] The second device in the embodiments of the present disclosure can be understood as a device for performing specific operations of physical machine configuration. The second device can run on the same electronic device as the physical machine configuration device (i.e., the first device), or can run on a different electronic device from the physical machine configuration device. Optionally, a consumption process runs in the second device, which is used to consume the first operation information (and subsequent second operation information) and execute the operations corresponding to the operation information.

[0046] The metadata in the embodiments of the present disclosure can be understood as the data required for configuring a physical machine. By way of example, the metadata can include information such as the physical machine name, image file, key, network protocol, etc., which is not limited herein.

[0047] The server in the embodiments of the present disclosure can be understood as a Preboot Execution Environment (PXE) server, and the first configuration can be understood as the process of initially configuring a physical machine through the PXE server.

[0048] In the embodiments of the present disclosure, after receiving a physical machine configuration instruction, the physical machine configuration device can send a first operation message to a preset message queue to instruct the second device to obtain a first operation call chain, and obtain the first operation information of the metadata required for configuring the physical machine based on the first operation call chain, so that the PXE server can implement the first configuration of the physical machine based on the metadata.

[0049] In an exemplary implementation manner of the embodiments of the present disclosure, the physical machine configuration device can perform pre - confirmation on business information such as order information and inventory information to determine whether there is a physical machine configuration task. If the pre - confirmation passes, a physical machine configuration instruction can be automatically generated, or a message indicating that the pre - confirmation has passed can be sent to the staff, so that after receiving the message, the staff can send a physical machine configuration instruction, and in response to the physical machine configuration instruction, send the first operation information to the message queue.

[0050] S102. Receive a first response message returned by the message queue after the first operation information is successfully sent.

[0051] The first response message in the embodiments of the present disclosure can be understood as a response message used to represent that the first operation information has been successfully received by the message queue.

[0052] In the embodiments of the present disclosure, after sending the first operation information, the physical machine configuration device can determine that the first operation information has been successfully sent according to the first response information returned by the message queue, indicating that the message queue has successfully received the first operation information, so that the user can exit the console and perform other operations.

[0053] S103. In response to the information indicating successful first configuration returned by the server, send second operation information to the message queue. The second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain.

[0054] The second configuration in the embodiments of the present disclosure can be understood as a process of adding or modifying the configuration information of the physical machine after the initial configuration of the physical machine is completed, so as to implement the final configuration of the physical machine.

[0055] In the embodiments of the present disclosure, after receiving the first response message returned by the message queue, the physical machine configuration device may receive the information indicating successful first configuration returned by the server after the first configuration is completed, determine that the steps for the second configuration of the physical machine can be started, and therefore send second operation information to the message queue to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain.

[0056] In an exemplary implementation manner of the embodiments of the present disclosure, after receiving the information indicating successful first configuration returned by the server, the physical machine configuration device may notify and remind the user, and after the user issues a second configuration instruction, send second operation information to the message queue.

[0057] S104. Receive a second response message returned by the message queue after the second operation information is successfully sent.

[0058] The second response message in the embodiments of the present disclosure can be understood as a response message used to represent that the second operation information has been successfully received by the message queue.

[0059] In the embodiments of the present disclosure, after sending the second operation information to the message queue, the physical machine configuration device may receive the second response message returned by the message queue, which represents that the second operation information has been successfully sent, and determine that the second operation information has been successfully sent, so that the user can exit the console and perform other operations.

[0060] In an embodiment of the present disclosure, in response to a physical machine configuration instruction, first operation information is sent to a message queue. The first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server implements a first configuration of the physical machine based on the metadata. A first response message returned by the message queue after the first operation information is successfully sent is received. In response to the information indicating that the first configuration is successful returned by the server, second operation information is sent to the message queue. The second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain. A second response message returned by the message queue after the second operation information is successfully sent is received. After the first operation information is sent, through the first response message returned by the message queue, a user can switch to other pages to perform other operations without waiting for the metadata acquisition to be completed. Until the metadata is acquired and the preliminary configuration of the physical machine by the server is also completed, the information indicating that the first configuration is successful returned by the server is received, and the next step of sending the second operation information is executed. After the sending is successful, the second response message returned by the message queue is received. Thus, other operations can be performed without waiting for the final configuration of the physical machine to be completed, so that the physical machine configuration process is changed from traditional synchronous execution to asynchronous execution. Compared with the traditional method of receiving a response message and performing other operations only after the physical machine configuration is completed, the message queue sends the response message relatively quickly and takes less time, so that the manual waiting time is shorter, and the overall work efficiency is greatly improved. At the same time, by setting the first operation call chain and the second operation call chain, the overall process of physical machine configuration can be made more flexible, which is convenient for service providers to adjust the configuration process by modifying the operation call chain.

[0061] In some embodiments of the present disclosure, after S102, it further includes: receiving first warning information returned by the second device, and reminding the user based on the first warning information. The first warning information is used to indicate that an error occurs in the process of the second device obtaining metadata.

[0062] Specifically, after the physical machine configuration device sends the first operation information to the message queue, the message queue will return a first response message indicating that the first operation information is successfully sent in a short time. The second device will extract the first operation information from the message queue, and then obtain the metadata required for configuring the physical machine according to the first operation information. If an error occurs during the acquisition process, the first warning information will be sent to the physical machine configuration device. After receiving the first warning information returned by the second device, the physical machine configuration device determines that an error occurs in the process of the second device obtaining metadata. At this time, a reminder message can be sent to the user, such as a staff member, based on the first warning information to remind the user to take corresponding measures.

[0063] The embodiments of the present disclosure can timely remind the user in case of an exception during the metadata acquisition process, facilitating the user to troubleshoot problems and reducing the probability of exceptions occurring after configuration.

[0064] In some other embodiments of the present disclosure, after S104, it further includes: receiving the second alarm information returned by the second device, and reminding the user based on the second alarm information, where the second alarm information is used to indicate that an error occurs during the process of the second configuration.

[0065] Similarly, after the physical machine configuration device sends the second operation information to the message queue, the message queue will return a second response message indicating the successful sending of the second operation information within a short time, and the second device will extract the second operation information from the message queue, and then perform the second configuration on the physical machine according to the second operation information. If an error occurs during the configuration process, it will send the second alarm information to the physical machine configuration device. After receiving the second alarm information returned by the second device, the physical machine configuration device determines that an error occurs during the second configuration. At this time, it can send a reminder message to the user based on the second alarm information to remind the user to take corresponding measures.

[0066] The embodiments of the present disclosure can timely remind the user in case of an exception during the physical machine configuration process, facilitating the user to troubleshoot problems and reducing the probability of exceptions occurring after configuration.

[0067] Figure 2 It is a flowchart of another physical machine configuration method provided by the embodiments of the present disclosure. This method can be executed by the second device. Optionally, the second device can be a physical machine configuration device. As Figure 2 shown, the physical machine configuration method provided in this embodiment includes the following steps:

[0068] S201. Monitor the message queue and extract the first operation information from the message queue.

[0069] In the embodiments of the present disclosure, the physical machine configuration device can monitor the message queue to which the first device targets to send the first operation information and the second operation information. When new information is stored in the message queue during monitoring, the newly stored information is extracted to obtain the first operation information.

[0070] S202. Obtain the first operation call chain based on the first operation information, and obtain the metadata based on the first operation call chain.

[0071] The first operation call chain in the embodiments of the present disclosure can be understood as being determined according to the execution order between multiple operation steps required to obtain the metadata, and includes information on multiple operation steps required to obtain the metadata.

[0072] The metadata in the embodiments of the present disclosure can be understood as the data required for configuring a physical machine. By way of example, the metadata may include information such as the physical machine name, image file, key, network protocol, etc., which is not limited herein.

[0073] In the embodiments of the present disclosure, after extracting the first operation information from the message queue, the physical machine configuration device may obtain the first operation call chain based on the first operation information, and execute the operation steps in the execution order of each operation step in the first operation call chain, so as to obtain the metadata.

[0074] In an exemplary implementation manner of the embodiments of the present disclosure, after obtaining the first operation call chain based on the first operation information, the physical machine configuration device may execute the operation steps in the execution order of each operation step in the first operation call chain, and obtain the metadata from a preset data storage location.

[0075] In another exemplary implementation manner of the embodiments of the present disclosure, after extracting the first operation information from the message queue, the physical machine configuration device may obtain the preset configuration information, and search for the first operation call chain corresponding to the first operation information from the configuration information. The configuration information may be preset by the service provider. The first operation information and the first operation call chain may be stored in the form of key-value pairs ("key" = "value"). For example: StartCreateEpc = NotifySubOrderStatus,CreateEpcMetadata,OperateAlarm, where "StartCreateEpc" is the first operation information extracted from the message queue, and "NotifySubOrderStatus,CreateEpcMetadata,OperateAlarm" is the first operation call chain found according to the first operation information. NotifySubOrderStatus, CreateEpcMetadata, and OperateAlarm are all specific operation steps. After obtaining the first operation information, the physical machine configuration device may match the first operation information with the key in the configuration information, find the corresponding first operation call chain, search for the corresponding function code in the preset function library in sequence according to the specific operation steps included in the first operation call chain, and execute these function codes in the order of the first operation call chain, so as to complete the acquisition of the metadata.

[0076] In yet another exemplary implementation manner of the embodiments of the present disclosure, after obtaining the metadata based on the first operation information, the physical machine configuration device may send a message indicating that the metadata acquisition is complete to the first device, so that when the detailed situation of the physical machine configuration is not displayed in the foreground, the user can understand the configuration progress through this message.

[0077] S203. Send the first configuration information to the server so that the server can implement the first configuration of the physical machine based on the first configuration information and the metadata.

[0078] The first configuration information in the embodiments of the present disclosure can be understood as information used to indicate that the metadata acquisition is completed and the PXE server can be notified to start performing the preliminary configuration of the physical machine.

[0079] In the embodiments of the present disclosure, after the metadata acquisition is completed, the physical machine configuration device can send the first configuration information to the PXE server, so that after receiving the first configuration information, the PXE server can implement the preliminary configuration of the physical machine based on the metadata, that is, the first configuration.

[0080] In an exemplary implementation manner of the embodiments of the present disclosure, the process of the PXE server performing the first configuration on the physical machine is as follows: obtain a diskless image and install and restart, obtain installation information from the OPENAPI specification and return the start installation status, create a disk array and partition, record the image and install, configure the network, write to local files, set passwords and install components, configure the multi-operating system boot program. After the configuration is completed, the PXE server will send a message indicating the success of the first configuration to the first device.

[0081] S204. Extract the second operation information from the message queue.

[0082] In the embodiments of the present disclosure, the physical machine configuration device can monitor the message queue. After extracting the first operation information from the message queue, if new information is newly stored in the message queue, the newly stored information can be extracted to obtain the second operation information.

[0083] S205. Obtain a second operation call chain based on the second operation information, and implement the second configuration of the physical machine based on the second operation call chain.

[0084] The second operation call chain in the embodiments of the present disclosure can be understood as being determined according to the execution order between multiple operation steps required for the second configuration, including information on multiple operation steps required for the second configuration.

[0085] In the embodiments of the present disclosure, after extracting the second operation information from the message queue, the physical machine configuration device can obtain the second operation call chain based on the second operation information, and execute the operation steps in accordance with the execution order of each operation step in the second operation call chain, so as to implement the second configuration of the physical machine.

[0086] In an exemplary implementation manner of the embodiments of the present disclosure, when the physical machine configuration device performs a second configuration on the physical machine based on the second operation call chain, it may use the metadata obtained by S202 for configuration, or may use other data for configuration, which is not limited herein.

[0087] In another exemplary implementation manner of the embodiments of the present disclosure, the process of performing a second configuration on the physical machine based on the second operation call chain is as follows: go online with the virtual private cloud, update the bandwidth setting, notify the order status, create monitoring information, restart the physical machine, create and bind an elastic IP, update the physical machine remote control (Integrated Lights Out, ILO) user information, update the user ILO IP list, write the user authorization status, and modify the network card routing to point to the PXE server.

[0088] In an exemplary implementation manner of the embodiments of the present disclosure, after extracting the second operation information from the message queue, the physical machine configuration device may search for the second operation call chain corresponding to the second operation information in the preset configuration information. The second operation information and the second operation call chain may be stored in the form of key-value pairs. For example: FinishCreateEpc = OnlineVpc,UpdateVifBootNextSvr,UpdateVifBandwidth,NotifySubOrderStatus,LimitPxeOn,DelayRebootEpc,SendStatusMq,CreateMonitorHost,UpdateIloUserInfo,UpdateIloIps,WriteAuthToRedis,UpdateEpcMetadata,SendInstanceBillTime,EnableVnc. Among them, "FinishCreateEpc" is the second operation information extracted from the message queue, and "OnlineVpc,UpdateVifBootNextSvr,UpdateVifBandwidth,NotifySubOrderStatus,LimitPxeOn,DelayRebootEpc,SendStatusMq,CreateMonitorHost,UpdateIloUserInfo,UpdateIloIps,WriteAuthToRedis,UpdateEpcMetadata,SendInstanceBillTime,EnableVnc" is the second operation call chain found according to the second operation information. OnlineVpc, UpdateVifBootNextSvr, UpdateVifBandwidth, etc. are all specific operation steps. After obtaining the second operation information, the physical machine configuration device may match the second operation information with the keys in the configuration information, find the corresponding second operation call chain, search for the corresponding function codes in the preset function library in sequence according to the specific operation steps included in the second operation call chain, and execute these function codes in the order in the second operation call chain, so as to complete the second configuration of the physical machine.

[0089] Among them, for different physical machine configuration tasks, the preset configuration information may be the same or different. The service provider may add, delete, or modify specific operation steps in the configuration information to implement the modification of the physical machine configuration process, and the operation is flexible and simple.

[0090] In another exemplary implementation manner of the embodiments of the present disclosure, after the physical machine configuration device finishes the second configuration of the physical machine based on the second operation information, it may send a message indicating that the second configuration of the physical machine is completed to the first device, so that when the detailed situation of the physical machine configuration is not displayed in the foreground, the user can understand the configuration progress through this message.

[0091] In the embodiments of the present disclosure, by monitoring the message queue, extracting the first operation information from the message queue, obtaining the first operation call chain based on the first operation information, obtaining metadata based on the first operation call chain, and sending the first configuration information to the server, so that the server realizes the first configuration of the physical machine based on the first configuration information and the metadata, extracting the second operation information from the message queue, obtaining the second operation call chain based on the second operation information, and realizing the second configuration of the physical machine based on the second operation call chain, it can enable the first device to send operation information to the message queue instead of sending it to the second device, so as to obtain a quick response, and other operations can be executed without waiting for the final configuration of the physical machine to be completed, shortening the overall waiting time and improving the overall work efficiency, changing the traditional synchronous execution of the physical machine configuration process to asynchronous execution; at the same time, it enables the second device to obtain the operation call chain through the operation information and complete the corresponding operations based on the operation call chain, reducing the coupling degree of the code, making the overall process of physical machine configuration more flexible, and facilitating the service provider to adjust the configuration process by modifying the operation call chain.

[0092] In some embodiments of the present disclosure, if an error occurs in the process of obtaining metadata, the physical machine configuration device may send the first warning information to the first device.

[0093] Specifically, when the physical machine configuration device detects an error in the process of obtaining metadata based on the first operation information, it may send the first warning information to the first device.

[0094] Optionally, in the function code corresponding to the specific operation steps included in the first operation call chain, the function code corresponding to each operation step may include a section of warning code. Through this warning code, when an exception occurs in the execution process of a specific operation step included in the first operation call chain, the first warning information may be generated based on the information of the operation step where the exception occurs and sent to the first device.

[0095] Optionally, when an exception occurs in the execution process of a specific operation step included in the first operation call chain, other operation steps may continue to execute without being affected by it.

[0096] In the embodiments of the present disclosure, when an error occurs in the process of obtaining metadata, a first warning message is sent to the first device, which can timely notify the first device in the case of an exception in the metadata acquisition process, and then remind the user, facilitating the user to troubleshoot problems and reducing the probability of anomalies after configuration is completed.

[0097] In some other embodiments of the present disclosure, the physical machine configuration device may send a second warning message to the first device in response to an error occurring in the process of the second configuration.

[0098] Specifically, when the physical machine configuration device detects an error in the process of configuring the physical machine during the second configuration of the physical machine based on the second operation information, it sends a second warning message to the first device.

[0099] Optionally, in the function code corresponding to the specific operation steps included in the second operation call chain, the function code corresponding to each operation step may include a section of warning code. Through this warning code, when an exception occurs during the execution of a specific operation step included in the second operation call chain, a second warning message can be generated based on the information of the operation step where the exception occurs and sent to the first device.

[0100] Optionally, when an exception occurs during the execution of a specific operation step included in the second operation call chain, other operation steps can continue to execute without being affected.

[0101] In the embodiments of the present disclosure, when an error occurs in the process of configuring the physical machine, a second warning message is sent to the first device, which can timely notify the first device in the case of an exception in the process of the second configuration of the physical machine, and then remind the user, facilitating the user to troubleshoot problems and reducing the probability of anomalies after configuration is completed.

[0102] Figure 3 It is a schematic structural diagram of a physical machine configuration device provided by the embodiments of the present disclosure. As Figure 3As shown in the figure, the physical machine configuration device 300 includes: a first sending module 310, a first receiving module 320, a second sending module 330, and a second receiving module 340. Among them, the first sending module 310 is configured to, in response to a physical machine configuration instruction, send first operation information to a message queue, where the first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server can implement a first configuration of the physical machine based on the metadata; the first receiving module 320 is configured to receive a first response message returned by the message queue after the first operation information is successfully sent; the second sending module 330 is configured to, in response to information indicating successful completion of the first configuration returned by the server, send second operation information to the message queue, where the second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain; the second receiving module 340 is configured to receive a first response message returned by the message queue after the second operation information is successfully sent.

[0103] Optionally, the physical machine configuration device 300 further includes: a third receiving module, configured to receive first warning information returned by the second device and remind a user based on the first warning information, where the first warning information is used to indicate that an error occurred in the process of the second device obtaining the metadata.

[0104] Optionally, the physical machine configuration device 300 further includes: a fourth receiving module, configured to receive second warning information returned by the second device and remind a user based on the second warning information, where the second warning information is used to indicate that an error occurred in the process of the second configuration.

[0105] The physical machine configuration device provided in this embodiment can execute Figure 1 and its corresponding method embodiment, and their execution manners and beneficial effects are similar, which will not be elaborated here.

[0106] Figure 4 is a schematic structural diagram of a physical machine configuration device provided by an embodiment of the present disclosure. As Figure 4As shown in the figure, the physical machine configuration device 400 includes: a first extraction module 410, a first acquisition module 420, a third sending module 430, a second extraction module 440, and a second acquisition module 450. Among them, the first extraction module 410 is used to monitor the message queue and extract first operation information from the message queue; the first acquisition module 420 is used to obtain a first operation call chain based on the first operation information and obtain metadata based on the first operation call chain; the third sending module 430 is used to send first configuration information to the server so that the server can implement the first configuration of the physical machine based on the first configuration information and the metadata; the second extraction module 440 is used to extract second operation information from the message queue; the second acquisition module 450 is used to obtain a second operation call chain based on the second operation information and implement the second configuration of the physical machine based on the second operation call chain.

[0107] Optionally, the physical machine configuration device 400 further includes: a first warning module, which is used to send a first warning message to the first device in response to an error occurring in the process of obtaining the metadata.

[0108] Optionally, the physical machine configuration device 400 further includes: a second warning module, which is used to send a second warning message to the first device in response to an error occurring in the process of the second configuration.

[0109] The physical machine configuration device provided in this embodiment can execute Figure 2 and its corresponding method embodiment, and their execution manners and beneficial effects are similar, which will not be elaborated here.

[0110] Figure 5 is a schematic structural diagram of a computer device provided in an embodiment of the present disclosure.

[0111] As Figure 5 shown in the figure, the computer device may include a processor 510 and a memory 520 storing computer program instructions.

[0112] Specifically, the above-mentioned processor 510 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0113] The memory 520 may include a mass memory for information or instructions. By way of example and not limitation, the memory 520 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. Where appropriate, the memory 520 may include removable or non-removable (or fixed) media. Where appropriate, the memory 520 may be internal or external to the integrated gateway device. In a particular embodiment, the memory 520 is a non-volatile solid-state memory. In a particular embodiment, the memory 520 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0114] The processor 510 reads and executes the computer program instructions stored in the memory 520 to perform the steps of the physical machine configuration method provided by the embodiments of the present disclosure.

[0115] In one example, the computer device may further include a transceiver 530 and a bus 540. Among them, as Figure 5 shown, the processor 510, the memory 520, and the transceiver 530 are connected through the bus 540 and complete communication with each other.

[0116] The bus 540 includes hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side BUS (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable bus or a combination of two or more of these. Where appropriate, the bus 540 may include one or more buses. Although embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0117] Embodiments of the present disclosure also provide a computer-readable storage medium that may store a computer program, which, when executed by a processor, causes the processor to implement the physical machine configuration method provided by the embodiments of the present disclosure.

[0118] The above storage medium may include, for example, a memory 520 for computer program instructions, and the above instructions may be executed by a processor 510 of a physical machine configuration device to complete the physical machine configuration method provided by the embodiments of the present disclosure. Optionally, the storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc. The above computer program may be written in any combination of one or more programming languages for programming code to perform the operations of the embodiments of the present disclosure. The programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, executed as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0119] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.

[0120] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A physical machine configuration method, characterized in that, The method is applicable to a first device, and the method includes: In response to a physical machine configuration instruction, sending first operation information to a message queue, where the first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server implements a first configuration of the physical machine based on the metadata; Receiving a first response message returned by the message queue after the first operation information is successfully sent; In response to the information indicating the success of the first configuration returned by the server, sending second operation information to the message queue, where the second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain; Receiving a second response message returned by the message queue after the second operation information is successfully sent.

2. The method according to claim 1, characterized in that, After receiving the first response message returned by the message queue after the second operation information is successfully sent, the method further includes: Receiving first alarm information returned by the second device and reminding a user based on the first alarm information, where the first alarm information is used to indicate that an error occurs in the process of the second device obtaining the metadata.

3. The method according to claim 1, characterized in that, After receiving the first response message returned by the message queue after the second operation information is successfully sent, the method further includes: Receiving second alarm information returned by the second device and reminding a user based on the second alarm information, where the second alarm information is used to indicate that an error occurs in the process of the second configuration.

4. A physical machine configuration method, characterized in that, The method is applicable to a second device, and the method includes: Monitoring a message queue and extracting first operation information from the message queue; Obtaining a first operation call chain based on the first operation information and obtaining metadata based on the first operation call chain; Sending first configuration information to a server so that the server implements a first configuration of the physical machine based on the first configuration information and the metadata; Extracting second operation information from the message queue; Obtaining a second operation call chain based on the second operation information and implementing a second configuration of the physical machine based on the second operation call chain.

5. The method according to claim 4, characterized in that, The method further includes: In response to an error occurring in the process of obtaining the metadata, sending first alarm information to the first device.

6. The method according to claim 4, characterized in that, The method further includes: In response to an error occurring in the process of the second configuration, sending second alarm information to the first device.

7. A physical machine configuration device, characterized in that, The device includes: A first sending module, configured to send first operation information to a message queue in response to a physical machine configuration instruction, where the first operation information is used to instruct a second device to obtain a first operation call chain and obtain metadata required for configuring the physical machine based on the first operation call chain, so that a server implements a first configuration of the physical machine based on the metadata; A first receiving module, configured to receive a first response message returned by the message queue after the first operation information is successfully sent; A second sending module, configured to, in response to the information indicating successful first configuration returned by the server, send second operation information to the message queue, where the second operation information is used to instruct the second device to obtain a second operation call chain and implement a second configuration of the physical machine based on the second operation call chain; A second receiving module, configured to receive a first response message returned by the message queue after the second operation information is successfully sent.

8. A physical machine configuration device, characterized in that, The method includes: A first extraction module, configured to monitor the message queue and extract first operation information from the message queue; A first obtaining module, configured to obtain a first operation call chain based on the first operation information and obtain metadata based on the first operation call chain; A third sending module, configured to send first configuration information to the server, so that the server implements a first configuration of the physical machine based on the first configuration information and the metadata; A second extraction module, configured to extract second operation information from the message queue; A second obtaining module, configured to obtain a second operation call chain based on the second operation information and implement a second configuration of the physical machine based on the second operation call chain.

9. A computer device, characterized in that, It includes: A memory; A processor; And a computer program; wherein, the computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1-6 is implemented.