CN112019366A - Leasing method and device of physical host, cloud platform and readable storage medium - Google Patents

Leasing method and device of physical host, cloud platform and readable storage medium Download PDF

Info

Publication number
CN112019366A
CN112019366A CN201910471456.9A CN201910471456A CN112019366A CN 112019366 A CN112019366 A CN 112019366A CN 201910471456 A CN201910471456 A CN 201910471456A CN 112019366 A CN112019366 A CN 112019366A
Authority
CN
China
Prior art keywords
physical host
vpc
user
physical
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910471456.9A
Other languages
Chinese (zh)
Other versions
CN112019366B (en
Inventor
张维婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910471456.9A priority Critical patent/CN112019366B/en
Priority to PCT/CN2020/092305 priority patent/WO2020238891A1/en
Publication of CN112019366A publication Critical patent/CN112019366A/en
Application granted granted Critical
Publication of CN112019366B publication Critical patent/CN112019366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The embodiment of the application provides a leasing method and device of a physical host, a cloud platform and a readable storage medium, and relates to the technical field of virtual networks. The method comprises the steps that a cloud platform is applied, firstly, a leasing request of a physical host of a user is received, wherein the physical host is a physical host which can be sold and selected by the user; secondly, acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources; and finally, adding the physical host after installation into the appointed virtual private cloud VPC for the user to use. According to the method, the physical host selected by the user can be installed and then added into the VPC, and the physical host can be quickly established and deployed on the public cloud platform and virtual network configuration can be carried out.

Description

Leasing method and device of physical host, cloud platform and readable storage medium
Technical Field
The application relates to the technical field of virtual networks, in particular to a leasing method and device of a physical host, a cloud platform and a readable storage medium.
Background
The current application of cloud computing platforms is very wide, and in the face of increasingly numerous cloud computing application scenarios, public cloud service providers often provide not only cloud host services but also computing services of physical hosts, and particularly with the explosive growth of the artificial intelligence AI industry, the strong demands on the physical hosts of the gpu (graphics Processing unit) develop how to quickly and effectively create and deploy the physical hosts on the public cloud platforms and perform virtual network configuration, and provide safe and reliable resource protection and monitoring services, which becomes a difficult task to be solved by the current public cloud service providers.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for leasing a physical host, a cloud platform and a readable storage medium, so as to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for leasing a physical host, which is applied to a cloud platform, and the method includes:
receiving a lease request of a physical host of a user, wherein the physical host leased by the user is a physical host selected by the user from sellable physical hosts;
acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources;
after the installation processing is completed, adding the physical host into a designated Virtual Private Cloud (VPC) so as to deploy the physical host as a computing node in the VPC for the user to use, wherein the VPC is also deployed with a cloud host serving as the computing node.
Optionally, in this embodiment, acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources includes:
and setting the network state of the physical host to enable the physical host to obtain installation configuration information through a network, and completing installation according to the installation configuration information.
Optionally, in this embodiment, the method further includes:
and applying for the physical host to an elastic public network IP, and binding the applied elastic public network IP with the physical host so that the physical host can access the public network.
Optionally, in this embodiment, adding the physical host to the specified VPC includes:
establishing a binding relationship between the physical host and the designated VPC;
determining switch configuration information corresponding to the physical host, and issuing the switch configuration information to switch equipment corresponding to the physical host in the VPC;
and restarting the physical host to enable the physical host to acquire the private IP of the specified VPC.
Optionally, in this embodiment, the switch device includes a PDN gateway and a TOR of a top-of-rack switch, where configuration information of the PDN gateway includes DHCP protocol configuration information and VPC configuration information, and configuration information of the TOR includes a physical interface, a tunnel, and a virtual router.
Optionally, in this embodiment, the step of adding the physical host to the specified VPC further includes:
adding an uplink interface of the physical host to the virtual router;
and establishing communication between the uplink interface and the PDN gateway through a tunnel established by the virtual router so as to enable the uplink interface to join the VPC, wherein the PDN gateway is used for accessing the VPC.
Optionally, in this embodiment, the method further includes:
when the user deletes the physical host, recovering the deleted physical host; or
And when the lease term of the physical host expires and the user does not continue to spend time, recycling the physical host.
Optionally, in this embodiment, before the receiving a lease request of a physical host of a user, the method further includes:
providing the user with vendable physical host information for inventory;
after the receiving a lease request of a physical host of a user, the method further comprises:
freezing the information of the physical host which can be sold in stock, and generating an order requesting the physical host;
and releasing and updating the sold physical host information of the inventory if the user is detected to complete the payment of the order.
In a second aspect, an embodiment of the present application further provides a rental apparatus for a physical host, which is applied to a cloud platform, and the apparatus includes:
the system comprises a receiving module, a leasing module and a control module, wherein the receiving module is used for receiving a leasing request of a physical host of a user, and the physical host leased by the user is a physical host selected from sellable physical hosts by the user;
the acquisition module is used for acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources;
and the adding module is used for adding the physical host into a designated Virtual Private Cloud (VPC) after the installation processing is finished so as to deploy the physical host as a computing node in the VPC for the user to use, wherein the VPC is also deployed with a cloud host serving as the computing node.
In a third aspect, an embodiment of the present application further provides a cloud platform, where the cloud platform includes a processor and a nonvolatile memory in which computer instructions are stored, and when the computer instructions are executed by a switch, the method for leasing the physical host in the first aspect is implemented.
In a fourth aspect, the embodiments of the present application further provide a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when running, an electronic device on which the readable storage medium is located to execute the method for leasing the physical host in the first aspect.
Compared with the prior art, the method has the following beneficial effects:
the embodiment of the application provides a leasing method and device of a physical host, a cloud platform and a readable storage medium. The method comprises the steps that a cloud platform is applied, firstly, a leasing request of a physical host of a user is received, wherein the leasing request of the physical host comprises a physical host which can be sold and selected by the user; secondly, acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources; and finally, adding the physical host after installation into the appointed virtual private cloud VPC for the user to use. According to the method, the physical host selected by the user can be installed and then added into the VPC, and the physical host can be quickly established and deployed on the public cloud platform and virtual network configuration can be carried out.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of a leasing system of a physical host according to an embodiment of the present disclosure;
fig. 2 is a schematic block diagram of a cloud platform according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a leasing method of a physical host according to an embodiment of the present disclosure;
fig. 4 is a second flowchart illustrating a leasing method of a physical host according to an embodiment of the present application;
fig. 5 is a process diagram of a network configuration of a physical host according to an embodiment of the present application;
fig. 6 is a process diagram of a network configuration of a physical host according to an embodiment of the present application;
FIG. 7 is a flowchart and a large-scale deployment scenario for a cloud platform according to an embodiment of the present disclosure;
FIG. 8 is a functional block diagram of a rental apparatus of a physical host according to this embodiment;
fig. 9 is a second functional block diagram of the rental apparatus of the physical host according to the present embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The existing public cloud platform provides physical host services for a virtual network environment in two ways:
one is to deploy a set of independent physical host cluster, and communicate with a virtual Private cloud VPC of a cloud host in a public cloud environment in a Private line or vpn (virtual Private network) manner, so that the physical host connected to the network can perform data communication with the cloud host in the virtual network.
The other method is to plan a virtual private cloud VPC of an independent physical host cluster, and manage corresponding functions of a virtual network by taking the physical host as a cloud host computing node.
Both of the above approaches have drawbacks:
the first method can ensure that all computing resources in a public cloud environment are mutually network-reachable, but a physical host cluster is not really in a virtual private cloud VPC, and many VPC characteristics cannot be realized, such as binding an elastic IP, configuring a security group, and the like. The second way, although the physical host may possess the characteristics of the VPC, there is a limitation in network connectivity because it is independent of the VPC outside the cloud host.
In addition, the physical host needs to provide a public cloud service which is elastic, safe and reliable as a cloud host, and also needs to interact with modules such as resource deployment, safety protection, monitoring service and the like, so as to form an automatic, convenient and configurable service for users.
In order to solve the above defects in the prior art, embodiments of the present application provide a leasing method and apparatus for a physical host, a cloud platform, and a readable storage medium.
Fig. 1 is a schematic diagram of a physical host rental system 1 according to an embodiment of the present disclosure. The physical host leasing system 1 includes a physical host 10, a cloud platform 20, a router 30, a switch 40, and a PDN gateway 50 (PGW).
The physical host 10 communicates with the cloud platform 20, and the cloud platform 20 receives a user operation.
The PDN network manager 50 is configured to access a virtual private cloud VPC, the physical host 10 is connected to the PDN network manager 50 through the router 30 and the switch 40, and the physical host 10 can join the virtual private cloud VPC by performing network configuration on the router 30, the switch 40, and the PDN network manager 50.
Fig. 2 is a schematic block diagram of a cloud platform 20 according to an embodiment of the present disclosure. Cloud platform 20 includes rental devices 210 of physical hosts, memory 220, processor 230, and communication unit 240.
The memory 220, the processor 230 and the communication unit 240 may be directly or indirectly electrically connected to each other to realize data transmission or interaction. The rental means 210 of the physical host includes at least one computer program or software functional module that can be stored in the memory 220 in the form of software (software) or firmware (firmware), and the processor 230 is configured to execute an executable module stored in the memory 220, such as the rental means 210 of the physical host stored in the memory 220. The communication unit 240 is configured to establish a communication connection between the physical host 10 and the cloud platform 20 and other devices through a network, and is configured to receive and transmit data through the network.
It should be understood that the cloud platform 20 may also include more or fewer components than shown in fig. 2, and may have a completely different configuration than shown in fig. 2, which is not limited by the present embodiment. The components shown in fig. 2 may be implemented by software, hardware, or a combination thereof. Correspondingly, the cloud platform 20 may also be implemented by hardware and/or software.
Fig. 3 is a schematic flowchart of a leasing method applicable to a physical host of the cloud platform 20 in fig. 1 according to an embodiment of the present disclosure. The specific procedures and steps of the method are described in detail below.
Step S310, a lease request of a physical host of a user is received.
Referring to fig. 4, in the embodiment of the present application, before step S310, the method further includes:
step S309 provides the user with vendable physical host information for the inventory.
Before the user selects a physical host 10 on the cloud platform 20, the user can query the information of the physical host 10 through the cloud platform 20, obtain the information of the physical host which can be used for selling from the inventory, and display the information of the physical host which can be used for selling to the cloud platform 20, so that the user can select the physical host which can be used for selling to generate a leasing request of the physical host.
In the present embodiment, the inventory refers to a database for recording the status of the physical host, wherein the status of the physical host 10 includes a non-vendable status and a vendable status. The inventory can be saved to the cloud platform 20, or can be saved by other cloud end devices, and the cloud platform 20 obtains inventory information by accessing the cloud end devices.
Referring to fig. 4 again, in the embodiment of the present application, after step S310, the method may further include:
step S311 is to freeze the information of the vendable physical hosts in the stock and generate an order of the requested physical host.
When the stock of the physical host is frozen, other users can not carry out the transaction of the physical host, thereby preventing the transaction from conflicting. Alternatively, the entire inventory may be frozen, or only the physical hosts 10 in the inventory that are to be paid for may be frozen.
In step S312, if it is detected that the user completes the payment of the order, the vendable physical host information in the stock is released and updated.
And after the payment of the order is finished, releasing and updating the sold physical host state information in the stock after the payment.
And step S320, acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources.
In this embodiment, an automatic installation of the selected physical host 10 is required. The user may set the network status of the physical host 10 through an Intelligent Platform Management Interface (IPMI) on the cloud platform 20, so that the physical host 10 may obtain data (such as installed resources) through the network.
After the network start state of the physical host 10 is set, the physical host 10 may send a DHCP request to obtain an IP of an operation and maintenance management network from a network (e.g., an operation and maintenance management network), obtain installed configuration information from the operation and maintenance management network, and pull mirror image data according to the installed configuration information to start installation. In the installation process, the installation state of the physical host 10 needs to be monitored, and specifically, whether the installation state of the physical host 10 is updated can be determined by monitoring the installation identifier in the physical host 10. In this embodiment, optionally, the installation completion condition of the physical host 10 may be queried in a polling manner. And when the polling is completed to the physical host installation, the flow proceeds to step S330.
And step S330, adding the physical host into the designated virtual private cloud VPC after the installation processing is finished.
In this embodiment, step S330 may be implemented by the following steps:
first, a binding relationship of the physical host 10 to a specified VPC is established.
Next, the switch configuration information corresponding to the physical host 10 is determined, and the switch configuration information is issued to the switch device corresponding to the physical host 10 in the VPC.
Finally, the physical host 10 is restarted so that the physical host 10 acquires the private IP of the specified VPC.
In this embodiment, the switch devices include the PDN gateway 24 and the top of rack switch TOR, and before the physical host 10 is added to the VPC, the access network device accessing the VPC needs to be configured, that is, the router 22 and the PDN gateway 24 need to be configured. The specific configuration may be as follows:
the manager can enter data related to the router 22 and the physical host 10 in the background, and complete the registration of the physical host 10 with the resource in the cloud platform.
And (3) inputting parameters:
#1 TOR management ip/Online switch management ip for automated configuration and inspection/of switches;
#2 TOR datapath ip/data traffic of the upstream switch, mainly traffic with other TORs and PGWs/;
#3 TOR index range)/Port identification number range of the UPnP switch, the identification number range will be different for different device models;
#4 enabled (0 or 1)/for identifying whether it has joined the virtual private cloud VPC, 1 for joining and 0 for not joining/.
Registering physical hosts on a router
And (3) inputting parameters:
#1 TOR mgt ip/IP for automatic configuration and inspection of the switches;
#2 TOR index number (one-to-one relationship with #3 Downlink Physical host MAC)/Port ID of the UPnP switch, ID of different types of devices are described differently, and are limited to value/within index range of the device;
#3 TOR Downlink Physical host MAC (one-to-one relationship with #2 index number)/MAC address of Physical host >
After the cloud platform administrator initializes, the computing resources of the registered physical host 10 can be normally leased and used. The use of the physical host 10 by the user is the same as the use of the virtual host. Selecting a virtual network created by itself in the cloud platform 20 creates the physical host 10 and configures network resources. The user may effect registration of the physical host by the incoming parameters described above when registering the physical host 10.
To ensure that the high performance physical host access works properly, the router 22 and PDN gateway 24 need to be configured as follows.
The router is configured with physical interfaces, connection tunnels, virtual routers, and the like. And carrying out configuration such as a DHCP protocol, a VPC and the like on the PDN gateway. After an uplink interface corresponding to a network card of a physical machine is added into a virtual router, communication between the uplink interface and a PDN gateway is established through a tunnel established in the virtual router, and a physical host can communicate with an area where the virtual machine is located, the Internet and a private cloud of a user after acquiring a private ip of a virtual private cloud VPC through a DHCP Client.
Optionally, when the PDN gateway is configured, the resources listed in the PGW assets may all be corresponded in the neutron vpc existing implementation, and the physical host 10 is regarded as a virtual machine to treat that an additional database table (DB table) is not required to be added.
When configuring a router, data persistence may be guaranteed by adding three tables (e.g., KscTor, ksctorttunnel, kscpyhost).
When interface configuration is performed, a cloud platform administrator can perform operations such as creation, deletion, configuration and the like on a physical host through the following function interfaces.
Create_ksctors、delete_ksctors、get_ksctors
The parameter carried by create _ ksctor is called as described above for the usage specification (register TOR).
Create_phyhosts/delete/get
Calling create _ phyhosts requires the incoming parameters to be as described above for use (registration of Physical Host).
The operations of creation, deletion, configuration and the like of the physical host 10 in the virtual network and the original virtual machine operations are treated equally, and users do not feel.
In this embodiment, the method may further include the step of recovering the physical host 10, and specifically, the step of recovering the physical host 10 may be:
when the user deletes the physical host 10, recovering the deleted physical host 10; or
When the lease period of the physical host 10 expires without a user continuing the time, the physical host 10 is reclaimed.
The process of leasing a specific physical host, including the process of creating a physical host and the process of network configuring the created physical host, is described as an example.
Referring first to fig. 5, fig. 5 is a flowchart illustrating a physical host creation process, in which a console, a physical host OpenAPI, an inventory system, an order system, a transaction payment, a physical host IPMIAPI, and a binding resource may be provided as functional modules for the cloud platform 20, and the functional modules may be distributed in different servers and executed by different servers. The physical host creation process is as follows: the user inquires the sellable physical host information from the inventory system through the control console, and the inventory system feeds the found sellable physical host information back to the control console; then, the user submits the physical host information through the console, and the sellable physical host information in the inventory system is inquired and frozen; then, after the user selects the selling physical host 10, the physical host request is sent to the order system through the physical host OpenAPI, the order system sends the order payment request to the transaction payment system, after the transaction is completed, the order information of the physical host which is paid successfully is returned, and the inventory system releases and updates the inventory information; and then, requesting the physical host IPMI API to open the physical host 10 through the physical host OpenAPI, returning a response of successfully opening the physical host 10 after the physical host IPMI API is successfully opened, requesting physical host resource binding to the bound resource through the physical host OpenAPI, and returning physical host resource information to the console through the physical host OpenAPI after the response of resource binding is returned.
Referring to fig. 6, fig. 6 shows a process of network configuration of the physical host 10. After the resource information of the physical host 10 is obtained, the information for creating the physical host 10 is submitted through the console to request the automatic installation Server to install the physical host 10, request VPC binding of the physical host 10 to a VPC API, request EIP binding of the physical host 10 to EIP, or request other resources to other cloud products, and the resource information of the physical host fed back by the VPC API, the EIP and other cloud products is fed back to the console; and (3) carrying out resource installation in the process of starting the physical host 10, finally feeding back the installation condition of the physical host 10 to the console, and updating the state of the physical host 10 displayed on the console.
Referring to fig. 7, fig. 7 shows a large-scale deployment situation of the cloud platform in this embodiment, and a flow in the deployment situation is described below.
Firstly, an open platform (open API) receives a creation request, acquires an available physical host 10 from a scheduler (scheduler), and sets a network starting state of the physical host 10 through an Intelligent Platform Management Interface (IPMI) by the open platform; next, the physical host 10 initiates a DHCP request to obtain an IP address from the operation and maintenance management network, and the physical host 10 obtains installed configuration information of the physical host 10 from an internal API (inner-API). The physical host 10 acquires mirror image data from the operation and maintenance management network and starts to install the mirror image data; then, updating the installation state of the physical host 10 in the installation process, and if the installation state update of the physical host 10 is detected, calling a related interface of the VPC to add the VPC network; and finally, the virtual network issues the configuration information of the switch to the physical host 10, and the VPC private IP is obtained through the switch after the physical host 10 is restarted, so as to update the final state of the physical host 10.
In the method, the physical host 10 may naturally access the virtual network environment, and may perform the same virtual network configuration and function joint management with the cloud host, including the functions of the flexible IP, the virtual gateway, the security group, and the like. And provides high network performance between the physical host 10 and the virtual machine.
The embodiment of the application also provides a leasing device of the physical host, and the leasing device of the physical host is a virtual device corresponding to the method. It is to be understood that the specific functions of the respective functional modules involved in the rental apparatus of the physical host to be described next have been described in detail in the corresponding steps of the above embodiments, and the detailed contents of the specific respective functional modules can be described with reference to the above embodiments, and only the rental apparatus of the physical host will be briefly described below.
Referring to fig. 8, the rental apparatus 210 of the physical host provided in this embodiment may include:
a receiving module 2101 is configured to receive a lease request of a physical host of a user, wherein the physical host leased by the user is a physical host selected by the user from the vendable physical hosts.
An obtaining module 2102 configured to obtain installed resources of a physical host and perform installed processing on the physical host based on the installed resources.
In this embodiment, the obtaining module 2102 is specifically configured to:
and setting the network state of the physical host to enable the physical host to obtain installation configuration information through a network, and completing installation according to the installation configuration information.
An adding module 2103, configured to add a physical host to a designated virtual private cloud VPC after the installation processing is completed, so as to deploy the physical host as a computing node in the VPC for the user to use, where a cloud host serving as the computing node is also deployed in the VPC.
In this embodiment, the adding module 2103 is further configured to:
establishing a binding relationship between the physical host and the designated VPC;
determining switch configuration information corresponding to the physical host, and issuing the switch configuration information to switch equipment corresponding to the physical host in the VPC;
and restarting the physical host to enable the physical host to acquire the private IP of the specified VPC.
In this embodiment, the switch device includes a PDN gateway and a TOR, where configuration information of the PDN gateway includes DHCP protocol configuration information and VPC configuration information, and configuration information of the TOR includes a physical interface, a tunnel, and a virtual router.
Further, in this embodiment, the adding module 2103 is further configured to:
adding an uplink interface of the physical host to the virtual router;
and establishing communication between the uplink interface and the PDN gateway through a tunnel established by the virtual router so as to enable the uplink interface to join the VPC, wherein the PDN gateway is used for accessing the VPC.
Referring to fig. 9, in the embodiment, the rental apparatus 210 of the physical host may further include: an apply and bind module 2104;
the application and binding module 2104 is configured to apply for the physical host for the elastic public network IP, and bind the applied elastic public network IP with the physical host, so that the physical host can access the public network.
Further, referring again to fig. 9, the rental apparatus 210 of the physical host may further include:
a physical host recovery module 2105, configured to recover, when the user deletes the physical host, the deleted physical host; or when the lease term of the physical host expires and the user does not continue to spend time, the physical host is recycled.
Further, referring again to fig. 9, the rental apparatus 210 of the physical host may further include: an information providing module 2106, an information freezing module 2107 and an information releasing and updating module 2108.
Information providing module 2106 is used to provide vendable physical host information of the inventory to the user;
the information freezing module 2107 is used for freezing the sold physical host information of the inventory and generating an order requesting the physical host after receiving the lease request of the physical host of the user;
the information release and update module 2108 is configured to release and update the sold physical host information of the inventory if it is detected that the user has completed payment of the order.
If the above functions are implemented in the form of software functional modules and sold or used as a separate product, they may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a device to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In summary, the embodiments of the present application provide a leasing method and apparatus for a physical host, a cloud platform, and a readable storage medium. The method comprises the steps that a cloud platform is applied, firstly, a leasing request of a physical host of a user is received, wherein the leasing request of the physical host comprises a physical host which can be sold and selected by the user; secondly, acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources; and finally, adding the physical host after installation into the appointed virtual private cloud VPC for the user to use. The method can enable the physical host to be naturally accessed into the virtual network environment, and can perform the same virtual network configuration and function joint management with the cloud host, wherein the virtual network configuration and function joint management comprises the functions of an elastic IP (Internet protocol), a virtual gateway, a security group and the like. And provides higher network performance between the physical host and the virtual machine.
In the embodiments provided in the present application, it should be understood that the disclosed method and apparatus can be implemented in other ways. The method and apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, apparatus, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (18)

1. A leasing method of a physical host is applied to a cloud platform, and comprises the following steps:
receiving a lease request of a physical host of a user, wherein the physical host leased by the user is a physical host selected by the user from sellable physical hosts;
acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources;
after the installation processing is completed, adding the physical host into a designated Virtual Private Cloud (VPC) so as to deploy the physical host as a computing node in the VPC for the user to use, wherein the VPC is also deployed with a cloud host serving as the computing node.
2. The method of claim 1, wherein the obtaining the installed resources of the physical host and performing installed processing on the physical host based on the installed resources comprises:
and setting the network state of the physical host to enable the physical host to obtain installation configuration information through a network, and completing installation according to the installation configuration information.
3. The method of claim 1, wherein the method further comprises:
and applying for the physical host to an elastic public network IP, and binding the applied elastic public network IP with the physical host so that the physical host can access the public network.
4. The method of claim 2, wherein joining the physical host to the specified VPC comprises:
establishing a binding relationship between the physical host and the designated VPC;
determining switch configuration information corresponding to the physical host, and issuing the switch configuration information to switch equipment corresponding to the physical host in the VPC;
and restarting the physical host to enable the physical host to acquire the private IP of the specified VPC.
5. The method of claim 4, wherein the switch device comprises a PDN gateway and a top of rack switch (TOR), wherein configuration information of the PDN gateway comprises DHCP protocol configuration information and VPC configuration information, and wherein configuration information of the TOR comprises a physical interface, a tunnel, and a virtual router.
6. The method of claim 5, wherein the step of joining the physical host to the designated VPC further comprises:
adding an uplink interface of the physical host to the virtual router;
and establishing communication between the uplink interface and the PDN gateway through a tunnel established by the virtual router so as to enable the uplink interface to join the VPC, wherein the PDN gateway is used for accessing the VPC.
7. The method of any one of claims 1-6, further comprising:
when the user deletes the physical host, recovering the deleted physical host; or
And when the lease term of the physical host expires and the user does not continue to spend time, recycling the physical host.
8. The method of any of claims 1-6, wherein prior to the receiving the lease request for the user's physical host, the method further comprises:
providing the user with vendable physical host information for inventory;
after the receiving a lease request of a physical host of a user, the method further comprises:
freezing the information of the physical host which can be sold in stock, and generating an order requesting the physical host;
and releasing and updating the sold physical host information of the inventory if the user is detected to complete the payment of the order.
9. A leasing device of a physical host, which is applied to a cloud platform, and is characterized by comprising:
the system comprises a receiving module, a leasing module and a control module, wherein the receiving module is used for receiving a leasing request of a physical host of a user, and the physical host leased by the user is a physical host selected from sellable physical hosts by the user;
the acquisition module is used for acquiring installed resources of the physical host and performing installed processing on the physical host based on the installed resources;
and the adding module is used for adding the physical host into a designated Virtual Private Cloud (VPC) after the installation processing is finished so as to deploy the physical host as a computing node in the VPC for the user to use, wherein the VPC is also deployed with a cloud host serving as the computing node.
10. The apparatus of claim 9, wherein the acquisition module is specifically configured to:
and setting the network state of the physical host to enable the physical host to obtain installation configuration information through a network, and completing installation according to the installation configuration information.
11. The apparatus of claim 9, wherein the apparatus further comprises an application and binding module;
the application and binding module is used for applying for the physical host to an elastic public network IP and binding the applied elastic public network IP with the physical host so that the physical host can access the public network.
12. The apparatus of claim 10, wherein the joining module is to:
establishing a binding relationship between the physical host and the designated VPC;
determining switch configuration information corresponding to the physical host, and issuing the switch configuration information to switch equipment corresponding to the physical host in the VPC;
and restarting the physical host to enable the physical host to acquire the private IP of the specified VPC.
13. The apparatus of claim 12, wherein the switch device comprises a PDN gateway and a top of rack switch TOR, configuration information for the PDN gateway comprising DHCP protocol configuration information and VPC configuration information, configuration information for the TOR comprising physical interfaces, tunnels, and virtual routers.
14. The apparatus of claim 13, wherein the joining module is further configured to:
adding an uplink interface of the physical host to the virtual router;
and establishing communication between the uplink interface and the PDN gateway through a tunnel established by the virtual router so as to enable the uplink interface to join the VPC, wherein the PDN gateway is used for accessing the VPC.
15. The apparatus of any one of claims 9-14, wherein the apparatus further comprises a physical host reclamation module;
the physical host recovery module is used for recovering the deleted physical host when the user deletes the physical host; or
And when the lease term of the physical host expires and the user does not continue to spend time, recycling the physical host.
16. The apparatus of any one of claims 9-14, further comprising: the system comprises an information providing module, an information freezing module and an information releasing and updating module;
the information providing module is used for providing the sold physical host information of the stock for the user;
the information freezing module is used for freezing the information of the physical hosts which can be sold in the stock after receiving the lease request of the physical hosts of the user, and generating an order requesting the physical hosts;
the information releasing and updating module is used for releasing and updating the information of the sold physical host in the stock if the fact that the user completes the payment of the order is detected.
17. A cloud platform comprising a processor and a non-volatile memory storing computer instructions that, when executed by a switch, implement the method for leasing a physical host of any one of claims 1-8.
18. A readable storage medium, comprising a computer program, wherein the computer program controls an electronic device where the readable storage medium is located to execute the method for leasing the physical host according to any one of claims 1-8.
CN201910471456.9A 2019-05-31 2019-05-31 Leasing method and device of physical host, cloud platform and readable storage medium Active CN112019366B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910471456.9A CN112019366B (en) 2019-05-31 2019-05-31 Leasing method and device of physical host, cloud platform and readable storage medium
PCT/CN2020/092305 WO2020238891A1 (en) 2019-05-31 2020-05-26 Method and device for leasing physical host, cloud platform, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910471456.9A CN112019366B (en) 2019-05-31 2019-05-31 Leasing method and device of physical host, cloud platform and readable storage medium

Publications (2)

Publication Number Publication Date
CN112019366A true CN112019366A (en) 2020-12-01
CN112019366B CN112019366B (en) 2022-02-01

Family

ID=73506142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910471456.9A Active CN112019366B (en) 2019-05-31 2019-05-31 Leasing method and device of physical host, cloud platform and readable storage medium

Country Status (2)

Country Link
CN (1) CN112019366B (en)
WO (1) WO2020238891A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968802A (en) * 2021-02-25 2021-06-15 紫光云技术有限公司 Universal method for managing IP state and relation of elastic public network
CN112968823A (en) * 2021-03-03 2021-06-15 浪潮云信息技术股份公司 VPN service realizing method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994941B (en) * 2021-02-24 2022-05-17 杭州安恒信息技术股份有限公司 Method and device for deploying anti-DDoS cloud host and anti-DDoS attack protection system
CN113923115B (en) * 2021-10-09 2023-08-25 紫光云技术有限公司 VPC configuration issuing method based on RocketMq
CN113904847B (en) * 2021-10-09 2022-07-15 天翼物联科技有限公司 Cloud platform binding method, system, equipment and medium of Internet of things card

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130036213A1 (en) * 2011-08-02 2013-02-07 Masum Hasan Virtual private clouds
CN104506635A (en) * 2014-12-26 2015-04-08 成都致云科技有限公司 Fast and efficient cloud mainframe creating and matching method and system
CN106354544A (en) * 2016-08-24 2017-01-25 华为技术有限公司 Virtual machine creating method and system and host
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
US20180084085A1 (en) * 2016-09-20 2018-03-22 Arrayent, Inc. Cross platform device virtualization for an iot system
CN108399106A (en) * 2018-02-28 2018-08-14 华为技术有限公司 The method and apparatus for managing physical host
CN109062683A (en) * 2018-06-29 2018-12-21 深圳信息职业技术学院 The method, apparatus and computer readable storage medium of host resource distribution
CN109218462A (en) * 2018-09-14 2019-01-15 山东浪潮云投信息科技有限公司 A kind of IP distribution method of cloud data center physical host
CN109656686A (en) * 2018-12-17 2019-04-19 武汉烽火信息集成技术有限公司 The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130036213A1 (en) * 2011-08-02 2013-02-07 Masum Hasan Virtual private clouds
CN104506635A (en) * 2014-12-26 2015-04-08 成都致云科技有限公司 Fast and efficient cloud mainframe creating and matching method and system
CN106354544A (en) * 2016-08-24 2017-01-25 华为技术有限公司 Virtual machine creating method and system and host
US20180084085A1 (en) * 2016-09-20 2018-03-22 Arrayent, Inc. Cross platform device virtualization for an iot system
CN107135134A (en) * 2017-03-29 2017-09-05 广东网金控股股份有限公司 Private network cut-in method and system based on virtual switch and SDN technologies
CN108399106A (en) * 2018-02-28 2018-08-14 华为技术有限公司 The method and apparatus for managing physical host
CN109062683A (en) * 2018-06-29 2018-12-21 深圳信息职业技术学院 The method, apparatus and computer readable storage medium of host resource distribution
CN109218462A (en) * 2018-09-14 2019-01-15 山东浪潮云投信息科技有限公司 A kind of IP distribution method of cloud data center physical host
CN109656686A (en) * 2018-12-17 2019-04-19 武汉烽火信息集成技术有限公司 The upper deployment container cloud method of OpenStack, storage medium, electronic equipment and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968802A (en) * 2021-02-25 2021-06-15 紫光云技术有限公司 Universal method for managing IP state and relation of elastic public network
CN112968802B (en) * 2021-02-25 2023-04-18 紫光云技术有限公司 Universal method for managing IP state and relation of elastic public network
CN112968823A (en) * 2021-03-03 2021-06-15 浪潮云信息技术股份公司 VPN service realizing method

Also Published As

Publication number Publication date
CN112019366B (en) 2022-02-01
WO2020238891A1 (en) 2020-12-03

Similar Documents

Publication Publication Date Title
CN112019366B (en) Leasing method and device of physical host, cloud platform and readable storage medium
CN106301829B (en) A kind of method and apparatus of network service dilatation
WO2016155394A1 (en) Method and device for establishing link between virtual network functions
RU2683630C2 (en) Method for update of nsd network service descriptor and device
EP3905598B1 (en) Message processing method and apparatus, control plane device, and computer storage medium
US10447703B2 (en) VNF package operation method and apparatus
CN107800743B (en) Cloud desktop system, cloud management system and related equipment
CN110661670A (en) Network equipment configuration management method and device
EP3247080B1 (en) Certificate management method, device and system
US11755383B2 (en) Hybrid inventory data summarization using various input schema across hybrid cloud infrastructure
CN104486125A (en) Backup method and device of configuration files
CN110166299A (en) SDN controller configuration recovery method and device
US20220326940A1 (en) Service Upgrade Method, Apparatus, and System
CN114070723A (en) Virtual network configuration method and system of bare metal server and intelligent network card
WO2017185992A1 (en) Method and apparatus for transmitting request message
CN106301897A (en) A kind of (SuSE) Linux OS installs collocation method and device
CN106412146B (en) The method and apparatus that a kind of dhcp client updates IP
CN105049546A (en) Client terminal IP address allocation method through DHCP server and device thereof
CN109639448A (en) The method and upgrade-system of updating apparatus
CN108900603A (en) A kind of server discovery methods, devices and systems
CN107517121B (en) Equipment configuration method and device
CN111917810B (en) Cloud communication method and device, user equipment and network equipment
CN105872015A (en) Automatic discovering method of distributed assembly services in desktop cloud
CN104580547A (en) IP (internet protocol) configuration method and device for Linux operation system
US11900139B2 (en) Multisite service personalization hybrid workflow engine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant