Cloud host configuration method and device, computer equipment, readable storage medium and program product
By extracting the information in the cloud host creation request, determining the matching cloud host information and creating a disk group, limiting the total request limit of the disk group, solving the instability problem caused by the performance of cloud hosts exceeding the host capabilities under traditional methods, and realizing the stability of cloud host configuration and the overall stability of cloud computing system.
Patent Information
- Application Number
- CN202411767375.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-07
AI Technical Summary
When traditional cloud host configuration methods mount multiple disks on the same cloud host, the maximum performance sum of disks may exceed the maximum capability supported by the host, resulting in instability of the cloud computing system.
Provides a cloud host configuration method, which extracts request information in response to cloud host creation requests, determines cloud host information matching the request, creates a corresponding disk group, and limits the total request upper limit of each disk in the disk group based on the request limit information.
This method can stably control the total request upper limit of the cloud host, ensure the stability of the cloud host configuration, and thus ensure the stability of the entire cloud computing system.
Smart Images

Figure CN119576573A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud computing, and in particular to a cloud host configuration method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of cloud computing technology, cloud host technology has emerged. Generally, multiple cloud hosts run on a host machine. Each cloud host can be equipped with multiple disks to store resources in the cloud.
[0003] Traditional cloud host configuration methods only limit requests to a single disk. However, when multiple disks are mounted on the same cloud host, the total maximum performance of the mounted disks may exceed the maximum capacity supported by the host function in the cloud computing system, thus causing instability in the cloud computing system. Summary of the invention
[0004] Based on this, it is necessary to provide a cloud host configuration method, device, computer equipment, computer-readable storage medium and computer program product that can improve stability in response to the above technical problems.
[0005] In a first aspect, the present application provides a cloud host configuration method, comprising:
[0006] In response to the received cloud host creation request, extracting request information from the cloud host creation request;
[0007] Based on the request information, determining cloud host information matching the cloud host creation request from the storage space; the cloud host information includes cloud host creation information and request restriction information;
[0008] Creating a cloud host matching the cloud host creation request according to the cloud host creation information;
[0009] Based on the request limit information, a disk group corresponding to the cloud host is created; the request limit information is used to limit the total request upper limit corresponding to each disk in the disk group.
[0010] In one embodiment, based on the request information, determining cloud host information matching the cloud host creation request from a storage space includes:
[0011] Based on the request information, determining a creation intention corresponding to the cloud host creation request;
[0012] The target cloud host information that meets the creation intention among the multiple candidate cloud host information stored in the storage space is used as the cloud host information that matches the cloud host creation request.
[0013] In one embodiment, the method further comprises:
[0014] Convert the request restriction information into a format according to a preset information format to obtain conversion restriction information;
[0015] The conversion restriction information is stored in the storage space.
[0016] In one embodiment, creating a disk group corresponding to the cloud host based on the request restriction information includes:
[0017] Acquire the conversion restriction information from the storage space;
[0018] Based on the conversion restriction information, a storage development kit is called to create a disk group corresponding to the cloud host.
[0019] In one embodiment, the method further comprises:
[0020] Acquire multiple candidate disks from the cloud computing system, and determine a target disk mounted in the cloud host from each of the candidate disks;
[0021] Add the target disk mounted in the cloud host to the disk group.
[0022] In one embodiment, the method further comprises:
[0023] In response to the received disk group configuration event, determining disk group configuration information for the disk group;
[0024] Based on the disk group configuration information, the number of disks in the disk group is updated.
[0025] In a second aspect, the present application also provides a cloud host configuration device, including:
[0026] A request information extraction module, configured to extract request information from a received cloud host creation request in response to the received cloud host creation request;
[0027] An information determination module, configured to determine, based on the request information, cloud host information matching the cloud host creation request from a storage space; the cloud host information includes cloud host creation information and request restriction information;
[0028] A cloud host creation module, used to create a cloud host matching the cloud host creation request according to the cloud host creation information;
[0029] The disk group creation module is used to create a disk group corresponding to the cloud host based on the request restriction information; the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group.
[0030] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.
[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0032] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0033] The above-mentioned cloud host configuration method, apparatus, computer equipment, computer-readable storage medium and computer program product, in response to a received cloud host creation request, extract request information from the cloud host creation request, can determine the request status of the cloud host creation, and based on the request information, determine the cloud host information matching the cloud host creation request from the storage space, wherein the cloud host information includes cloud host creation information and request restriction information, and according to the cloud host creation information, create a cloud host matching the cloud host creation request, so as to realize the creation of the cloud host, and then, based on the request restriction information, create a disk group corresponding to the cloud host, so as to realize the request restriction of the disk group corresponding to the cloud host one by one, because the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group, therefore, the above-mentioned method is used to configure the cloud host, so as to stably control the total request upper limit of the cloud host, ensure the stability of the cloud host configuration, and further ensure the stability of the entire cloud computing system. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 An application environment diagram of a cloud host configuration method in one embodiment;
[0036] Figure 2 A schematic diagram of a process flow of a cloud host configuration method in one embodiment;
[0037] Figure 3 This is an overall architecture diagram of a cloud computing system in one embodiment;
[0038] Figure 4 A schematic diagram of a flow chart of a cloud host configuration method in another embodiment;
[0039] Figure 5 A schematic diagram of a process flow of cloud host configuration steps in one embodiment;
[0040] Figure 6 A flowchart of cloud host configuration steps in another embodiment;
[0041] Figure 7 A schematic diagram of a flow chart of a cloud host configuration method in yet another embodiment;
[0042] Figure 8 A structural block diagram of a cloud host configuration device in one embodiment;
[0043] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The cloud host configuration method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The cloud computing platform 102 communicates with the terminal 104 through the network. The terminal 104 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The cloud computing platform 102, also known as the cloud platform, is a service based on hardware resources and software resources, providing computing, network and storage capabilities. Specifically, during the process of cloud host configuration, the cloud computing platform 102 responds to the cloud host creation request received from the terminal 104, extracts request information from the cloud host creation request; based on the request information, determines the cloud host information that matches the cloud host creation request from the storage space; the cloud host information includes cloud host creation information and request restriction information; according to the cloud host creation information, creates a cloud host that matches the cloud host creation request; based on the request restriction information, creates a disk group corresponding to the cloud host; the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group.
[0046] In an exemplary embodiment, Figure 2 As shown, a cloud host configuration method is provided, which is applied to Figure 1 The cloud computing platform 102 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps S202 to S208. Among them:
[0047] Step S202: In response to the received cloud host creation request, extract request information from the cloud host creation request.
[0048] The cloud host creation request refers to a request for creating a cloud host sent based on certain requirements. The request information refers to information associated with the cloud host creation request. For example, the request information may include configuration information, memory information, etc. of the cloud host.
[0049] Specifically, if a user wants to create a cloud host, he can send a cloud host creation request to the cloud computing platform based on the terminal. After receiving the cloud host creation request, the cloud computing platform can extract request information from the cloud host creation request to determine the specific cloud host creation status.
[0050] Step S204: Based on the request information, determine cloud host information matching the cloud host creation request from the storage space.
[0051] Among them, storage space refers to the storage space in the cloud computing platform, which stores the information and data needed in the cloud computing platform. Cloud host information mainly refers to the flavor information of the cloud host, that is, the virtual machine specification template, which defines the specification parameters such as disk size, number of CPUs, memory size, etc. Cloud host information includes cloud host creation information and request limit information. Cloud host creation information refers to the information required for the cloud host creation process. Request limit information refers to the information on the number of requests or request flow limit, generally referring to QoS (Quality of Service), that is, service quality information. In the storage system, QoS can bring customers restrictions on the number of read and write requests and read and write request flows. For example, the maximum number of requests and maximum flow values can be set for specific users.
[0052] Specifically, after extracting the request information from the cloud host creation request, the user's need to create a cloud host can be determined. Therefore, the cloud host information matching the cloud host creation request can be determined from the storage space, which facilitates the subsequent creation and configuration of the cloud host according to the cloud host information. In some specific embodiments, the cloud computing platform can determine the user's intention to create a cloud host based on the request information, and match the corresponding cloud host information from the storage space based on the intention to create a cloud host.
[0053] Step S206: Create a cloud host that matches the cloud host creation request according to the cloud host creation information.
[0054] Specifically, after obtaining the cloud host creation information, the cloud host platform can create a cloud host matching the cloud host creation request according to the cloud host creation information. It is understood that the user can select various types of information of the cloud host to be created, for example, memory information, storage type information, etc. of the cloud host to be created.
[0055] Step S208: Create a disk group corresponding to the cloud host based on the request restriction information.
[0056] The request limit information is used to limit the total request limit for each disk in the disk group. A disk group is a logical storage unit composed of multiple physical disks (such as SSDs or HDDs) and is used to provide data storage and access services. In a cloud host environment, disk groups are often used to improve storage performance, reliability, and scalability.
[0057] Specifically, after obtaining the request limit information, the cloud computing platform can create a corresponding disk group for the cloud host based on the request limit information, that is, the total number of requests and the total request flow of all disks in the disk group are limited by the request limit information. In some specific embodiments, the disk group can be created by mobilizing related components, or the cloud computing platform can directly create the disk group.
[0058] The above cloud host configuration method extracts request information from the cloud host creation request in response to the received cloud host creation request, and can determine the request status of the cloud host creation. Based on the request information, the cloud host information matching the cloud host creation request is determined from the storage space, wherein the cloud host information includes cloud host creation information and request restriction information. According to the cloud host creation information, a cloud host matching the cloud host creation request is created, and the cloud host can be created. After that, based on the request restriction information, a disk group corresponding to the cloud host is created, and the request restriction of the disk group corresponding to the cloud host can be realized. Since the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group, the above method is used to configure the cloud host, and the total request upper limit of the cloud host can be stably controlled, ensuring the stability of the cloud host configuration, and then ensuring the stability of the entire cloud computing system.
[0059] In an exemplary embodiment, based on the request information, cloud host information matching the cloud host creation request is determined from the storage space, including: based on the request information, determining the creation intention corresponding to the cloud host creation request; and using the target cloud host information that meets the creation intention among multiple candidate cloud host information stored in the storage space as the cloud host information matching the cloud host creation request.
[0060] The creation intention refers to the user's inner tendency or intention to create a cloud host. The candidate cloud host information refers to the cloud host information that may be selected.
[0061] Specifically, the cloud computing platform can determine the creation intention corresponding to the cloud host creation request based on the request information, thereby determining the user's inner tendency or intention to create a cloud host. Afterwards, based on the user's inner tendency or intention to create a cloud host, the platform can select the target cloud host information that matches the creation intention from multiple candidate cloud host information stored in the storage space as the cloud host information that matches the cloud host creation request, thereby ensuring the accuracy of the cloud host information.
[0062] In an exemplary embodiment, the cloud host configuration method further includes: converting the format of the request restriction information according to a preset information format to obtain conversion restriction information; and storing the conversion restriction information in a storage space.
[0063] The preset information format refers to an information organization form or rule that is set in advance when creating, storing or processing information. In this embodiment, the preset information format refers to the XML format. In this embodiment, the storage space refers to libvirt XML. Specifically, the configuration of the cloud host in libvirt is described by an XML file. This XML file contains various configuration information of the cloud host, such as CPU, memory, disk, network interface, etc. By editing this XML file, the user can customize the configuration of the cloud host.
[0064] Specifically, in order to facilitate the creation of subsequent disk groups, the cloud computing platform needs to first convert the request restriction information according to a preset information format to obtain conversion restriction information, and then store the conversion restriction information in a storage space to facilitate subsequent acquisition of the conversion restriction information from the storage space. Furthermore, it can also facilitate the creation of subsequent disk groups.
[0065] In an exemplary embodiment, creating a disk group corresponding to a cloud host based on request restriction information includes: obtaining conversion restriction information from a storage space; and calling a storage development kit to create a disk group corresponding to the cloud host based on the conversion restriction information.
[0066] The Storage Performance Development Kit (SPDK) is a storage development kit designed specifically for dedicated devices (NVME). SPDK provides a series of high-performance, scalable, user-mode tools and libraries.
[0067] Specifically, in order to ensure the stability of the disk group creation process, the cloud computing platform can first obtain conversion restriction information from the storage space, and then, based on the conversion restriction information, call the storage development kit to create a disk group corresponding to the cloud host.
[0068] In an exemplary embodiment, the cloud host configuration method also includes: obtaining multiple candidate disks from the cloud computing system, and determining a target disk mounted in the cloud host from each candidate disk; adding the target disk mounted in the cloud host to the disk group.
[0069] The candidate disk refers to a disk that may be selected.
[0070] Specifically, after creating a disk group, you also need to assign corresponding disks to the disk group. Since cloud hosts correspond to disk groups one by one, you need to first obtain multiple candidate disks from the cloud computing system, and from each candidate disk, determine the target disk mounted in the cloud host, and finally add the target disk mounted in the cloud host to the disk group.
[0071] In this embodiment, the target disk mounted in the cloud host is added to the disk group, which can ensure the normal configuration of the cloud host.
[0072] In an exemplary embodiment, the cloud host configuration method further includes: determining disk group configuration information for the disk group in response to a received disk group configuration event; and updating the number of disks in the disk group based on the disk group configuration information.
[0073] The disk group configuration event usually involves operations of creating, modifying or managing a disk group in a storage system. The disk group configuration information is the relevant information for configuring the disk group. For example, the disk group configuration information may be information for adding or deleting a disk in the disk group.
[0074] Specifically, a cloud host can mount multiple disks, and the number of disks is not fixed, that is, the number of disks can be increased or decreased. Therefore, after receiving the disk group configuration event, the cloud computing platform determines the disk group configuration information for the disk group, and then updates the number of disks in the disk group based on the disk group configuration information. For example, when the disk group configuration information for the disk group is to delete a disk, the cloud computing platform needs to delete one of the disks in the disk group and update the number of disks in the disk group. Similarly, when the disk group configuration information for the disk group is to add a new disk, the cloud computing platform needs to add a new disk to the disk group and update the number of disks in the disk group. Exemplary, such as Figure 3As shown, vm1, vm2... correspond to multiple cloud hosts, each cloud host contains multiple disks (disk1, disk2...), and disk1, disk2...) correspond to a disk group.
[0075] In this embodiment, the cloud computing platform can update the number of disks in the disk group according to the disk group configuration information, and can flexibly adapt to the user's disk configuration requirements.
[0076] In a specific embodiment, a cloud host configuration method in an actual application scenario is also provided, and the specific steps are as follows: Figure 4 As shown:
[0077] S1: The cloud computing side configures the QoS of the entire machine and transmits it to the virtualization layer.
[0078] S11: Add parameters to the cloud host flavor and save the QoS parameters of the entire machine in the flavor.
[0079] S12: When the cloud host is created, the QoS parameters of the entire machine in the flavor are obtained and initialized and filled into libvirtxml.
[0080] S2: The virtualization layer obtains the QoS parameters of the entire machine and calls SPDK to create QoS. The specific steps are as follows:
[0081] S21: When the cloud host creates a disk, the virtualization obtains XML parameters and determines whether the whole machine QoS parameters exist. If so, SPDK is called to create a disk group and set the QoS parameters to the disk group.
[0082] S22: When the cloud host mounts the SPDK cloud hard disk (disk), the virtualization calls SPDK to add the cloud hard disk to the disk group; correspondingly, if the cloud host uninstalls the SPDK cloud hard disk, the cloud hard disk is removed from the disk group.
[0083] S3: SPDK creates QoS, specific steps:
[0084] S31: SPDK obtains the virtualization input parameters to create a disk group.
[0085] S32: SPDK adds the disk mounted to the cloud host to the disk group marked with the cloud host. DETAILED DESCRIPTION
[0086] S1: The cloud computing side configures the QoS of the entire machine and transmits it to the virtualization layer;
[0087] S11: Add parameters to the cloud host flavor, configure the whole machine QoS parameters in the flavor, and add the whole machine QoS parameters in the additional configuration of the flavor. The QoS parameters include DISK:IOPS_BASE (cloud host whole machine IOPS) and DISK:BANDWIDTH_BASE (cloud host whole machine bandwidth) and specify the IOPS and bandwidth values.
[0088] S12: A new method is added to the computing layer to generate the XML model of the whole machine QoS and fill it into libvirtxml during the cloud host spawn phase. The specific process is as follows Figure 5 As shown;
[0089] S121: When the cloud host is created, it is determined whether the flavor contains the whole machine QoS parameters. If so, S122 is executed. If not, the method ends.
[0090] S122: Obtain the whole machine QoS parameters in the flavor and generate an XML model of the whole machine QoS according to the libvirtxml model.
[0091] S123: In the cloud host spawn phase, the initialized whole-machine QoS XML is filled into libvirtxml.
[0092] S2: The virtualization layer obtains the QoS parameters of the entire machine and calls SPDK to create QoS. The specific process is as follows Figure 6 As shown;
[0093] S21: When the cloud host is created, the virtualization obtains the parameters in libvirtxml and determines whether there are whole-machine QoS parameters in the parameters. If there are whole-machine QoS parameters, SPDK is called to create a disk group and set QoS for the disk group. The IOPS and bandwidth values of the disk group QoS are the corresponding parameter values in the whole-machine QoS. The cloud host and the disk group correspond one to one. If there are no whole-machine QoS parameters, exit without additional processing.
[0094] S22: When the cloud host mounts the SPDK cloud hard disk, the virtualization calls SPDK to add the cloud hard disk to the disk group corresponding to the cloud host; the cloud hard disks in the same disk group share the disk group QoS. Correspondingly, if the cloud host uninstalls the SPDK cloud hard disk, the cloud hard disk will be removed from the disk group corresponding to the cloud host.
[0095] S3: SPDK creates QoS;
[0096] S31: SPDK obtains the virtualization input parameters to create a disk group. The disk group and the cloud host correspond one to one, and sets QoS for the disk group. The QoS value of the disk group is the QoS value of the entire cloud host.
[0097] S32: SPDK adds the disk mounted to the cloud host to the disk group corresponding to the cloud host. When the cloud host unmounts the disk, SPDK removes the corresponding cloud hard disk from the disk group.
[0098] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0099] The method of implementing cloud host QoS based on SPDK disk group QoS solves the problem that a single cloud host occupies most of the host storage network resources when the host resources are limited in the current cloud computing system, resulting in storage performance degradation and instability of other cloud hosts on the same host, thereby achieving reasonable resource utilization and ensuring the stability of each cloud host's disk business capabilities.
[0100] In a specific embodiment, Figure 7 As shown, a cloud host configuration method is also provided, including:
[0101] Step S701, in response to the received cloud host creation request, extracting request information from the cloud host creation request, and determining a creation intention corresponding to the cloud host creation request based on the request information;
[0102] Step S702, using the target cloud host information that meets the creation intention among the multiple candidate cloud host information stored in the storage space as the cloud host information that matches the cloud host creation request;
[0103] The cloud host information includes cloud host creation information and request restriction information;
[0104] Step S703, creating a cloud host matching the cloud host creation request according to the cloud host creation information, and converting the request restriction information according to a preset information format to obtain conversion restriction information;
[0105] Step S704, storing the conversion restriction information in the storage space, obtaining the conversion restriction information from the storage space, and calling the storage development kit to create a disk group corresponding to the cloud host based on the conversion restriction information;
[0106] The request limit information is used to limit the total request limit corresponding to each disk in the disk group;
[0107] Step S705, obtaining multiple candidate disks from the cloud computing system, and determining a target disk mounted in the cloud host from each candidate disk;
[0108] Step S706, adding the target disk mounted in the cloud host to the disk group;
[0109] Step S707 : in response to the received disk group configuration event, determine disk group configuration information for the disk group, and update the number of disks in the disk group based on the disk group configuration information.
[0110] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0111] Based on the same inventive concept, the embodiment of the present application also provides a cloud host configuration device for implementing the cloud host configuration method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more cloud host configuration device embodiments provided below can refer to the limitations of the cloud host configuration method above, and will not be repeated here.
[0112] In an exemplary embodiment, Figure 8 As shown, a cloud host configuration device 800 is provided, including: a request information extraction module 802, an information determination module 804, a cloud host creation module 806 and a disk group creation module 808, wherein:
[0113] The request information extraction module 802 is used to extract request information from the cloud host creation request in response to the received cloud host creation request;
[0114] An information determination module 804 is used to determine cloud host information matching the cloud host creation request from the storage space based on the request information; the cloud host information includes cloud host creation information and request restriction information;
[0115] A cloud host creation module 806 is used to create a cloud host matching the cloud host creation request according to the cloud host creation information;
[0116] The disk group creation module 808 is used to create a disk group corresponding to the cloud host based on the request restriction information; the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group.
[0117] In an exemplary embodiment, the information determination module 804 is specifically configured to:
[0118] Based on the request information, determine the creation intention corresponding to the cloud host creation request;
[0119] The target cloud host information that meets the creation intention among the multiple candidate cloud host information stored in the storage space is used as the cloud host information that matches the cloud host creation request.
[0120] In an exemplary embodiment, the cloud host configuration device 800 further includes an information storage module, which is specifically used to:
[0121] Convert the request restriction information into a format according to a preset information format to obtain conversion restriction information;
[0122] The conversion restriction information is stored in a storage space.
[0123] In an exemplary embodiment, the disk group creation module 808 is specifically used to:
[0124] Get conversion restriction information from storage space;
[0125] Based on the conversion restriction information, call the storage development kit to create a disk group corresponding to the cloud host.
[0126] In an exemplary embodiment, the cloud host configuration device 800 further includes a disk adding module, which is specifically used to:
[0127] Obtain multiple candidate disks from the cloud computing system, and determine a target disk mounted in the cloud host from each candidate disk;
[0128] Add the target disk mounted in the cloud host to the disk group.
[0129] In an exemplary embodiment, the cloud host configuration device 800 further includes a disk quantity update module, which is specifically used to:
[0130] In response to the received disk group configuration event, determining disk group configuration information for the disk group;
[0131] Update the number of disks in the disk group based on the disk group configuration information.
[0132] Each module in the above cloud host configuration device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, an XXX method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0134] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program.
[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0137] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the above method when executed by a processor.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0141] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A cloud host configuration method, characterized in that: The method comprises: In response to the received cloud host creation request, extracting request information from the cloud host creation request; Based on the request information, determining cloud host information matching the cloud host creation request from the storage space; the cloud host information includes cloud host creation information and request restriction information; Creating a cloud host matching the cloud host creation request according to the cloud host creation information; Based on the request limit information, a disk group corresponding to the cloud host is created; the request limit information is used to limit the total request upper limit corresponding to each disk in the disk group.
2. The method according to claim 1, characterized in that The determining, based on the request information, from the storage space cloud host information matching the cloud host creation request includes: Based on the request information, determining a creation intention corresponding to the cloud host creation request; The target cloud host information that meets the creation intention among the multiple candidate cloud host information stored in the storage space is used as the cloud host information that matches the cloud host creation request.
3. The method according to claim 1, characterized in that The method further comprises: Convert the request restriction information into a format according to a preset information format to obtain conversion restriction information; The conversion restriction information is stored in the storage space.
4. The method according to claim 3, characterized in that The step of creating a disk group corresponding to the cloud host based on the request restriction information includes: Acquire the conversion restriction information from the storage space; Based on the conversion restriction information, a storage development kit is called to create a disk group corresponding to the cloud host.
5. The method according to claim 1, characterized in that The method further comprises: Acquire multiple candidate disks from the cloud computing system, and determine a target disk mounted in the cloud host from each of the candidate disks; Add the target disk mounted in the cloud host to the disk group.
6. The method according to claim 1, characterized in that The method further comprises: In response to the received disk group configuration event, determining disk group configuration information for the disk group; Based on the disk group configuration information, the number of disks in the disk group is updated.
7. A cloud host configuration device, characterized in that: The device comprises: A request information extraction module, configured to extract request information from a received cloud host creation request in response to the received cloud host creation request; An information determination module, configured to determine, based on the request information, cloud host information matching the cloud host creation request from a storage space; the cloud host information includes cloud host creation information and request restriction information; A cloud host creation module, used to create a cloud host matching the cloud host creation request according to the cloud host creation information; The disk group creation module is used to create a disk group corresponding to the cloud host based on the request restriction information; the request restriction information is used to limit the total request upper limit corresponding to each disk in the disk group.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.