Automatic computing power deployment method, system, equipment and program based on cloud platform

By identifying and configuring the host network card type, the problem of low deployment efficiency and insufficient accuracy during the process of connecting to the cloud platform of Aofei computing power platform is solved, and efficient and accurate automatic deployment is achieved.

CN119966810APending Publication Date: 2025-05-09UNICLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411742680.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In the process of implementing the access of H3C Aofei computing power platform to the cloud platform, we face problems such as the differences between RoCE network cards and storage network cards, the HA IP allocation of bare metal servers, the identification and management of parameter network cards, resulting in low deployment efficiency and insufficient accuracy.

Method used

By identifying the type of network card in the host, setting type configuration items for RoCE network card, configuring HA IP, manually setting parameter network card types, and customizing orchestration templates for automatic deployment.

Benefits of technology

The deployment efficiency and accuracy of Aofei computing power platform have been improved, from the original 4-person-day to 0.5-person-day, and significantly improved the deployment accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966810A_ABST
    Figure CN119966810A_ABST
Patent Text Reader

Abstract

The invention discloses a computing power automatic deployment method, system, device and program based on a cloud platform. The method comprises the following steps: receiving a management request; identifying the type of a network card in the host; wherein when the type of the network card cannot be identified, the network card is marked, and manual configuration is carried out; and when the network card type is RoCE, querying the number and environment of RoCE network cards in the host, and setting a RoCE network card type configuration item. Through the processing scheme disclosed by the invention, the deployment efficiency is greatly improved, and the deployment accuracy is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular to a method, system, device and program for automatically deploying computing power based on a cloud platform. Background Art

[0002] H3C Aofei Computing Platform (AMPHA) provides users with convenient functions. At the same time, with the rapid promotion of the platform, it also faces the problem of difficult deployment. To address this problem, the Aofei platform is connected to the cloud platform, and the one-click automatic deployment of the Aofei platform is achieved through the management, orchestration, and computing capabilities provided by the cloud platform, saving a lot of manpower and material resources, and improving the accuracy of deployment and the user experience of the entire Aofei platform.

[0003] However, in the process of implementing the Aofei platform to access the cloud platform, we are faced with the following problems: RoCE network cards are different from previous storage network cards. Each network card needs to be assigned an IP address separately. An HA IP needs to be assigned to each bare metal server; The parameter network card obtains the IP address dynamically through DHCP. The switch is not managed in the cloud platform. Therefore, it is necessary to add a parameter network card type for separate management and maintenance. The bare metal server formats the data disk for use as ETCD, and you can specify the file system format, capacity, and mount point.

[0004] It can be seen from this that how to create an automatic deployment method of computing power based on a cloud platform has become a goal that the industry urgently needs to improve. Summary of the invention

[0005] In view of this, an embodiment of the present disclosure provides a method for automatic deployment of computing power based on a cloud platform, which at least partially solves the problems existing in the prior art.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for automatically deploying computing power based on a cloud platform, the method comprising the following steps: Receive management requests; Identify the type of the network card in the host; wherein, when the type of the network card cannot be identified, mark the network card and perform manual configuration; When the network card type is RoCE, query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration items.

[0007] According to a specific implementation of the embodiment of the present disclosure, the identifying the type of the network card in the host includes: Learn the type of network card through MAC address.

[0008] According to a specific implementation of an embodiment of the present disclosure, when the network card type is RoCE, the number and environment of RoCE network cards in the host are queried, and the RoCE network card type configuration item is set, including: When you need to build a cloud-native cluster, select an SSD data disk as the disk for ETCD, select a 50G capacity, format the file system using ext4, and finally mount it to the file system; When network isolation is implemented for different tenants, network isolation is implemented by configuring port-based ACLs. When scene independence is required, the bare metal server needs to be configured with a RoCE network card and different network card types need to be assigned to different MACs. When network resources are limited, configure DHCP. After bare metal servers are managed, users can specify the parameter network card type on the page according to different server models. The name of the network card corresponding to the parameter network card is written into a file by initializing the bare metal server. When the CCE cluster is started, the parameter network card name is read from the file and then passed to the open source macVlan component. When improving the availability of the business server, configure the HA IP, select the MAC of the first network card from the RoCE network card list as the HA network card, and provide it with an HA IP through unified network management to monitor the heartbeat from the host to the storage cluster.

