CN113419847A - Method, device and equipment for creating cloud host by cloud management platform and readable medium - Google Patents

Method, device and equipment for creating cloud host by cloud management platform and readable medium Download PDF

Info

Publication number
CN113419847A
CN113419847A CN202110593371.5A CN202110593371A CN113419847A CN 113419847 A CN113419847 A CN 113419847A CN 202110593371 A CN202110593371 A CN 202110593371A CN 113419847 A CN113419847 A CN 113419847A
Authority
CN
China
Prior art keywords
host
storage pool
cloud
list
storage
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.)
Pending
Application number
CN202110593371.5A
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 Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110593371.5A priority Critical patent/CN113419847A/en
Publication of CN113419847A publication Critical patent/CN113419847A/en
Pending 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for a cloud management platform to create a cloud host, wherein the method comprises the following steps: in response to receiving an instruction for creating a cloud host, judging whether a host of the cloud host to be created is selected; responding to the fact that a host of a cloud host to be created is selected, obtaining storage pool lists of all connection states on all hosts in the cloud management platform based on the IP of the selected host, and obtaining an alarm threshold value of the storage pool; screening storage pools of preset types from the storage pool list and deleting the storage pools lower than the alarm threshold; the storage pool list is traversed and the first available storage pool is selected as the storage pool of the cloud host to be created. By using the scheme of the invention, the performances of the host and the storage pool can be more balanced and shared, the cloud hosts are prevented from being established on one host and the storage pool, and other hosts are far from being utilized, so that the effect of load balancing is achieved.

Description

