CN110764876A - Cloud host creation method, device, equipment and readable storage medium - Google Patents

Cloud host creation method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110764876A
CN110764876A CN201911025103.2A CN201911025103A CN110764876A CN 110764876 A CN110764876 A CN 110764876A CN 201911025103 A CN201911025103 A CN 201911025103A CN 110764876 A CN110764876 A CN 110764876A
Authority
CN
China
Prior art keywords
creation
host
target
parameters
cloud 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.)
Withdrawn
Application number
CN201911025103.2A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Langchao Electronic Information Industry 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 Langchao Electronic Information Industry Co Ltd filed Critical Langchao Electronic Information Industry Co Ltd
Priority to CN201911025103.2A priority Critical patent/CN110764876A/en
Publication of CN110764876A publication Critical patent/CN110764876A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a cloud host creation method, a cloud host creation device, cloud host creation equipment and a readable storage medium, wherein the method comprises the following steps: receiving and analyzing a cloud host creation request sent by a client to obtain carried information; judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host; if not, determining a mutually matched target creation parameter set by utilizing the carried information; if yes, determining the necessary creation parameter groups matched with each other as target creation parameter groups; and creating the cloud host according to the target creation parameter group. Therefore, in the method, a user only needs to send a cloud host creation request, the cloud host creation request can specify necessary creation parameters, or does not need to specify specific necessary creation parameters, and the method can determine the target creation parameter group capable of creating the cloud host.

Description