[0009] According to a specific implementation of the embodiment of the present disclosure, the method further includes: Customize the orchestration template according to the user's specified configuration: If the bare metal server supports ETCD, the ETCD mounting path, partition format, and ETCD disk capacity in the delivery order will be sent to the host, and the heartbeat IP resources will be configured. When configuring a RoCE network card for a bare metal server, query the number of RoCE network cards managed in the host, set different network card types for each network card, and allocate a RoCE IP to the network service; When the bare metal server is configured with DHCP, the manually configured network card MAC parameters are sent to the underlying host for configuration.

[0010] According to a specific implementation of the embodiment of the present disclosure, the method further includes: The MAC address of the network card specified by the user is sent to the underlying host, which writes it into the / etc / ampha.conf file of the bare metal server system to complete the DHCP configuration and notify the CCE service.

[0011] In a second aspect, an embodiment of the present disclosure provides a computing power automatic deployment system based on a cloud platform, the system comprising: A management module is configured to receive a management request; A network card configuration module is configured to identify the type of the network card in the host; wherein, when the type of the network card cannot be identified, the network card is marked and manually configured; The orchestration process module is configured to query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration items when the network card type is RoCE.

[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor implements the method for automatic deployment of computing power based on a cloud platform as described in any one of the first aspect or any one of the implementations of the first aspect.

[0013] In a fourth aspect, an embodiment of the present disclosure further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the cloud platform-based automatic computing power deployment method in the aforementioned first aspect or any implementation of the first aspect.

[0014] The cloud platform-based computing power automatic deployment method in the disclosed embodiment greatly improves the deployment efficiency from the original 4 man-days to 0.5 man-days after connecting the Aofei computing power to the cloud platform. At the same time, the deployment accuracy is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0016] Figure 1 A schematic diagram of a process flow of a cloud platform-based automatic computing power deployment method provided in an embodiment of the present disclosure; Figure 2 A schematic diagram of a host network provided in an embodiment of the present disclosure; Figure 3 A flowchart of a method for automatically deploying computing power based on a cloud platform provided in an embodiment of the present disclosure; Figure 4 A schematic diagram of a cloud platform-based computing power automatic deployment system structure provided in an embodiment of the present disclosure; and Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0018] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0019] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement a device and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0020] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0021] With the rapid promotion of the Aofei computing platform, manual deployment is far from meeting the needs of the market. Therefore, in order to improve the efficiency of deployment and operation and maintenance, the Aofei computing platform is connected to the cloud platform to achieve one-click automatic deployment of the Aofei platform. In order to reduce the invasiveness of new businesses to the cloud platform, the existing modules are expanded and transformed, including: management module, network card configuration module, and orchestration process module.

[0022] In view of the problems encountered in the prior art, the present invention proposes the following solutions: 1. Different from the previous storage network cards that are bonded, a new RoCE network card type is added. This type of network card allocates an IP to each MAC, and each IP belongs to a different subnet. Therefore, the type of RoCE network card also needs to be refined, such as RoCE1 and RoCE2. 2. Assign HA IP to the MAC of RoCE1 network card type on each host; 3. Since the parameter network switch is not managed in the cloud platform, the parameter network card type cannot be identified when the host is managed. You need to manually set the network card type after the host is managed. 4. Supports users to specify the file system format, capacity and mount point. As ETCD, when creating a bare metal server with one click, this configuration item is preset and passed in by the access party.

[0023] Figure 1 A schematic diagram of the process of the automatic deployment method of computing power based on a cloud platform provided in an embodiment of the present disclosure.

[0024] like Figure 1 As shown, at step S110, a management request is received.

[0025] More specifically, the process proceeds to step S120.

[0026] In step S120, the type of the network card in the host is identified; wherein, when the type of the network card cannot be identified, the network card is marked and manually configured.

[0027] In the embodiment of the present invention, identifying the type of the network card in the host includes: learning the type of the network card through the MAC address.

[0028] Next, go to step S130.

[0029] At step S130, when the network card type is RoCE, the number and environment of RoCE network cards in the host are queried, and the RoCE network card type configuration item is set.

[0030] In an embodiment of the present invention, when the network card type is RoCE, the number and environment of RoCE network cards in the host are queried, and the RoCE network card type configuration item is set, including: When you need to build a cloud-native cluster, select an SSD data disk as the disk for ETCD, select a 50G capacity, format the file system using ext4, and finally mount it to the file system; When network isolation is implemented for different tenants, network isolation is implemented by configuring port-based ACLs. When scene independence is required, the bare metal server needs to be configured with a RoCE network card and different network card types need to be assigned to different MACs. When network resources are limited, configure DHCP. After bare metal servers are managed, users can specify the parameter network card type on the page according to different server models. The name of the network card corresponding to the parameter network card is written into a file by initializing the bare metal server. When the CCE cluster is started, the parameter network card name is read from the file and then passed to the open source macVlan component. When improving the availability of the business server, configure the HA IP, select the MAC of the first network card from the RoCE network card list as the HA network card, and provide it with an HA IP through unified network management to monitor the heartbeat from the host to the storage cluster.

[0031] In an embodiment of the present invention, the method further includes: Customize the orchestration template according to the user's specified configuration: If the bare metal server supports ETCD, the ETCD mounting path, partition format, and ETCD disk capacity in the delivery order will be sent to the host, and the heartbeat IP resources will be configured. When configuring a RoCE network card for a bare metal server, query the number of RoCE network cards managed in the host, set different network card types for each network card, and allocate a RoCE IP to the network service; When the bare metal server is configured with DHCP, the manually configured network card MAC parameters are sent to the underlying host for configuration.

[0032] In an embodiment of the present invention, the method further includes: The MAC address of the network card specified by the user is sent to the underlying host, which writes it into the / etc / ampha.conf file of the bare metal server system to complete the DHCP configuration and notify the CCE service.

[0033] More specifically, the present invention is described below by way of examples.

[0034] like Figure 2 As shown ( Figure 2 Only the network connectivity of host 1 is described. The other hosts are similar.) The cloud platform-based Aofei computing power one-click automatic deployment solution includes a management module, a network card configuration module, and an orchestration process module.

[0035] 1. The management module is used to manage host information. Since the parameter network switch is not managed on the cloud platform, this type of network card cannot be correctly identified when the host is managed. Therefore, after the host is managed, it is necessary to mark the network card of the host that is not identified and manually configure the parameter network card. The specific steps include: (1) Synchronous network switches; (2) Managed host: Read the host's memory, CPU, network card, HBA card and other information from the host bottom layer, and store the data in the database of the computing layer; (3) For network cards whose types are not identified, manually specify the parameter network card type on the operation and maintenance management platform.

[0036] 2. The network card configuration module is used to refine the RoCE network card type. For example, if there are two storage network cards in the host, the network card types are RoCE1 and RoCE2 respectively. By distinguishing the network card types, the Mac is mapped to the specified switch to achieve network interconnection and isolation between subnets. The specific steps include: (1) Query the number of RoCE network cards in the host; (2) Depending on the environment, set the RoCE network card type configuration items to improve scalability and maintainability.

[0037] 3. The orchestration process module is used to transform and create the orchestration process of bare metal servers to adapt to the access scenario of the Aofei computing platform. It specifically includes the following steps: (1) Adjust the orchestration process template to adapt to the Aofficial scenario, and add the tasks of allocating RoCE network card IP and allocating HA IP; (2) In the delivery order, the user specifies whether to support ETCD, whether to configure the RoCE network card, and whether to configure DHCP. This determines whether to configure a heartbeat IP, whether to allocate multiple IP addresses to the storage network card or to allocate a shared IP address as a bond, and whether to send the parameter network card to the underlying host. The configuration is based on the following scenarios: (2-1) If you need to build a cloud-native cluster, the bare metal server needs to support ETCD. Select an SSD data disk as the ETCD disk, select a 50G capacity, format the file system using ext4, and finally mount it to the file system.