Method, device and equipment for creating cloud host by cloud management platform and readable medium
Technical Field
The field relates to the field of computers, and more particularly to a method, an apparatus, a device and a readable medium for creating a cloud host by a cloud management platform.
Background
The cloud server is a flexible cloud technology which is based on WEB services and can adjust the configuration of a cloud host, integrates services of calculation, storage and network resources, and has the capacity of using on demand and paying on demand in real time. The flexibility, controllability, expansibility and resource reusability are greatly improved. In the cloud management platform, creating a cloud host is one of the most important functions. However, in the cloud host creation process, cloud hosts are created on one host and a storage pool, and other hosts are far from being utilized, so that load imbalance is caused.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method, an apparatus, a device, and a readable medium for creating a cloud host by a cloud management platform, and by using the technical solution of the present invention, performance of the host and a storage pool can be more evenly shared, and the cloud host is prevented from being created on one host and one storage pool, but other hosts are far from being utilized, so as to achieve an effect of load balancing.
Based on the above object, an aspect of the embodiments of the present invention provides a method for a cloud management platform to create a cloud host, including the following steps:
in response to receiving an instruction for creating a cloud host, judging whether a host of the cloud host to be created is selected;
responding to the fact that a host of a cloud host to be created is selected, obtaining storage pool lists of all connection states on all hosts in the cloud management platform based on the IP of the selected host, and obtaining an alarm threshold value of the storage pool;
screening storage pools of preset types from the storage pool list and deleting the storage pools lower than the alarm threshold;
the storage pool list is traversed and the first available storage pool is selected as the storage pool of the cloud host to be created.
According to an embodiment of the present invention, further comprising:
in response to that the host of the cloud host to be created is not selected, acquiring and sequencing a host list of all connection states in the cloud management platform;
deleting the hosts which are not in the corresponding switch in the host list;
traversing the host list, and judging whether the host in the host list has a storage pool of a first preset type;
in response to the first preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
According to an embodiment of the present invention, further comprising:
in response to the fact that the host in the host list does not have the storage pool of the first preset type, traversing the host list, and judging whether the host in the host list has the storage pool of the second preset type;
and in response to the second preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
According to an embodiment of the present invention, the first storage pool of the preset type is an OCFS (cluster file system) type storage pool, and the second storage pool of the preset type is a RAW (random access memory) storage pool.
According to an embodiment of the present invention, in response to that a host of a cloud host to be created is not selected, acquiring and sorting a host list of all connection states in a cloud management platform includes:
and sorting the hosts in the host list according to the memory availability from high to low.
According to an embodiment of the present invention, the preset type of storage pools include an OCFS type storage pool and a RAW storage pool.
According to one embodiment of the present invention, screening out a preset type of storage pool from the storage pool list and deleting storage pools below the alarm threshold comprises:
screening an OCFS non-double-active storage pool in a mounted state from the storage pool list;
screening out RAW non-double-active storage pools in a mounting state;
and sorting according to the priority of the OCFS storage pool type greater than the RAW storage pool type, and deleting the storage pools lower than the alarm threshold.
In another aspect of the embodiments of the present invention, there is also provided an apparatus for creating a cloud host by a cloud management platform, where the apparatus includes:
the judging module is configured to respond to the received instruction for creating the cloud host and judge whether the host of the cloud host to be created is selected;
the acquisition module is configured to respond to the fact that a host of the cloud host to be created is selected, acquire storage pool lists of all connection states on all hosts in the cloud management platform based on the IP of the selected host and acquire an alarm threshold of the storage pool;
the sorting module is configured to screen preset storage pools from the storage pool list and delete the storage pools lower than the alarm threshold;
a selection module configured to traverse the storage pool list and select a first available storage pool as a storage pool of the cloud host to be created.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of any one of the above-mentioned methods.
The invention has the following beneficial technical effects: according to the method for creating the cloud host by the cloud management platform, which is provided by the embodiment of the invention, whether the host of the cloud host to be created is selected or not is judged by responding to the received command for creating the cloud host; responding to the fact that a host of a cloud host to be created is selected, obtaining storage pool lists of all connection states on all hosts in the cloud management platform based on the IP of the selected host, and obtaining an alarm threshold value of the storage pool; screening storage pools of preset types from the storage pool list and deleting the storage pools lower than the alarm threshold; the technical scheme of traversing the storage pool list and selecting the first available storage pool as the storage pool of the cloud host to be created can more evenly share the performance of the host and the storage pool, prevent the cloud host from being created on one host and the storage pool, and prevent other hosts from being far from being utilized, thereby achieving the effect of load balancing.
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, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method of a cloud management platform creating a cloud host, according to one embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus for creating a cloud host by a cloud management platform according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for creating a cloud host by a cloud management platform. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, in response to receiving the instruction to create the cloud host, determines whether a host of the cloud host to be created has been selected.
When the cloud host is created, the host can be selected by a user, the storage pool of the host can be selected through a strategy, and the host and the storage pool can also be selected through the strategy.
S2, in response to the host of the cloud host to be created having been selected, obtaining a storage pool list of all connection states on all hosts in the cloud management platform based on the IP of the selected host and obtaining an alarm threshold for the storage pool.
Aiming at the situation that a storage pool is selected by a host autonomously, when a cloud host is created on an interface end, a creation mode, namely a mode of creating the cloud host by ISO or OVA, needs to be selected, then the host is selected, because the host is selected autonomously, the host IP is known, finally, indexes such as a network card, the number of disks, a system OS and the like are selected autonomously according to needs, and then a request is sent. When the back-end service is processed, the condition of the front-end request is analyzed to intelligently judge which mode the front-end request belongs to so as to facilitate scheduling of different strategies. When a situation is identified where a host is selected autonomously, but the storage pool is selected intelligently, the selected host is the one whose connection status is available, but needs to be verified as being under the corresponding switch. Because the intelligent selection of the storage pool is designed in the scene, the storage pool capacity required by the cloud host needs to be calculated in advance, the number of all disks in the request needs to be inquired, the capacity of all the disks needs to be summed, and at the moment, the Size of the disk is known to be Size. According to service requirements, the storage pool type of an ISO creation mode can be a RAW storage pool and an OCFS storage pool, and the OVA creation mode can only be the OCFS storage pool, so that the type of the storage pool can be intelligently selected by transmitting parameter identification according to the creation mode.
S3 sifts out preset types of storage pools from the storage pool list and deletes storage pools below the alarm threshold.
Screening an OCFS non-double-active storage pool in a mounted state from the storage pool list, then screening a RAW non-double-active storage pool in the mounted state, sorting according to the fact that the priority of the type of the OCFS storage pool is larger than that of the type of the RAW storage pool (the OCFS storage pool is guaranteed to be used preferentially), and then deleting the storage pool lower than the alarm threshold.
S4 traverses the storage pool list and selects the first available storage pool as the storage pool of the cloud host to be created.
According to the technical scheme, the performances of the host and the storage pool can be more balanced, the cloud hosts are prevented from being established on one host and the storage pool, and other hosts are far from being utilized, so that the effect of load balancing is achieved.
In a preferred embodiment of the present invention, the method further comprises:
in response to that the host of the cloud host to be created is not selected, acquiring and sequencing a host list of all connection states in the cloud management platform;
deleting the hosts which are not in the corresponding switch in the host list;
traversing the host list, and judging whether the host in the host list has a storage pool of a first preset type;
in response to the first preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
If the hosts of the cloud host are not selected by the user when the cloud host is created, the hosts and the storage pools of the cloud host need to be selected through a strategy, all the hosts which are in a connection state under the current data center are firstly obtained, a host list is obtained according to the sorting of the memory availability from high to low, the hosts which are not in the corresponding switch in the host list are deleted, the hosts are traversed for the first time, the OCFS type storage pools under the hosts are preferentially inquired, whether the available OCFS storage pools exist in each host is inquired, if yes, the hosts are jumped out, if not, the next host pool is continued until the hosts are found, and when all the hosts do not have the available OCFS, when the creation mode is ISO is met, the hosts can be traversed again to obtain the RAW storage pools under the hosts until the hosts are found. And the host of the OCFS storage pool or the first RAW storage pool found in the host list is used as the host and the storage pool of the cloud host to be created.
In a preferred embodiment of the present invention, the method further comprises:
in response to the fact that the host in the host list does not have the storage pool of the first preset type, traversing the host list, and judging whether the host in the host list has the storage pool of the second preset type;
and in response to the second preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
In a preferred embodiment of the present invention, the first storage pool of the preset type is an OCFS type storage pool, and the second storage pool of the preset type is a RAW storage pool.
In a preferred embodiment of the present invention, in response to that a host of a cloud host to be created is not selected, acquiring and sorting a host list of all connection states in the cloud management platform includes:
and sorting the hosts in the host list according to the memory availability from high to low.
In a preferred embodiment of the present invention, the preset type of storage pool includes an OCFS type storage pool and a RAW storage pool.
In a preferred embodiment of the present invention, the screening out a preset type of storage pool from the storage pool list and deleting storage pools below the alarm threshold comprises:
screening an OCFS non-double-active storage pool in a mounted state from the storage pool list;
screening out RAW non-double-active storage pools in a mounting state;
and sorting according to the priority of the OCFS storage pool type being larger than the RAW storage pool type, and then deleting the storage pools lower than the alarm threshold.
According to the technical scheme, the performances of the host and the storage pool can be more balanced, the cloud hosts are prevented from being established on one host and the storage pool, and other hosts are far from being utilized, so that the effect of load balancing is achieved.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for creating a cloud host by a cloud management platform, as shown in fig. 2, the apparatus 200 includes:
the judging module is configured to respond to the received instruction for creating the cloud host and judge whether the host of the cloud host to be created is selected.
When the cloud host is created, the host can be selected by a user, the storage pool of the host can be selected through a strategy, and the host and the storage pool can also be selected through the strategy.
The acquisition module is configured to respond to the fact that the host of the cloud host to be created is selected, and acquire the storage pool lists of all connection states on all the hosts in the cloud management platform based on the IP of the selected host and acquire the alarm threshold of the storage pool.
Aiming at the situation that a storage pool is selected by a host autonomously, when a cloud host is created on an interface end, a creation mode, namely a mode of creating the cloud host by ISO or OVA, needs to be selected, then the host is selected, because the host is selected autonomously, the host IP is known, finally, indexes such as a network card, the number of disks, a system OS and the like are selected autonomously according to needs, and then a request is sent. When the back-end service is processed, the condition of the front-end request is analyzed to intelligently judge which mode the front-end request belongs to so as to facilitate scheduling of different strategies. When a situation is identified where a host is selected autonomously, but the storage pool is selected intelligently, the selected host is the one whose connection status is available, but needs to be verified as being under the corresponding switch. Because the intelligent selection of the storage pool is designed in the scene, the storage pool capacity required by the cloud host needs to be calculated in advance, the number of all disks in the request needs to be inquired, the capacity of all the disks needs to be summed, and at the moment, the Size of the disk is known to be Size. According to service requirements, the storage pool type of an ISO creation mode can be a RAW storage pool and an OCFS storage pool, and the OVA creation mode can only be the OCFS storage pool, so that the type of the storage pool can be intelligently selected by transmitting parameter identification according to the creation mode.
And the sorting module is configured to screen preset types of storage pools from the storage pool list and delete the storage pools lower than the alarm threshold.
Screening an OCFS non-double-active storage pool in a mounted state from the storage pool list, then screening a RAW non-double-active storage pool in the mounted state, sorting according to the fact that the priority of the type of the OCFS storage pool is larger than that of the type of the RAW storage pool (the OCFS storage pool is guaranteed to be used preferentially), and then deleting the storage pool lower than the alarm threshold.
A selection module configured to traverse the storage pool list and select a first available storage pool as a storage pool of the cloud host to be created.
In a preferred embodiment of the present invention, the system further comprises a creation module configured to:
in response to that the host of the cloud host to be created is not selected, acquiring and sequencing a host list of all connection states in the cloud management platform;
deleting the hosts which are not in the corresponding switch in the host list;
traversing the host list, and judging whether the host in the host list has a storage pool of a first preset type;
in response to the first preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
In a preferred embodiment of the present invention, the creation module is further configured to:
in response to the fact that the host in the host list does not have the storage pool of the first preset type, traversing the host list, and judging whether the host in the host list has the storage pool of the second preset type;
and in response to the second preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
In a preferred embodiment of the present invention, the first storage pool of the preset type is an OCFS type storage pool, and the second storage pool of the preset type is a RAW storage pool.
In a preferred embodiment of the present invention, the creation module is further configured to:
and sorting the hosts in the host list according to the memory availability from high to low.
In a preferred embodiment of the present invention, the preset type of storage pool includes an OCFS type storage pool and a RAW storage pool.
In a preferred embodiment of the present invention, the sorting module is further configured to:
screening an OCFS non-double-active storage pool in a mounted state from the storage pool list;
screening out RAW non-double-active storage pools in a mounting state;
and sorting according to the priority of the OCFS storage pool type being larger than the RAW storage pool type, and then deleting the storage pools lower than the alarm threshold.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the method of:
in response to receiving an instruction for creating a cloud host, judging whether a host of the cloud host to be created is selected;
responding to the fact that a host of a cloud host to be created is selected, obtaining storage pool lists of all connection states on all hosts in the cloud management platform based on the IP of the selected host, and obtaining an alarm threshold value of the storage pool;
screening storage pools of preset types from the storage pool list and deleting the storage pools lower than the alarm threshold;
the storage pool list is traversed and the first available storage pool is selected as the storage pool of the cloud host to be created.
In a preferred embodiment of the present invention, the method further comprises:
in response to that the host of the cloud host to be created is not selected, acquiring and sequencing a host list of all connection states in the cloud management platform;
deleting the hosts which are not in the corresponding switch in the host list;
traversing the host list, and judging whether the host in the host list has a storage pool of a first preset type;
in response to the first preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
In a preferred embodiment of the present invention, the method further comprises:
in response to the fact that the host in the host list does not have the storage pool of the first preset type, traversing the host list, and judging whether the host in the host list has the storage pool of the second preset type;
and in response to the second preset type of storage pool in the hosts in the host list, selecting the host with the first preset type of storage pool in the host list as the host of the cloud host to be created.
In a preferred embodiment of the present invention, the first storage pool of the preset type is an OCFS type storage pool, and the second storage pool of the preset type is a RAW storage pool.
In a preferred embodiment of the present invention, in response to that a host of a cloud host to be created is not selected, acquiring and sorting a host list of all connection states in the cloud management platform includes:
and sorting the hosts in the host list according to the memory availability from high to low.
In a preferred embodiment of the present invention, the preset type of storage pool includes an OCFS type storage pool and a RAW storage pool.
In a preferred embodiment of the present invention, the screening out a preset type of storage pool from the storage pool list and deleting storage pools below the alarm threshold comprises:
screening an OCFS non-double-active storage pool in a mounted state from the storage pool list;
screening out RAW non-double-active storage pools in a mounting state;
and sorting according to the priority of the OCFS storage pool type being larger than the RAW storage pool type, and then deleting the storage pools lower than the alarm threshold.
In view of the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium stores S31 a computer program that, when executed by a processor, performs the method as described above S32.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for creating a cloud host by a cloud management platform is characterized by comprising the following steps:
in response to receiving an instruction for creating a cloud host, judging whether a host of the cloud host to be created is selected;
in response to that a host of a cloud host to be created is selected, obtaining a storage pool list of all connection states on all hosts in a cloud management platform based on the IP of the selected host and obtaining an alarm threshold of the storage pool;
screening storage pools of preset types from the storage pool list and deleting the storage pools lower than the alarm threshold;
the storage pool list is traversed and the first available storage pool is selected as the storage pool of the cloud host to be created.
2. The method of claim 1, further comprising:
in response to that the host of the cloud host to be created is not selected, acquiring and sequencing a host list of all connection states in the cloud management platform;
deleting hosts in the host list which are not in the corresponding switch;
traversing the host list, and judging whether a first preset type storage pool exists in the hosts in the host list;
and in response to the fact that the storage pool of the first preset type exists in the hosts in the host list, selecting the host of the first storage pool of the first preset type in the host list as the host of the cloud host to be created.
3. The method of claim 2, further comprising:
in response to the fact that the host in the host list does not have the storage pool of the first preset type, traversing the host list, and judging whether the host in the host list has the storage pool of the second preset type;
and in response to the fact that the storage pool of the second preset type exists in the hosts in the host list, selecting the host of the first storage pool of the second preset type in the host list as the host of the cloud host to be created.
4. The method of claim 3, wherein the first predetermined type of storage pool is an OCFS type storage pool, and wherein the second predetermined type of storage pool is a RAW storage pool.
5. The method of claim 2, wherein in response to a host of the cloud host to be created not being selected, obtaining and sorting a list of hosts of all connection states in the cloud management platform comprises:
and sorting the hosts in the host list according to the memory availability from high to low.
6. The method of claim 1, wherein the pre-configured types of pools include an OCFS type pool and a RAW pool.
7. The method of claim 6, wherein screening the list of storage pools for storage pools of a preset type and deleting storage pools below the alarm threshold comprises:
screening an OCFS non-double-active storage pool in a mounted state from the storage pool list;
screening out RAW non-double-active storage pools in a mounting state;
and sorting according to the priority of the OCFS storage pool type greater than the RAW storage pool type, and deleting the storage pools lower than the alarm threshold.
8. An apparatus for a cloud management platform to create a cloud host, the apparatus comprising:
the judging module is configured to respond to the received instruction for creating the cloud host and judge whether the host of the cloud host to be created is selected;
the system comprises an acquisition module, a storage management module and a management module, wherein the acquisition module is configured to respond to the fact that a host of a cloud host to be created is selected, acquire storage pool lists of all connection states on all hosts in a cloud management platform based on the IP of the selected host and acquire an alarm threshold of the storage pool;
the sorting module is configured to screen preset types of storage pools from the storage pool list and delete the storage pools lower than the alarm threshold;
a selection module configured to traverse the storage pool list and select a first available storage pool as a storage pool of the cloud host to be created.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110593371.5A 2021-05-28 2021-05-28 Method, device and equipment for creating cloud host by cloud management platform and readable medium Pending CN113419847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110593371.5A CN113419847A (en) 2021-05-28 2021-05-28 Method, device and equipment for creating cloud host by cloud management platform and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110593371.5A CN113419847A (en) 2021-05-28 2021-05-28 Method, device and equipment for creating cloud host by cloud management platform and readable medium

