Method, apparatus, electronic device and storage medium for host machine delivery

By receiving host delivery requests, obtaining information and using template database to create tasks, the problem of host delivery relying on manual experience is solved, and automated rapid delivery and recording is achieved, efficiency is improved and human resource consumption is reduced.

CN116016170BActive Publication Date: 2025-07-04CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211666280.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2025-07-04
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

In the prior art, host deployment relies on manual experience, is inefficient and consumes a lot of human resources.

Method used

By receiving host delivery requests, obtaining host information, using the pre-built host delivery template database to find the corresponding delivery template, creating and executing host delivery tasks, and recording the process.

Benefits of technology

Automatic operation and maintenance is realized. Operation and maintenance personnel do not need to understand the back-end command line and programming language logic. They can quickly place the host through front-end operations and record the delivery process, which improves delivery efficiency and reduces human resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016170B_ABST
    Figure CN116016170B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device, and storage medium for host deployment. Among them, in the method for host deployment, first, a host deployment request is received. Then, the host information of the host to be deployed is obtained. Next, based on the host information, the deployment template corresponding to the host to be deployed is found from the pre-constructed host deployment template database. Then, based on the host information and the found deployment template, a host deployment task is created. Finally, the host deployment task is executed, and the host deployment process is recorded. It can be seen that by using the method of the present application, automated operation and maintenance are realized through the task flow arrangement of the front-end page. The operation and maintenance personnel do not need to understand the specific logical implementation of the back-end command line, scripts, and programming language codes. They only need to perform front-end operations, and the back-end will automatically find the corresponding deployment template, create a host deployment task and execute it, realizing the rapid deployment of the host, and at the same time, the deployment process can be recorded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular, to a method, device, electronic device, and storage medium for host machine placement. Background Art

[0002] As cloud servers are liked by more and more people, the scale on the cloud is gradually increasing. Currently, when placing host machines, first, there are many types of host machines involved, and second, there are many inspection items before placement. If any one of the inspection items for the operation and maintenance personnel to place the server does not meet the requirements, it will cause the failure of host machine placement. Inexperienced operation and maintenance personnel cannot quickly locate the cause of the problem failure, which brings difficulties to the daily operation and maintenance work of operation and maintenance personnel to a certain extent. Therefore, in the prior art, the placement of host machines relies relatively heavily on manual experience, with low placement efficiency and a large amount of human resources consumed. Summary of the Invention

[0003] In view of this, this application provides a method, device, electronic device, and storage medium for host machine placement to solve the problems in the prior art that the placement of host machines relies relatively heavily on manual experience, has low placement efficiency, and requires a large amount of human resources.

[0004] To achieve the above object, this application provides the following technical solutions:

[0005] The first aspect of this application discloses a method for host machine placement, including:

[0006] Receiving a host machine placement request;

[0007] Obtaining the host machine information of the host machine to be placed;

[0008] Based on the host machine information, finding out the placement template corresponding to the host machine to be placed from the pre-constructed host machine placement template database;

[0009] Based on the host machine information and the found placement template, creating a host machine placement task;

[0010] Executing the host machine placement task and recording the host machine placement process.

[0011] Optionally, the above method may further include:

[0012] If multiple host placement requests are received, host machine placement tasks are created in sequence and stored in the database.

[0013] Optionally, the above method further includes:

[0014] If a host machine pause delivery request is received, the host machine delivery task corresponding to the host machine pause delivery request is found based on the host machine pause delivery request, and the execution of the host machine delivery task is stopped.

[0015] Optionally, the above method further includes:

[0016] If an error occurs during the host machine delivery process, the step information of the current error occurrence is recorded.

[0017] A second aspect of the present application discloses a host machine delivery device, including:

[0018] A receiving unit, configured to receive a host machine delivery request;

[0019] An obtaining unit, configured to obtain the host machine information of the host machine to be delivered;

[0020] A searching unit, configured to search for the delivery template corresponding to the host machine to be delivered from a pre-constructed host machine delivery template database based on the host machine information;

[0021] A first creating unit, configured to create a host machine delivery task based on the host machine information and the found delivery template;

[0022] An execution unit, configured to execute the host machine delivery task and record the host machine delivery process.

[0023] Optionally, the above device further includes:

[0024] A second creating unit, configured to, if multiple host delivery requests are received, create host machine delivery tasks in sequence and store them in a database.

[0025] Optionally, the above device further includes:

[0026] A stopping unit, configured to, if a host machine pause delivery request is received, find the host machine delivery task corresponding to the host machine pause delivery request based on the host machine pause delivery request, and stop executing the host machine delivery task.

[0027] Optionally, the above device further includes:

[0028] A recording unit, configured to, if an error occurs during the host machine delivery process, record the step information of the current error occurrence.

[0029] A third aspect of the present application discloses an electronic device, including:

[0030] One or more processors;

[0031] A storage device, on which one or more programs are stored;

[0032] When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method according to any one of the first aspect of the present invention.

[0033] The fourth aspect of the present application discloses a computer storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method according to any one of the first aspect of the present invention.

[0034] As can be seen from the above technical solutions, in the method for deploying a host computer provided by the present application, first, a host computer deployment request is received. Then, the host computer information of the host computer to be deployed is obtained. Next, based on the host computer information, the deployment template corresponding to the host computer to be deployed is found from a pre-constructed host computer deployment template database. Then, based on the host computer information and the found deployment template, a host computer deployment task is created. Finally, the host computer deployment task is executed, and the host computer deployment process is recorded. It can be seen that by using the method of the present application, through the task process orchestration of the front-end page, automated operation and maintenance are realized. The operation and maintenance personnel do not need to understand the specific logic implementation of the back-end command line, scripts, and programming language codes. They only need to perform front-end operations, and the back-end will automatically select the corresponding deployment template, create a host computer deployment task and execute it, realizing fast deployment of the host computer, and at the same time, the deployment process can be recorded. This solves the problems in the prior art that the deployment of host computers depends relatively much on manual experience, the deployment efficiency is low, and a large amount of human resources are consumed at the same time. Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to the provided drawings.

[0036] Figure 1 It is a flowchart of a method for deploying a host computer disclosed in an embodiment of the present application;

[0037] Figure 2 It is a schematic diagram of a device for deploying a host computer disclosed in another embodiment of the present application;

[0038] Figure 3 It is a schematic diagram of an electronic device disclosed in another embodiment of the present application. Detailed Embodiments

[0039] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0040] In the present application, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the said element.

[0041] Moreover, in this article, 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.

[0042] As can be seen from the background technology, in the prior art, the placement of the host depends relatively on manual experience, with low placement efficiency and a large amount of human resources consumed at the same time.

[0043] In view of this, the present application provides a method, device, electronic device and storage medium for host placement to solve the problems in the prior art that the placement of the host depends relatively on manual experience, with low placement efficiency and a large amount of human resources consumed at the same time.

[0044] The embodiments of the present application provide a method for host placement, specifically as Figure 1 shown, specifically including:

[0045] S101. Receive a host placement request.

[0046] It should be noted that, first, receive the host placement request sent by the user.

[0047] S102. Obtain the host information of the host to be placed.

[0048] It should be noted that, upon receiving the host placement request, obtain the host information of the host to be placed based on the host placement request to determine the host to be placed.

[0049] S103. Based on the host information, find out the placement template corresponding to the host to be placed from the pre-constructed host placement template database.

[0050] It should be noted that after obtaining the host information of the host to be deployed, based on the host information, the deployment template corresponding to the host to be deployed is retrieved from the pre-constructed host deployment template database, where the host deployment template database is used to store various host deployment templates. The host deployment templates are designed according to different production environments, as shown in Table 1:

[0051]

[0052] Table 1

[0053] S104. Create a host deployment task based on the host information and the retrieved deployment template.

[0054] It should be noted that based on the host information and the retrieved deployment template, a host deployment task is created according to each deployment step in the deployment template. Among them, the deployment steps are preset in each deployment template. The above technical processes and steps of each deployment template are basically the same, and basically all include check_init_env (check initialization environment), create_brige (create bridge), create_vg (create volume group), config_env (configure environment and initialize the master machine environment), post_operation (post-operation unique to big data machines), install_kernel (install kernel), adamplus (install master machine components), install_isolate (unique to ARM environment), host_yum_update, clear_iptables (clear iptables), reboot, sleep, Check_finish_env (check the master machine deployment situation), Change_passwd, Import_into_vs (import into vs), Onlinecmdb (update the response level of the CMDB module responsible person), etc.

[0055] Each delivery step corresponds to a script and a corresponding software package. The key technical details in these delivery steps are as follows: First, check the preconfigured basic information, verify the host CPU architectures x86_64 and aarch64, verify whether it is a 25G network card model, verify the CPU model, set the download files common to subsequent steps, create a log directory, parse parameters and function callbacks, etc.; Second, in the check_init_env (check initialization environment) step, it mainly includes checking whether the kernel is tlinux, whether the CPU supports virtualization, checking whether the network card is bonding and the relevant configuration files of the network card, verifying the CPU instruction set, checking the NumaNode and viewing the ThreadHyper hyperthread count. In the create_brige (create bridge) step, it mainly completes operations such as upgrading the firmware before restart and modifying the receive and transmit ring parameters of the network card. In the create_vg step, it realizes the creation of a volume group. In the config_env (configure environment and initialize host environment) step, install rpm, kdump, jdk, cgroup, etc., and at the same time delete components such as libvirt, qemu-kvm-2.6.0-28.tl2.x86_64, iscsi-initiator-utils; Third, in the host delivery, the adamplus step of installing host components is a very important link. The related components are sorted out as shown in Table 2:

[0056]

[0057]

[0058] Table 2

[0059] S105. Execute the host delivery task and record the host delivery process.

[0060] It should be noted that after creating the host delivery task, execute the host delivery task, automatically perform the delivery of the host to be delivered, and record each step of the host delivery process.

[0061] In the method for deploying a host computer provided by an embodiment of the present application, first, a host computer deployment request is received. Then, the host computer information of the host computer to be deployed is obtained. Next, based on the host computer information, a deployment template corresponding to the host computer to be deployed is found from a pre-constructed host computer deployment template database. Then, based on the host computer information and the found deployment template, a host computer deployment task is created. Finally, the host computer deployment task is executed, and the host computer deployment process is recorded. It can be seen that by using the method of the present application, automated operation and maintenance are achieved through the task process orchestration of the front-end page. The operation and maintenance personnel do not need to understand the specific logic implementation of the back-end command line, scripts, and programming language codes. They only need to perform front-end operations, and the back-end will automatically create a host computer deployment task corresponding to the deployment template and execute it, realizing the rapid deployment of the host computer. At the same time, the deployment process can be recorded. This solves the problems in the prior art that the deployment of host computers depends relatively on manual experience, the deployment efficiency is low, and a large amount of human resources are consumed at the same time.

[0062] Optionally, in another embodiment of the present application, the above method for deploying a host computer may further include:

[0063] If multiple host deployment requests are received, host computer deployment tasks are created in sequence and stored in the database.

[0064] It should be noted that if multiple host deployment requests are received, host computer deployment tasks are created in sequence according to the time sequence, and all host computer deployment tasks are stored in the database so that each host computer deployment task can be executed in order subsequently.

[0065] Optionally, in another embodiment of the present application, the above method for deploying a host computer may further include:

[0066] If a host computer pause deployment request is received, the host computer deployment task corresponding to the host computer pause deployment request is found based on the host computer pause deployment request, and the execution of the host computer deployment task is stopped.

[0067] It should be noted that if a host computer pause deployment request sent by a user is received, the host computer deployment task corresponding to the host computer pause deployment request is found based on the host computer pause deployment request, and the execution of the host computer deployment task is stopped.

[0068] Optionally, in another embodiment of the present application, the above method for deploying a host computer may further include:

[0069] If an error occurs during the host computer deployment process, the step information of the current error occurrence is recorded.

[0070] It should be noted that if an error occurs during the host deployment process, the step information of the current error is recorded to facilitate the product responsible person to quickly locate the error location and handle the error in a timely manner.

[0071] Another embodiment of the present application also discloses a device for host deployment, as Figure 2 shown, specifically including:

[0072] A receiving unit 201 for receiving a host deployment request.

[0073] An obtaining unit 202 for obtaining the host information of the host to be deployed.

[0074] A searching unit 203 for searching for the corresponding deployment template of the host to be deployed from the pre-constructed host deployment template database based on the host information.

[0075] A first creating unit 204 for creating a host deployment task based on the host information and the searched deployment template.

[0076] An executing unit 205 for executing the host deployment task and recording the host deployment process.

[0077] In this embodiment, for the specific execution processes of the receiving unit 201, the obtaining unit 202, the searching unit 203, the first creating unit 204, and the executing unit 205, reference can be made to the content of the corresponding Figure 1 method embodiment, which will not be elaborated here.

[0078] In the device for host deployment provided by the embodiment of the present application, first, the receiving unit 201 receives a host deployment request. Then, the obtaining unit 202 obtains the host information of the host to be deployed. Next, the searching unit 203 searches for the corresponding deployment template of the host to be deployed from the pre-constructed host deployment template database based on the host information. The first creating unit 204 then creates a host deployment task based on the host information and the searched deployment template. Finally, the executing unit 205 executes the host deployment task and records the host deployment process. It can be seen that by using the method of the present application, through the task flow arrangement of the front-end page, automated operation and maintenance are realized. The operation and maintenance personnel do not need to understand the specific logic implementation of the backend command line, scripts, and programming language codes. They only need to perform front-end operations, and the backend will automatically generate the corresponding deployment template, create a host deployment task and execute it, realizing the rapid deployment of the host, and at the same time, the deployment process can be recorded. This solves the problems in the prior art that the deployment of the host depends relatively on manual experience, the deployment efficiency is low, and a large amount of human resources are consumed at the same time.

[0079] Optionally, in another embodiment of the present application, the above device for host deployment may further include:

[0080] A second creation unit, configured to, if multiple host deployment requests are received, sequentially create host deployment tasks and store them in a database.

[0081] In this embodiment, for the specific execution process of the second creation unit, reference may be made to the content of the corresponding method embodiment above, which will not be elaborated here.

[0082] Optionally, in another embodiment of the present application, the above-mentioned host deployment device may further include:

[0083] A stop unit, configured to, if a host suspension deployment request is received, find out the host deployment task corresponding to the host suspension deployment request based on the host suspension deployment request, and stop executing the host deployment task.

[0084] In this embodiment, for the specific execution process of the stop unit, reference may be made to the content of the corresponding method embodiment above, which will not be elaborated here.

[0085] Optionally, in another embodiment of the present application, the above-mentioned host deployment device may further include:

[0086] A recording unit, configured to, if an error occurs during the host deployment process, record the step information of the current error.

[0087] In this embodiment, for the specific execution process of the recording unit, reference may be made to the content of the corresponding method embodiment above, which will not be elaborated here.

[0088] Another embodiment of the present application further provides an electronic device, as Figure 3 shown, specifically including:

[0089] One or more processors 301.

[0090] A storage device 302, on which one or more programs are stored.

[0091] When the one or more programs are executed by the one or more processors 301, the one or more processors 301 are caused to implement any one of the methods in the above embodiments.

[0092] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for a system or system embodiment, since it is basically similar to a method embodiment, the description is relatively simple. For the relevant parts, reference can be made to the corresponding description in the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.

[0093] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0094] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for deploying a host, characterized in that, Including: Receiving a host machine deployment request; Obtaining the host machine information of the host machine to be deployed; Based on the host machine information, finding out the deployment template corresponding to the host machine to be deployed from the pre-constructed host machine deployment template database; wherein, the deployment steps of the host machine are preset in the deployment template; the deployment steps include checking the initialization environment, creating a bridge, creating a volume group, configuring the environment and initializing the mother machine environment, post-operations specific to big data machines, installing the kernel, installing mother machine components, ARM environment specific, clearing iptables, checking the mother machine deployment situation, importing vs and updating the response level of the CMDB module responsible person; Based on the host machine information and the found deployment template, creating a host machine deployment task; Executing the host machine deployment task and recording the host machine deployment process.

2. The method according to claim 1, characterized in that Also including: If multiple host deployment requests are received, creating host machine deployment tasks in sequence and storing them in the database.

3. The method according to claim 1, wherein Also including: If a host machine pause deployment request is received, finding out the host machine deployment task corresponding to the host machine pause deployment request based on the host machine pause deployment request and stopping the execution of the host machine deployment task.

4. The method according to claim 1, characterized in that, Also including: If an error occurs during the host machine deployment process, recording the step information where the error occurs currently.

5. A device for host delivery, characterized in that, Including: A receiving unit for receiving a host machine deployment request; An obtaining unit for obtaining the host machine information of the host machine to be deployed; A searching unit for finding out the deployment template corresponding to the host machine to be deployed from the pre-constructed host machine deployment template database based on the host machine information; wherein, the deployment steps of the host machine are preset in the deployment template; the deployment steps include checking the initialization environment, creating a bridge, creating a volume group, configuring the environment and initializing the mother machine environment, post-operations specific to big data machines, installing the kernel, installing mother machine components, ARM environment specific, clearing iptables, checking the mother machine deployment situation, importing vs and updating the response level of the CMDB module responsible person; A first creating unit for creating a host machine deployment task based on the host machine information and the found deployment template; An executing unit for executing the host machine deployment task and recording the host machine deployment process.

6. The device according to claim 5, characterized in that, Also including: A second creating unit for, if multiple host deployment requests are received, creating host machine deployment tasks in sequence and storing them in the database.

7. The device according to claim 5, characterized in that, Also including: A stopping unit for, if a host machine pause deployment request is received, finding out the host machine deployment task corresponding to the host machine pause deployment request based on the host machine pause deployment request and stopping the execution of the host machine deployment task.

8. The device according to claim 5, characterized in that Also including: A recording unit for, if an error occurs during the host machine deployment process, recording the step information where the error occurs currently.

9. An electronic device, characterized in that, Including: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, enabling the one or more processors to implement the method described in any one of claims 1 to 4.

10. A computer storage medium, characterized in that, A computer program is stored thereon, wherein when the computer program is executed by a processor, the method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Virtual machine pressure / performance test method and system

    CN112199273A

  • Host monitoring method and device

    WO2020034309A1