[0038] (2-2) The IaaS storage service is based on the public key / private key method of CX storage, so that different tenants can only access the GPFS services they apply for, thereby isolating different tenants. The RoCE storage switch managed by the cloud platform can achieve network isolation for different tenants by configuring port-based ACL. When scene independence is required, the bare metal needs to be configured with a RoCE network card and different network card types must be assigned to different macs.

[0039] (2-3) According to the actual situation, if the network resources are tight, you need to configure DHCP. The bare metal server supports the configuration of fixed network card names and DHCP for the parameter network cards of R55 and R53 servers. According to different server models, after the bare metal server is managed, the user specifies the parameter network card type on the page. By initializing the bare metal server, the network card name corresponding to the parameter network card is written to the file. When the CCE cluster is started, the parameter network card name is read from the file and then passed to the open source macVlan component.

[0040] (2-4) To improve the availability of the business server, it is recommended to configure the HA IP, select the MAC of the first network card from the RoCE network card list as the HA network card, and provide it with an HA IP through unified network management to monitor the heartbeat from the host to the storage cluster.

[0041] (3) Customize the orchestration template according to the user's specified configuration: (3-1) If the bare metal server supports ETCD, send the ETCD mount path, partition format, and ETCD disk capacity in the delivery order to the host, and prepare to configure the heartbeat IP resources so that the IP address can be allocated to the network service during the bare metal server creation process.

[0042] (3-2) If the bare metal server is configured with a RoCE network card, query the number of RoCE network cards managed in the host, set a different network card type for each network card, assign the network card type configured by the network card configuration module to each network card in turn, and allocate a RoCE IP to the network service.

[0043] (3-3) If the bare metal server is configured with DHCP, the network card MAC parameter manually configured by the management module is sent to the underlying host for configuration.

[0044] At this point, the automated deployment of Aofei computing power is completed.

[0045] like Figure 2 As shown in the figure, each host has two network cards, the network card types are RoCE1 and RoCE2 respectively. Different types of network cards are assigned different subnet IPs. The network inside the subnet is connected, and the network between different subnets is isolated. Each host is assigned a heartbeat IP, which is divided from a separate subnet and used for ETCD synchronization heartbeat.

[0046] like Figure 3 The figure below shows the deployment and delivery process of the entire bare metal server: 1. The operation and maintenance personnel send a request from the operation and maintenance management platform (UCO) to the computing service (UCA|compute-core) to manage the bare metal server.

[0047] 2. The computing service compute-core identifies the machine model and selects an appropriate method (this platform supports multiple management methods such as redfish, restful, and pxe) to read the host's CPU, memory, network card, HBA card and other information.

[0048] 3. For the type of network card, you need to read it from the network service network.

[0049] 4. The network service (uca-network) goes to the DMZ area and learns the type of network card through the MAC address (in this case, the storage switch needs to be adapted, and different network segments are divided according to different MAC logics to identify different network card types). Because the parameter switch is not managed in the cloud platform, the parameter network card type cannot be identified.

[0050] 5. For unrecognizable network card types, the operation and maintenance personnel will identify the parameter network card range.

[0051] 6. At this point, the bare metal server host is managed.

[0052] When a bare metal server is instantiated, because the cloud platform does not manage parameter switches, the MAC of the parameter network card specified by the user needs to be sent to the underlying host pxe-agent, which writes it to the / etc / ampha.conf file of the bare metal server system to complete the DHCP configuration and notify the CCE service.

[0053] Figure 4 The cloud platform-based computing power automatic deployment system 400 provided by the present invention is shown, including a management module 410, a network card configuration module 420 and an orchestration process module 430.