Publications (1)

Publication Number Publication Date
CN113419847A true CN113419847A (en) 2021-09-21

Family

ID=77713193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110593371.5A Pending CN113419847A (en) 2021-05-28 2021-05-28 Method, device and equipment for creating cloud host by cloud management platform and readable medium

Country Status (1)

Country Link
CN (1) CN113419847A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897866A (en) * 2016-03-29 2016-08-24 新浪网技术(中国)有限公司 IaaS cloud platform-based cloud host migration method and apparatus
US9569249B1 (en) * 2015-09-08 2017-02-14 International Business Machines Corporation Pattern design for heterogeneous environments
CN106648838A (en) * 2016-12-31 2017-05-10 云宏信息科技股份有限公司 Configuration method and device for resource pool management
CN107656795A (en) * 2017-08-21 2018-02-02 云宏信息科技股份有限公司 A kind of virtual machine of VMware platforms is transformed into the implementation method and device of WinServer platforms
CN108028804A (en) * 2015-07-10 2018-05-11 国际商业机器公司 The management of virtual machine in virtual computation environmental based on structure limitation
CN110764876A (en) * 2019-10-25 2020-02-07 浪潮电子信息产业股份有限公司 Cloud host creation method, device, equipment and readable storage medium
CN111090498A (en) * 2019-12-13 2020-05-01 腾讯科技(深圳)有限公司 Virtual machine starting method and device, computer readable storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108028804A (en) * 2015-07-10 2018-05-11 国际商业机器公司 The management of virtual machine in virtual computation environmental based on structure limitation
US9569249B1 (en) * 2015-09-08 2017-02-14 International Business Machines Corporation Pattern design for heterogeneous environments
CN105897866A (en) * 2016-03-29 2016-08-24 新浪网技术(中国)有限公司 IaaS cloud platform-based cloud host migration method and apparatus
CN106648838A (en) * 2016-12-31 2017-05-10 云宏信息科技股份有限公司 Configuration method and device for resource pool management
CN107656795A (en) * 2017-08-21 2018-02-02 云宏信息科技股份有限公司 A kind of virtual machine of VMware platforms is transformed into the implementation method and device of WinServer platforms
CN110764876A (en) * 2019-10-25 2020-02-07 浪潮电子信息产业股份有限公司 Cloud host creation method, device, equipment and readable storage medium
CN111090498A (en) * 2019-12-13 2020-05-01 腾讯科技(深圳)有限公司 Virtual machine starting method and device, computer readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103765948B (en) Select the methods, devices and systems of mobile management entity
KR101736425B1 (en) Cloud computing enhanced gateway for communication networks
CN110072273A (en) A kind of communication means, device, entity and storage medium
CN112612577B (en) Method, device and equipment for monitoring large-scale K8s cluster and readable medium
CN102724105B (en) A kind of load-balancing method and device
CN115278648B (en) Service carrier switching method and device
US11757716B2 (en) Network management apparatus, method, and program
CN117014313B (en) Method and system for analyzing equipment data of edge cloud platform in real time
CN113419847A (en) Method, device and equipment for creating cloud host by cloud management platform and readable medium
CN116489024A (en) Method, device, equipment and medium for improving application performance of K8S cluster container
CN112559847A (en) Method and device for searching nodes in network graph, electronic equipment and storage medium
CN114157639B (en) Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN113806076B (en) Method, device, equipment and readable medium for distributing four-control environment memory
CN113672177B (en) Method, device, equipment and readable medium for customizing volume QoS (quality of service) of multiple clients
CN114138180A (en) Method, device and equipment for deleting object and readable medium
CN108353352A (en) A kind of network element selection method and network element selector
CN111695112B (en) Method and device for dynamically controlling access rights
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
CN111478937A (en) Load balancing method and device
CN114661561B (en) Method, system, equipment and medium for reducing CPU consumption data packet capturing
CN111182523A (en) Method, device, terminal and storage medium for realizing card selection
CN110572303B (en) Method and device for automatically discovering nodes
CN112527375B (en) Method, device, equipment and readable medium for modifying volume QoS configuration
CN115955404B (en) Internet of things scene management method, device, equipment and medium
CN114816265A (en) Method, device and equipment for managing storage node resources and readable medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210921

RJ01 Rejection of invention patent application after publication