Cloud host creation method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of virtualization, in particular to a cloud host creation method, a cloud host creation device, cloud host creation equipment and a readable storage medium.
Background
In the cloud computing era, resources are uniformly managed through a cloud platform, the cloud host is a core service in the cloud host created through the cloud platform, and when the cloud host is created, if the host and the storage are selected improperly, the cloud host is created unsuccessfully, or the performance of the cloud platform is affected due to uneven resource allocation. Therefore, how to simply and reasonably select cloud resources when creating a cloud host is a key problem.
In the traditional method, a host is manually selected and stored when a cloud host is created, so that the method is not friendly and intelligent to users, and common users generally cannot accurately select reasonable host storage; or when the cloud host is established, roughly selecting a space with the maximum size according to the existing cpu and memory, which is not very accurate; or automatic selection is performed based on the virtualization technology, but the virtualization technologies to be integrated by the cloud platform are more, and the accuracy of automatic selection is also uneven.
In summary, how to effectively solve the problems of cloud host creation and the like is a technical problem that needs to be solved urgently by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a cloud host creating method, a cloud host creating device, cloud host creating equipment and a readable storage medium, so that a cloud host can be quickly and accurately created when different cloud host creating requests sent by a user are met.
In order to solve the technical problems, the invention provides the following technical scheme:
a cloud host creation method includes:
receiving and analyzing a cloud host creation request sent by a client to obtain carried information;
judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host;
if not, determining a mutually matched target creation parameter set by using the carried information;
if yes, determining the necessary creation parameter group matched with each other as a target creation parameter group;
and creating the cloud host according to the target creation parameter group.
Preferably, creating the cloud host according to the target creation parameter group includes:
and creating the cloud host according to the target storage parameters and the target host parameters.
Preferably, determining the mutually matched target creation parameter sets by using the carried information includes:
when the carried information has the necessary creation parameters, complementing the target creation parameter group by using the remaining capacity of the host or the size of the hard disk of the cloud host based on the necessary creation parameters;
and when the carried information does not need to create parameters, directly determining the target creation parameter group by using the remaining capacity of the host and the size of the hard disk of the cloud host.
Preferably, complementing the set of target creation parameters based on the necessary creation parameters comprises:
when the necessary creation parameters are storage parameters, determining target host parameters matched with the storage parameters by using the residual capacity of the host;
and when the necessary creation parameters are host parameters, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk.
Preferably, determining a target host parameter matching the storage parameter by using the remaining host capacity includes:
determining the host ID with the maximum residual capacity of the host as the target host parameter;
correspondingly, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk comprises the following steps:
and determining the storage ID which is larger than the size of the cloud host hard disk and has the largest corresponding residual space as the target storage parameter.
Preferably, the determining the necessary creation parameter sets that match each other as the target creation parameter set includes:
judging whether the storage parameters in the necessary creation parameter group are matched with the host parameters according to the affiliated relationship between the storage and the host;
if yes, determining the storage parameter as the target storage parameter, and determining the host parameter as the target storage parameter.
Preferably, the determining whether the storage parameter in the necessary creation parameter set matches the host parameter according to the affiliation between the storage and the host includes:
and when the target storage corresponding to the storage parameters is mounted under the target host corresponding to the host parameters, determining that the storage parameters are matched with the host parameters.
A cloud host creation apparatus comprising:
the request carried information acquisition module is used for receiving and analyzing a cloud host creation request sent by a client to acquire carried information;
the judging module is used for judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host;
a parameter determining module, configured to determine, if the carried information includes the necessary creation parameter set, target creation parameter sets that are matched with each other by using the carried information; if the carried information does not include the necessary creation parameter group, determining the necessary creation parameter group matched with each other as a target creation parameter group;
and the cloud host creating module is used for creating a cloud host according to the target creating parameter group.
A cloud host creation device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the cloud host creation method when executing the computer program.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described cloud host creation method.
By applying the method provided by the embodiment of the invention, the cloud host creation request sent by the client is received and analyzed, and the carried information is obtained; judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host; if not, determining a mutually matched target creation parameter set by utilizing the carried information; if yes, determining the necessary creation parameter groups matched with each other as target creation parameter groups; and creating the cloud host according to the target creation parameter group.
In the method, the creation of the cloud host is improved in a business layer so as to improve the creation power of the cloud host. Specifically, when a cloud host creation request sent by a client is received, the cloud host creation request is analyzed to obtain carried information. And then, based on the information content specifically carried in the carried information, different strategies are adopted to obtain the target creation parameter group. Specifically, when the necessary creation parameter group required for creating the cloud host is included in the carried information, the necessary creation parameter group can be determined as the target creation parameter group when the necessary creation parameter group is determined to be reasonable; when the necessary creation parameter group is not included in the carried information, the target creation parameter group can be determined based on the carried information. After the target creation parameter group is determined, the cloud host can be created according to the target creation parameter group. Therefore, in the method, a user only needs to send a cloud host creation request, the cloud host creation request can specify necessary creation parameters, or does not need to specify specific necessary creation parameters, and the method can determine the target creation parameter group capable of creating the cloud host.
Accordingly, embodiments of the present invention further provide a cloud host creating apparatus, a device, and a readable storage medium corresponding to the cloud host creating method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a cloud host creation method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating specific implementation steps of a cloud host creation method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a cloud host creation apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cloud host creation device in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a cloud host creation device in the embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of a cloud host creation method in an embodiment of the present invention, where the method can be applied to a cloud platform, and includes the following steps:
s101, receiving and analyzing a cloud host creation request sent by a client, and obtaining carried information.
After receiving a cloud host creation request sent by a client, the cloud platform can obtain information carried by the request by analyzing the cloud host creation request.
The carried information may specifically be information such as a user ID, a cloud host creation number, or a cloud host creation parameter. Creating a cloud host typically allocates resources such as hosts, storage, and networks to it, and thus, the cloud host creation parameters may be specific to parameters specifying a host, a storage, or a network. Generally speaking, with respect to network deployment, this may be self-setting. Therefore, for creating a cloud host, a host parameter specifying the host (host ID may be used as the host parameter) and a storage parameter specifying storage (ID may be used as the storage parameter, a hard disk of the cloud host is stored in association, and it is specified which storage the hard disk is associated with at the time of creation) are necessary parameters, and only when both are available and reasonable, the cloud host can be created. Based on this, in the present application, the combination of the host parameter and the storage parameter is referred to as a necessary creation parameter group, and both the host parameter and the storage parameter are referred to as necessary creation parameters. It should be noted that, in this embodiment, it is not limited whether the cloud host creation request sent by the user carries the necessary creation parameter group required for creating the cloud host. That is, the portable information may include a necessary creation parameter group, may include only a host parameter or a storage parameter, and may include neither a host parameter nor a storage parameter.
It should be noted that, the relationship between the cloud host hard disk and the storage is as follows: the hard disk is a hardware facility in the virtual machine, and is the same as a disk of a common computer. The storage is a virtual area which is virtualized by hardware storage and can store data information, and each hard disk is associated with one storage in the virtualized virtual machine. That is, when the cloud host is created, firstly, storage is selected according to the size of the hard disk of the cloud host to be created, and if the remaining sizes of the alternative storage are larger than the size of the hard disk of the cloud host to be created, storage with the largest remaining space is preferably associated with the hard disk of the cloud host.
S102, judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host.
After obtaining the carrying information, whether the necessary creation parameter group is included in the carrying parameter may be specifically analyzed. That is, when the carried information has both the host parameter and the storage parameter, the necessary creation parameter group is included; otherwise, determining that the parameter group is not necessarily created in the carrying information.
In this embodiment, different processing operations may be performed according to the parameter condition in the carried information. Specifically, when the carried information already includes the storage parameter and the host parameter, step S104 is executed; when the carried information includes only the storage parameter or the host parameter, and when there is no storage reference or host parameter in the carried information, step S103 is performed.
S103, determining the mutually matched target creation parameter set by utilizing the carried information.
The determining of the mutually matched target creation parameter set by using the carried information may include the following two cases:
the first condition is as follows:
and when the carrying information has the necessary creation parameters, completing the target creation parameter group by using the remaining capacity of the host or the size of the hard disk of the cloud host based on the necessary creation parameters.
This occurs only when the target creation parameter group is determined without both the host parameter and the storage parameter in the carried information, and thus the necessary creation parameter here refers to either the host parameter or the storage parameter. That is to say, when there is a necessary creation parameter in the carried information, the target creation parameter set is completed based on the necessary creation parameter, which specifically includes two subdivision cases:
1. when the necessary creation parameters are storage parameters, determining target host parameters matched with the storage parameters by using the residual capacity of the host;
2. and when the necessary creation parameters are host parameters, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk.
For example, when the user a sends a cloud host creation request to the cloud platform by operating the client to specify that the ID of the host is x11, and does not specify to store the corresponding storage parameter, it may be determined that one of the IDs stored in the storage loaded in the xy host is selected, for example, y12 is used as the storage parameter, that is, the corresponding target creation parameter group is (x11, y 12).
In order to guarantee the load average value of the host and the storage (hardware storage, such as a hard disk, one hard disk can virtualize a plurality of storages) in the cloud platform, when the target creation parameter group is completed based on the necessary creation parameters, the residual capacity of the host or the size of the hard disk of the cloud host can be used for determination. Specifically, determining the target host parameters matched with the storage parameters by using the remaining capacity of the host includes:
determining the host ID with the maximum residual capacity of the host as a target host parameter; correspondingly, the method for determining the target storage parameters matched with the host parameters by using the size of the cloud host hard disk comprises the following steps: and determining the storage ID which is larger than the size of the cloud host hard disk and has the largest corresponding residual space as a target storage parameter. For example, when the host parameter x2 is included in the carrying information, and it is determined that y21-y26 and the storage remaining space that are loaded under x2 are all larger than the size of the cloud host hard disk, y23 with the largest storage remaining capacity can be selected as the storage parameter at y21-y26, that is, the target storage parameter is (x2, y 23).
Case two:
and when the parameters are not required to be created in the carried information, directly determining the target creation parameter group by using the remaining capacity of the host and the size of the hard disk of the cloud host.
At this time, neither the storage parameter nor the host parameter exists, so that the target creation parameter group can be directly determined based on the remaining capacity of the host and the size of the hard disk of the cloud host. Specifically, the storage is mounted and under the host, a plurality of storages can be mounted under one host, and a plurality of hosts in one cloud platform are connected with each other through the router.
The method for determining the necessary creation parameter group matched with each other as the target creation parameter group comprises the following steps:
step one, judging whether storage parameters in a necessary creation parameter set are matched with host parameters according to the affiliated relationship between storage and the host;
and step two, if yes, determining the storage parameters as target storage parameters, and determining the host parameters as target storage parameters.
The first step may specifically be to determine that the storage parameter matches the host parameter when the target storage corresponding to the storage parameter is mounted on the target host corresponding to the host parameter.
That is, when the cloud platform selects and determines the target creation parameter group by itself, the host ID with the largest remaining host capacity may be directly selected as the host parameter, and the storage ID with the largest remaining storage capacity mounted on the host may be used as the storage parameter, so that the target creation parameter group may be determined. It should be noted that, in comparison with the necessary creation parameter group, the host parameter and the storage parameter in the target creation parameter group conform to the correspondence between the host storages, and the necessary creation parameter group is provided by the user and thus does not necessarily satisfy the correspondence between the host storages.
Of course, in an embodiment of the present invention, when the user does not specify a necessary creation parameter group, it may be considered that the user does not know about the cloud host creation technology, and at this time, in order to implement load balancing, the target creation parameter group may be directly determined by directly using the remaining capacity of the host and the size of the cloud host hard disk.
And S104, determining the necessary creation parameter groups matched with each other as target creation parameter groups.
When the necessary creation parameters exist in the carried information, matching verification needs to be performed on the storage parameters and the host parameters in the necessary creation parameter group, specifically, it is determined whether the host corresponding to the host parameters can access the hard disk corresponding to the storage parameters. For example, whether the hard disk corresponding to the storage parameter is mounted under the host corresponding to the host parameter is checked. When the storage parameters in the necessary creation parameter group are determined to be matched with the host parameters, determining the necessary creation parameter group as a target creation parameter group; otherwise, the prompt message with wrong parameter setting can be output to the client.
And S105, creating the cloud host according to the target creation parameter group.
Specifically, the cloud host is created according to the target storage parameters and the target host parameters. That is, a cloud host is created on a host corresponding to the target host parameter, and a storage area corresponding to the target storage parameter is divided into the cloud host.
By applying the method provided by the embodiment of the invention, the cloud host creation request sent by the client is received and analyzed, and the carried information is obtained; judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host; if not, determining a mutually matched target creation parameter set by utilizing the carried information; if yes, determining the necessary creation parameter groups matched with each other as target creation parameter groups; and creating the cloud host according to the target creation parameter group.
In the method, the creation of the cloud host is improved in a business layer so as to improve the creation power of the cloud host. Specifically, when a cloud host creation request sent by a client is received, the cloud host creation request is analyzed to obtain carried information. And then, based on the information content specifically carried in the carried information, different strategies are adopted to obtain the target creation parameter group. Specifically, when the necessary creation parameter group required for creating the cloud host is included in the carried information, the necessary creation parameter group can be determined as the target creation parameter group when the necessary creation parameter group is determined to be reasonable; when the necessary creation parameter group is not included in the carried information, the target creation parameter group can be determined based on the carried information. After the target creation parameter group is determined, the cloud host can be created according to the target creation parameter group. Therefore, in the method, a user only needs to send a cloud host creation request, the cloud host creation request can specify necessary creation parameters, or does not need to specify specific necessary creation parameters, and the method can determine the target creation parameter group capable of creating the cloud host.
In order to better understand the cloud host creation method provided by the embodiment of the present invention, the following describes the cloud host creation method in detail with reference to a specific application scenario as an example.
On the cloud resource hardware level, switches and storage are attached to hosts, one network switch can span multiple hosts, and one host can correspond to multiple storages. The remaining amount of cpu memory and the remaining storage capacity of the host all influence the creation of the cloud host.
After the cloud host creating method is applied, when the cloud hosts are created in batch on the cloud platform, the method comprises the following creating scenes:
in the first scenario, a user does not manually specify cloud resources (including host resources and storage resources), that is, all cloud resources are automatically selected, the cloud platform can screen a host range according to the resources where the user is located, weight values of a cpu and a memory are calculated in an optional host, then sequencing is performed, a storage list is inquired for each hard disk and the selected host by using a recursive algorithm to obtain optimal storage, so that cloud resources of one cloud host are locked, and after the establishment of successful startup and resource occupation are completed, a second cloud host is calculated, so that each cloud host can select reasonable cloud resources.
In the second scenario, the user selects the host resource, the cloud platform can select the optimal storage within the range of the selected host, and the algorithm is similar to the scenario, except that the host range is locked.
In the third scenario, when a user selects a storage resource, the optimal host is selected based on storage, and whether the host and the switch are matched is checked.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating specific implementation steps of a cloud host creation method according to an embodiment of the present invention, where the method includes:
1) and when the user creates the cloud host on the cloud platform, the user can select the host for storage or not select the host.
2) And if the user selects the host and the storage, checking whether the selected host storage and the network are matched, and if the selected host storage and the network are matched, directly creating.
3) And if the user selects storage or host, or neither, the host or storage can be selected by the user. The specific self-selection process is as follows:
4) and firstly defining the range of the host, acquiring intersection by the selected network and the storage according to the cluster, acquiring a host list, acquiring the residual capacity value of the host according to the weight of the residual cpu 0.3+ the residual memory 0.7, and sequencing the host according to the residual capacity value.
5) And circulating the hosts to obtain the storage of each host, and sequencing according to the residual storage to obtain a storage list.
6) And circulating the cloud hosts to be created in batches, and circulating the hard disk of each cloud host.
7) The storage with the most residual storage is firstly taken in the circulation to be compared with the size of the hard disk, if the hard disk is too large, the residual storage of the storage is not enough for the cloud host to use, and the error can be directly thrown: and otherwise, recording the relation between the size of the hard disk and the storage, and deducting the storage size occupied by the rest of cloud host hard disks from the selected storage. And determining whether the second cloud host hard disk is enough or not, if not, taking the second storage, and so on until the hard disk is circulated completely.
8) And then selecting a host and a storage for each hard disk in each virtual machine, starting up after the virtual machine is established, occupying the CPU, the memory and the storage, and reordering and selecting the next cloud host.
9) And finishing the batch creation of the cloud host to select resources.
In the cloud host creation method, a user can designate host storage by himself or not designate manual operation. Both the storage and the switch will be attached to the host, and the intersection of the host needs to be taken out according to the cluster, the network and the storage selected by the user. And calculating the residual quantity of the host according to the CPU and the weight value of the memory, calculating the stored residual quantity according to the residual storage, and sequencing the host and the storage according to the residual quantity. Aiming at a plurality of cloud hosts and a plurality of hard disks, a recursive algorithm is applied to select the most reasonable host of each cloud host, and each hard disk is stored most reasonably. According to the cloud host establishing method, the process of establishing the cloud host by the user can be greatly simplified, the success rate of establishing the cloud host is improved, the resource utilization of the cloud host is more reasonable, and the overall performance of the cloud platform is improved.
Example two:
corresponding to the above method embodiments, the embodiments of the present invention further provide a cloud host creation apparatus, and the cloud host creation apparatus described below and the cloud host creation method described above may be referred to in correspondence with each other.
Referring to fig. 3, the apparatus includes the following modules:
the request carried information acquisition module 101 is used for receiving and analyzing a cloud host creation request sent by a client to acquire carried information;
the judging module 102 is configured to judge whether the carried information includes a necessary creation parameter group required for creating the cloud host;
a parameter determining module 103, configured to determine, if the carried information includes a necessary creation parameter set, target creation parameter sets that are matched with each other by using the carried information; if the carried information does not comprise the necessary creating parameter group, determining the necessary creating parameter group matched with each other as a target creating parameter group;
and a cloud host creation module 104, configured to create a cloud host according to the target creation parameter group.
By applying the device provided by the embodiment of the invention, the creation of the cloud host is improved in the business layer so as to improve the creation power of the cloud host. Specifically, when a cloud host creation request sent by a client is received, the cloud host creation request is analyzed to obtain carried information. And then, based on the information content specifically carried in the carried information, different strategies are adopted to obtain the target creation parameter group. Specifically, when the necessary creation parameter group required for creating the cloud host is included in the carried information, the necessary creation parameter group can be determined as the target creation parameter group when the necessary creation parameter group is determined to be reasonable; when the necessary creation parameter group is not included in the carried information, the target creation parameter group can be determined based on the carried information. After the target creation parameter group is determined, the cloud host can be created according to the target creation parameter group. Therefore, in the device, a user only needs to send a cloud host creation request, and the cloud host creation request may specify necessary creation parameters or may not specify specific necessary creation parameters, so that the device can determine a target creation parameter group capable of creating a cloud host.
In an embodiment of the present invention, the cloud host creating module 104 is specifically configured to create a cloud host according to the target storage parameter and the target host parameter.
In an embodiment of the present invention, the parameter determining module 103 includes:
the parameter completion unit is used for completing the target creation parameter group on the basis of the necessary creation parameter by utilizing the remaining capacity of the host or the size of the cloud host hard disk when the necessary creation parameter exists in the carried information;
and the parameter generating unit is used for directly determining the target creation parameter group by utilizing the remaining capacity of the host and the size of the hard disk of the cloud host when the parameter is not required to be created in the carried information.
In a specific embodiment of the present invention, the parameter completion unit is specifically configured to determine, when the necessary created parameter is a storage parameter, a target host parameter matching the storage parameter by using the remaining capacity of the host; and when the necessary creation parameters are host parameters, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk.
In an embodiment of the present invention, the parameter completion unit is specifically configured to determine a host ID with the largest remaining host capacity as a target host parameter; correspondingly, the method for determining the target storage parameters matched with the host parameters by using the size of the cloud host hard disk comprises the following steps:
and determining the storage ID which is larger than the size of the cloud host hard disk and has the largest corresponding residual space as a target storage parameter.
In a specific embodiment of the present invention, the parameter determining module 103 is specifically configured to determine whether a storage parameter in the parameter group that needs to be created is matched with a host parameter according to an affiliation between the storage and the host; if yes, the storage parameter is determined as a target storage parameter, and the host parameter is determined as a target storage parameter.
In an embodiment of the present invention, the parameter determining module 103 is specifically configured to determine that the storage parameter matches the host parameter when the target storage corresponding to the storage parameter is mounted on the target host corresponding to the host parameter.
Example three:
corresponding to the above method embodiment, an embodiment of the present invention further provides a cloud host creation device, and a cloud host creation device described below and a cloud host creation method described above may be referred to in a corresponding manner.
Referring to fig. 4, the cloud host creation apparatus includes:
a memory D1 for storing computer programs;
a processor D2, configured to implement the steps of the cloud host creation method of the above-described method embodiments when executing the computer program.
Specifically, referring to fig. 5, a specific structure diagram of a cloud host creating device provided in this embodiment is provided, where the cloud host creating device may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instructions operating on a data processing device. Still further, the central processor 322 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the cloud host creation device 301.
The cloud host creation device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341. Such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps in the cloud host creation method described above may be implemented by the structure of the cloud host creation device.
Example four:
corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and a cloud host creation method described above may be referred to in correspondence.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the cloud host creation method of the above-described method embodiments.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