[0054] The management module 410 is used to receive a management request; The network card configuration module 420 is used to identify the type of the network card in the host; wherein, when the type of the network card cannot be identified, the network card is marked and manually configured; The orchestration process module 430 is used to query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration item when the network card type is RoCE.

[0055] See also Figure 5 The present disclosure also provides an electronic device 50, which includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cloud platform-based automatic deployment method of computing power in the aforementioned method embodiment.

[0056] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the cloud platform-based automatic deployment method of computing power in the aforementioned method embodiment.

[0057] The embodiments of the present disclosure also provide a computer program product, which includes a computing program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer, enable the computer to execute the cloud platform-based computing power automatic deployment method in the aforementioned method embodiment.

[0058] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 50 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0059] like Figure 5 As shown, the electronic device 50 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 50 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0060] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication device 509 may allow the electronic device 50 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 50 having various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0061] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0062] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0063] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0064] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.

[0065] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.

[0066] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0067] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0068] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0069] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.

[0070] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for automatic deployment of computing power based on a cloud platform, characterized in that: The method comprises the following steps: Receive management requests; Identify the type of the network card in the host; wherein, when the type of the network card cannot be identified, mark the network card and perform manual configuration; When the network card type is RoCE, query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration items.

2. The method for automatic deployment of computing power based on a cloud platform according to claim 1, characterized in that: The identifying the type of the network card in the host includes: Learn the type of network card through MAC address.

3. The method for automatic deployment of computing power based on a cloud platform according to claim 1, characterized in that: When the network card type is RoCE, query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration items, including: When you need to build a cloud-native cluster, select an SSD data disk as the disk for ETCD, select a 50G capacity, format the file system using ext4, and finally mount it to the file system; When network isolation is implemented for different tenants, network isolation is implemented by configuring port-based ACLs. When scene independence is required, the bare metal server needs to be configured with a RoCE network card and different network card types need to be assigned to different MACs. When network resources are limited, configure DHCP. After bare metal servers are managed, users can specify the parameter network card type on the page according to different server models. The name of the network card corresponding to the parameter network card is written into a file by initializing the bare metal server. When the CCE cluster is started, the parameter network card name is read from the file and then passed to the open source macVlan component. When improving the availability of the business server, configure the HA IP, select the MAC of the first network card from the RoCE network card list as the HA network card, and provide it with an HA IP through unified network management to monitor the heartbeat from the host to the storage cluster.

4. The method for automatic deployment of computing power based on a cloud platform according to claim 1, characterized in that: The method further comprises: Customize the orchestration template according to the user's specified configuration: If the bare metal server supports ETCD, the ETCD mounting path, partition format, and ETCD disk capacity in the delivery order will be sent to the host, and the heartbeat IP resources will be configured. When configuring a RoCE network card for a bare metal server, query the number of RoCE network cards managed in the host, set different network card types for each network card, and allocate a RoCE IP to the network service; When the bare metal server is configured with DHCP, the manually configured network card MAC parameters are sent to the underlying host for configuration.

5. The method for automatic deployment of computing power based on a cloud platform according to claim 1, characterized in that: The method further comprises: The MAC address of the network card specified by the user is sent to the underlying host, which writes it into the / etc / ampha.conf file of the bare metal server system to complete the DHCP configuration and notify the CCE service.

6. A computing power automatic deployment system based on a cloud platform, characterized in that: The system comprises: A management module is configured to receive a management request; A network card configuration module is configured to identify the type of the network card in the host; wherein, when the type of the network card cannot be identified, the network card is marked and manually configured; The orchestration process module is configured to query the number and environment of RoCE network cards in the host and set the RoCE network card type configuration items when the network card type is RoCE.

7. An electronic device, characterized in that: The electronic device includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor executes the cloud platform-based computing power automatic deployment method as described in any one of claims 1 to 5.

8. A computer program product, characterized in that The computer program product includes a computing program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the cloud platform-based computing power automatic deployment method as described in any one of claims 1 to 5.