Claims (10)

1. A cloud host creation method is characterized by comprising the following steps:
receiving and analyzing a cloud host creation request sent by a client to obtain carried information;
judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host;
if not, determining a mutually matched target creation parameter set by using the carried information;
if yes, determining the necessary creation parameter group matched with each other as a target creation parameter group;
and creating the cloud host according to the target creation parameter group.
2. The cloud host creation method according to claim 1, wherein creating a cloud host according to the target creation parameter group includes:
and creating the cloud host according to the target storage parameters and the target host parameters.
3. The cloud host creation method according to claim 2, wherein determining the mutually matched target creation parameter sets by using the carried information includes:
when the carried information has the necessary creation parameters, complementing the target creation parameter group by using the remaining capacity of the host or the size of the hard disk of the cloud host based on the necessary creation parameters;
and when the carried information does not need to create parameters, directly determining the target creation parameter group by using the remaining capacity of the host and the size of the hard disk of the cloud host.
4. The cloud host creation method of claim 3, wherein completing the set of target creation parameters based on the necessary creation parameters comprises:
when the necessary creation parameters are storage parameters, determining target host parameters matched with the storage parameters by using the residual capacity of the host;
and when the necessary creation parameters are host parameters, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk.
5. The cloud host creation method of claim 4, wherein determining the target host parameters matching the storage parameters using the host remaining capacity comprises:
determining the host ID with the maximum residual capacity of the host as the target host parameter;
correspondingly, determining target storage parameters matched with the host parameters by using the size of the cloud host hard disk comprises the following steps:
and determining the storage ID which is larger than the size of the cloud host hard disk and has the largest corresponding residual space as the target storage parameter.
6. The cloud host creation method according to claim 2, wherein the determining the necessary creation parameter groups that match each other as a target creation parameter group includes:
judging whether the storage parameters in the necessary creation parameter group are matched with the host parameters according to the affiliated relationship between the storage and the host;
if yes, determining the storage parameter as the target storage parameter, and determining the host parameter as the target storage parameter.
7. The cloud host creation method of claim 6, wherein said determining whether the storage parameters in the necessary creation parameter group and the host parameters match according to the affiliation between the storage and the host comprises:
and when the target storage corresponding to the storage parameters is mounted under the target host corresponding to the host parameters, determining that the storage parameters are matched with the host parameters.
8. A cloud host creation apparatus, comprising:
the request carried information acquisition module is used for receiving and analyzing a cloud host creation request sent by a client to acquire carried information;
the judging module is used for judging whether the carried information comprises a necessary creation parameter group required by the creation of the cloud host;
a parameter determining module, configured to determine, if the carried information includes the necessary creation parameter set, target creation parameter sets that are matched with each other by using the carried information; if the carried information does not include the necessary creation parameter group, determining the necessary creation parameter group matched with each other as a target creation parameter group;
and the cloud host creating module is used for creating a cloud host according to the target creating parameter group.
9. A cloud host creation device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cloud host creation method of any of claims 1 to 7 when executing the computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cloud host creation method according to any one of claims 1 to 7.
CN201911025103.2A 2019-10-25 2019-10-25 Cloud host creation method, device, equipment and readable storage medium Withdrawn CN110764876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911025103.2A CN110764876A (en) 2019-10-25 2019-10-25 Cloud host creation method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911025103.2A CN110764876A (en) 2019-10-25 2019-10-25 Cloud host creation method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110764876A true CN110764876A (en) 2020-02-07

Family

ID=69333746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911025103.2A Withdrawn CN110764876A (en) 2019-10-25 2019-10-25 Cloud host creation method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110764876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419847A (en) * 2021-05-28 2021-09-21 济南浪潮数据技术有限公司 Method, device and equipment for creating cloud host by cloud management platform and readable medium
CN113992511A (en) * 2021-10-19 2022-01-28 京东科技信息技术有限公司 Cloud host creation method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020971A (en) * 2016-05-10 2016-10-12 广东睿江云计算股份有限公司 CPU (Central Processing Unit) scheduling method and device in cloud host system
CN107506145A (en) * 2017-08-28 2017-12-22 郑州云海信息技术有限公司 A kind of physical store dispatching method and cloud main frame creation method
CN107547596A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 A kind of cloud platform control method and device based on Docker
US20180365076A1 (en) * 2016-02-29 2018-12-20 Huawei Technologies Co., Ltd. Service Container Creation Method and Apparatus
CN109495555A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and apparatus based on cloud platform creation cloud host
CN109617954A (en) * 2018-11-29 2019-04-12 郑州云海信息技术有限公司 A kind of method and apparatus creating cloud host
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN109933405A (en) * 2019-01-09 2019-06-25 平安科技(深圳)有限公司 Virtual machine creation method and device, electronic equipment, storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180365076A1 (en) * 2016-02-29 2018-12-20 Huawei Technologies Co., Ltd. Service Container Creation Method and Apparatus
CN106020971A (en) * 2016-05-10 2016-10-12 广东睿江云计算股份有限公司 CPU (Central Processing Unit) scheduling method and device in cloud host system
CN107547596A (en) * 2016-06-27 2018-01-05 中兴通讯股份有限公司 A kind of cloud platform control method and device based on Docker
CN107506145A (en) * 2017-08-28 2017-12-22 郑州云海信息技术有限公司 A kind of physical store dispatching method and cloud main frame creation method
CN109495555A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and apparatus based on cloud platform creation cloud host
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN109617954A (en) * 2018-11-29 2019-04-12 郑州云海信息技术有限公司 A kind of method and apparatus creating cloud host
CN109933405A (en) * 2019-01-09 2019-06-25 平安科技(深圳)有限公司 Virtual machine creation method and device, electronic equipment, storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419847A (en) * 2021-05-28 2021-09-21 济南浪潮数据技术有限公司 Method, device and equipment for creating cloud host by cloud management platform and readable medium
CN113992511A (en) * 2021-10-19 2022-01-28 京东科技信息技术有限公司 Cloud host creation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11960915B2 (en) Method and apparatus for creating virtual machine based on parameter information of a virtual network interface card
Hung et al. Wide-area analytics with multiple resources
US10628228B1 (en) Tiered usage limits across compute resource partitions
US11003507B2 (en) Mapreduce job resource sizing using assessment models
US8104038B1 (en) Matching descriptions of resources with workload requirements
US9112750B2 (en) Job management server and job management method
US8572621B2 (en) Selection of server for relocation of application program based on largest number of algorithms with identical output using selected server resource criteria
CN107590075B (en) Software testing method and device
US11656901B2 (en) CPU resource reservation method and apparatus, and related device thereof
CN110830234B (en) User traffic distribution method and device
CN109995814B (en) Cloud host resource migration method and device, communication equipment and storage medium
EP3191948A1 (en) Computing instance launch time
CN107465562B (en) Method, device and equipment for CTDB custom distribution of virtual IP
EP3442201B1 (en) Cloud platform construction method and cloud platform
CN111258721A (en) Cloud host operating system user management method, device, equipment and storage medium
JP2012252703A (en) Virtual machine monitoring system and monitoring method thereof
CN110764876A (en) Cloud host creation method, device, equipment and readable storage medium
CN111782383A (en) Task allocation method, server, electronic terminal and computer readable storage medium
EP3109758A1 (en) Method and apparatus for scaling an application
CN111338756A (en) GPU pooling method, device, equipment and computer readable storage medium
US20240086173A1 (en) Distributed autonomous patching system
US11882638B2 (en) System and methods to provide group lighting interaction
CN112631994A (en) Data migration method and system
CN112395084A (en) Bare metal server deployment method
CN106919450B (en) Resource adjusting method and device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200207