A cloud server configuration method, device, management server and storage medium
By managing the server to generate and configure cloud server disk templates that meet tenant needs, it solves the problem that existing cloud server RAID types cannot be flexibly configured and improves service quality.
Patent Information
- Application Number
- CN202110235242.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-03-03
AI Technical Summary
The RAID types of existing cloud server system disks and data disks cannot be flexibly configured to meet the different needs of tenants, affecting service quality.
Obtain the demand information input by the tenant through the management server, generate a disk template that meets the demand based on the hardware parameters, and configure the cloud server to support flexible selection of multiple RAID types and storage amounts for system disks and data disks.
It realizes the flexible configuration of the system disk and data disk of the cloud server according to the needs of tenants, improves service quality and meets the needs of different tenants.
Smart Images

Figure CN112965662B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server configuration, and in particular to a configuration method, device, management server and storage medium for a cloud server. Background Art
[0002] Elastic Phsical Compute (EPC) is a high-performance, securely isolated physical server dedicated to the cloud. It helps tenants quickly build and expand application services with high-performance requirements through secure, stable and convenient computing services. It can build private clouds more quickly and provide virtual private networks, load balancing, NAT (Network Address Translation) gateways, operation and maintenance, monitoring, security protection and other services.
[0003] The cloud server has a redundant array of independent disks (RAID). RAID is a huge disk group composed of many independent disks. The additive effect of using individual disks to provide data can improve the performance of the entire disk system. It can also use parity checks to read data when any hard disk fails, and then when the data is reconstructed, the data is recalculated and re-placed into the new hard disk, which can improve data security. Different types of RAID have different performance, generally including RAID0, RAID1, RAID5, RAID10, RAID50, etc.
[0004] Since the RAID type of the disk has a great impact on the service performance that the cloud server can provide, it is a necessary step for tenants to select the RAID type they need when renting a cloud server. Currently, the system disk only supports RAID1, and the data disk supports a single RAID type selection. Users cannot select the RAID type of the system disk, and can only select one RAID type for all data disks. The size and RAID type of the data disk cannot be flexibly configured, so it cannot meet the different needs of tenants. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a configuration method, device, management server and storage medium for a cloud server to meet the different requirements of different tenants for the system disk and data disk of the cloud server and improve the service quality. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a configuration method of a cloud server, which is applied to a management server, and the method includes:
[0007] Obtaining demand information input by the tenant, wherein the demand information includes the type of system disk and data disk of the required cloud server;
[0008] In the case that there is a disk template that meets the requirement information among the currently established disk templates, the cloud server corresponding to the disk template that meets the requirement information is configured in accordance with the configuration method indicated by the disk template that meets the requirement information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk;
[0009] Allocate the configured cloud server to the tenant.
[0010] Optionally, the disk template is established by:
[0011] Get the hardware parameters of each disk of the target cloud server;
[0012] Determine the system disk and the data disk based on the hardware parameters and the preset disk partitioning rule;
[0013] Determine the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk;
[0014] Based on the types supported by the system disk and the data disk, a disk template corresponding to the target cloud server is generated.
[0015] Optionally, the step of determining the system disk and the data disk based on the hardware parameters and the preset disk partitioning rule includes:
[0016] Based on the hardware parameters, determining a target disk among the disks that meets the system disk requirement;
[0017] In the case that the storage capacity of the target disk is not greater than the preset data capacity, determining the target disk as a system disk, and determining the remaining disks as data disks;
[0018] When the storage capacity of the target disk is greater than the preset data capacity, a portion of the preset data capacity is divided from the target disk as a system disk, and the remaining portion of the target disk and other disks are determined as data disks.
[0019] Optionally, after the step of obtaining the hardware parameters of each disk of the target cloud server, the method further includes:
[0020] Based on the hardware parameters, determine the model package corresponding to the target cloud server;
[0021] The step of determining the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk includes:
[0022] According to the hardware parameters of the system disk and the data disk, the system disk and the data disk are divided into disk groups respectively, and the types that the disk groups can support are determined;
[0023] The step of generating a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk includes:
[0024] In the case where the model package includes a server with one hardware parameter, a disk template corresponding to the target cloud server is generated based on the types supported by the system disk and the data disk by using a Cartesian product pairing method;
[0025] In the case where the model package includes servers with multiple hardware parameters, respectively determine the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing server, wherein the existing server is another server included in the model package and having hardware parameters different from those of the target cloud server;
[0026] A disk template corresponding to the target cloud server is generated based on the intersection by a Cartesian product pairing method.
[0027] Optionally, after the step of generating a disk template corresponding to the target cloud server, the method further includes:
[0028] The disk template and the model package are recorded correspondingly.
[0029] Optionally, when there is no disk template that meets the requirement information among the currently established disk templates, the method further includes:
[0030] Based on the requirement information, generate a new disk template;
[0031] Configure the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template;
[0032] Allocate the configured cloud server to the tenant.
[0033] Optionally, after the step of generating a new disk template based on the demand information, the method further includes:
[0034] The new disk template is added to a preset database, wherein the preset database is used to store the established disk templates.
[0035] Optionally, the established disk template includes a disk template corresponding to the main configuration mode and a disk template corresponding to the sub-configuration mode;
[0036] The step of obtaining the demand information input by the tenant includes:
[0037] Obtaining the selection information of the tenant based on the tenant terminal input;
[0038] In a case where the selection information indicates that the main configuration mode or the sub-configuration mode is selected, determining a disk template that meets the requirement information among currently established disk templates;
[0039] In the case that the selection information is custom configuration information, it is determined that there is no disk template that meets the requirement information among the currently established disk templates.
[0040] In a second aspect, an embodiment of the present invention provides a configuration device for a cloud server, which is applied to a management server, and the device includes:
[0041] A demand information acquisition module, used to acquire demand information input by a tenant, wherein the demand information includes the type of system disk and data disk of the required cloud server;
[0042] A first server configuration module is used to configure a cloud server corresponding to the disk template that meets the requirement information in accordance with the configuration method indicated by the disk template that meets the requirement information when there is a disk template that meets the requirement information in the currently established disk template, wherein the established disk template is established in advance by the first template generation module based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk;
[0043] The first server allocation module is used to allocate the configured cloud server to the tenant.
[0044] Optionally, the first template generating module includes:
[0045] A hardware parameter acquisition unit, used to acquire hardware parameters of each disk of the target cloud server;
[0046] A disk determination unit, configured to determine a system disk and a data disk based on the hardware parameters and a preset disk partitioning rule;
[0047] A type determination unit, configured to determine the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk;
[0048] The template generation unit is used to generate a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk.
[0049] Optionally, the disk determination unit includes:
[0050] A target disk determination subunit, configured to determine a target disk among the disks that meets the system disk requirement based on the hardware parameters;
[0051] A first disk determination subunit is used to determine the target disk as a system disk and determine the remaining disks as data disks when the storage capacity of the target disk is not greater than a preset data capacity;
[0052] The second disk determination subunit is used to divide the part of the preset data amount from the target disk as the system disk when the storage capacity of the target disk is greater than the preset data amount, and determine the remaining part of the target disk and the remaining disks as data disks.
[0053] Optionally, the device further comprises:
[0054] A model package determination module, configured to determine the model package corresponding to the target cloud server based on the hardware parameters after obtaining the hardware parameters of each disk of the target cloud server;
[0055] The type determination unit comprises:
[0056] a type determination subunit, configured to divide the system disk and the data disk into disk groups according to the hardware parameters of the system disk and the data disk, and determine the types that the disk groups can support;
[0057] The template generation unit comprises:
[0058] A first generating subunit is used for generating a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk by using a Cartesian product pairing method when the model package includes a server with a hardware parameter;
[0059] The second generating sub-unit is used to determine the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing servers, respectively, when the model package includes servers with multiple hardware parameters; and generate a disk template corresponding to the target cloud server based on the intersection by a Cartesian product pairing method, wherein the existing server is other server included in the model package and having hardware parameters different from those of the target cloud server.
[0060] Optionally, the device further comprises:
[0061] The model package recording module is used to record the disk template and the model package accordingly after generating the disk template corresponding to the target cloud server.
[0062] Optionally, the device further comprises:
[0063] A template generation module, used for generating a new disk template based on the requirement information when there is no disk template meeting the requirement information in the currently established disk templates;
[0064] A second server configuration module, configured to configure the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template;
[0065] The second server allocation module is used to allocate the configured cloud server to the tenant.
[0066] Optionally, the device further comprises:
[0067] The template storage module is used to add the new disk template into a preset database after the new disk template is generated based on the demand information, wherein the preset database is used to store the established disk template.
[0068] Optionally, the established disk template includes a disk template corresponding to the main configuration mode and a disk template corresponding to the sub-configuration mode;
[0069] The demand information acquisition module includes:
[0070] A selection information acquisition unit, used to acquire selection information of the tenant based on the tenant terminal input;
[0071] A first determining unit is used to determine whether there is a disk template that meets the requirement information among the currently established disk templates when the selection information indicates that the main configuration mode or the sub-configuration mode is selected;
[0072] The second determining unit is used to determine, when the selection information is custom configuration information, that there is no disk template that meets the requirement information among the currently established disk templates.
[0073] In a third aspect, an embodiment of the present invention provides a management server, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0074] Memory, used to store computer programs;
[0075] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.
[0076] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.
[0077] Beneficial effects of the embodiments of the present invention:
[0078] In the solution provided by the embodiment of the present invention, the management server can obtain the demand information input by the tenant, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server. In the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured according to the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality. Of course, implementing any product or method of the present invention does not necessarily require all of the advantages described above to be achieved at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0080] Figure 1 A flowchart of a cloud server configuration method provided by an embodiment of the present invention;
[0081] Figure 2 Based on Figure 1 A flow chart of the method of establishing a disk template in the illustrated embodiment;
[0082] Figure 3 for Figure 2 A specific flow chart of step S202 in the embodiment;
[0083] Figure 4 Based on Figure 1 A flow chart of another configuration method of the cloud server of the illustrated embodiment;
[0084] Figure 5Based on Figure 4 A schematic diagram of a tenant terminal display interface of the illustrated embodiment;
[0085] Figure 6 Based on Figure 4 An interactive diagram of another configuration mode of the cloud server of the illustrated embodiment;
[0086] Figure 7 Based on Figure 6 A schematic diagram of an interface for manually generating a disk template in the illustrated embodiment;
[0087] Figure 8 Based on Figure 1 A schematic diagram of a configuration mode display interface of the illustrated embodiment;
[0088] Fig. 9 Based on Figure 1 A schematic diagram of a template whitelist management interface of the illustrated embodiment;
[0089] Fig.10 A schematic diagram of the structure of a cloud server configuration device provided by an embodiment of the present invention;
[0090] Fig.11 A schematic diagram of the structure of a cloud server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0091] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0092] In order to meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality, an embodiment of the present invention provides a configuration method, device, management server, computer-readable storage medium and computer program product of a cloud server. The following first introduces a configuration method of a cloud server provided by an embodiment of the present invention.
[0093] A cloud server configuration method provided in an embodiment of the present invention can be applied to a management server, which is a server used to manage bare metal servers. It can be a bare metal server used to manage a single product line, or it can be used to manage bare metal servers of multiple product lines, which is not specifically limited here.
[0094] like Figure 1 As shown, a configuration method of a cloud server is applied to a management server, and the method includes:
[0095] S101, obtaining demand information input by the tenant;
[0096] The demand information includes the type of system disk and data disk of the required cloud server.
[0097] S102, when there is a disk template that meets the requirement information among the currently established disk templates, configure the cloud server corresponding to the disk template of the requirement information according to the configuration mode indicated by the disk template that meets the requirement information;
[0098] The established disk template is established in advance based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk.
[0099] S103: Allocate the configured cloud server to the tenant.
[0100] It can be seen that in the solution provided by the embodiment of the present invention, the management server can obtain the demand information input by the tenant, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server, and in the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured in accordance with the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality.
[0101] When a tenant needs to rent a cloud server, he or she can input the demand information through the tenant terminal he or she uses, so that the management server can also obtain the demand information input by the tenant. Since the RAID type of the disk is crucial to whether the service provided by the cloud server can meet the tenant's requirements, the demand information may include the type of system disk and data disk of the required cloud server. Among them, the type of system disk and data disk is the RAID type, which can be RAID0, RAID1, RAID5, RAID10, RAID50, etc., and is not specifically limited here.
[0102] The demand information may also include the storage capacity and quantity of the system disk of the required cloud server and the storage capacity and quantity of the data disk. For example, the demand information input by the tenant may be SAS: 300G, RAID1; SATA: 2.0T*3, RAID5. This means that the system disk of the required cloud server has a storage capacity of 300G and a type of RAID1; and the data disk has a storage capacity of 2.0T and a type of RAID5, and the number is 3.
[0103] In order to quickly and automatically determine whether the current configuration of the cloud server can meet the needs of tenants, a disk template can be pre-established. The disk template can be pre-established based on the hardware parameters of the corresponding cloud server. The disk template can include the type of system disk and the type of data disk. Of course, it can also include the storage capacity of the system disk and the storage capacity of the data disk.
[0104] Since the hardware parameters of disks of different cloud servers may be different, the RAID types that can be applied to their disks may also be different. Therefore, after each cloud server is put into the warehouse, the management server can determine the RAID types of system disks and data disks that the cloud server can support based on the hardware parameters of its disks, and obtain its corresponding disk template.
[0105] The disks of a cloud server may meet the requirements of several different RAID types of system disks and data disks at the same time, so it is reasonable for a cloud server to have one or more disk templates. The disk template represents the configuration method of the RAID type of the system disk and the RAID type of the data disk that the cloud server can support.
[0106] After obtaining the demand information input by the tenant, the management server can determine whether there is a disk template that meets the demand information among the currently established disk templates. Furthermore, if there is a disk template that meets the demand information among the currently established disk templates, the cloud server corresponding to the disk template of the demand information is configured in accordance with the configuration method indicated by the disk template that meets the demand information, that is, executing the above-mentioned step S102.
[0107] In one embodiment, the management server can determine whether the type of system disk and the type of data disk included in the demand information match the type of system disk and the type of data disk included in the currently established disk template. If so, it can be determined that the currently established disk template contains a disk template that meets the demand information. The cloud server corresponding to the disk template that meets the demand information is the cloud server that can meet the tenant's needs.
[0108] When the requirement information includes the storage capacity of the system disk and the data disk, the management server can determine whether the type and storage capacity of the system disk and the type and storage capacity of the data disk included in the requirement information match the type and storage capacity of the system disk and the type and storage capacity of the data disk included in the currently established disk template. If so, it can be determined that the currently established disk template contains a disk template that meets the requirement information.
[0109] Next, the management server configures the cloud server corresponding to the disk template that meets the requirement information according to the configuration mode indicated by the disk template that meets the requirement information. In order to facilitate the determination of the cloud server corresponding to the disk template, the correspondence between the disk template and the corresponding cloud server can be recorded when the disk template is established.
[0110] In the above step S103, the management server can allocate the configured cloud server to the tenant, and the tenant can use the cloud server. Since the configuration of the cloud server meets the tenant's demand information, that is, the configuration of the cloud server meets the tenant's needs, it can provide the tenant with good service quality.
[0111] As an implementation method of the embodiment of the present invention, Figure 2 As shown, the method of establishing the above disk template may include:
[0112] S201, obtaining hardware parameters of each disk of the target cloud server;
[0113] When a cloud server is put into storage, or when a corresponding disk template needs to be generated for the cloud server, the management server can obtain the hardware parameters of each disk of the target cloud server, where the target cloud server is the cloud server for which the corresponding disk template needs to be generated.
[0114] The hardware parameters of each disk may include storage capacity, supported RAID type, operating system type, read / write speed, and other parameters that can identify its hardware performance, which are not specifically limited here.
[0115] S202, determining a system disk and a data disk based on the hardware parameters and a preset disk partitioning rule;
[0116] Because system disks and data disks have different requirements for disk hardware performance, some disks are suitable for use as system disks, while some disks may be more suitable for use as data disks. Therefore, you can pre-set disk partitioning rules, which are the rules used to identify system disks and data disk requirements.
[0117] In this way, after the management server obtains the hardware parameters of each disk of the target cloud server, it can determine which disks are suitable as system disks and which disks are suitable as data disks based on the hardware parameters and the preset disk partitioning rules.
[0118] S203, determining the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk;
[0119] Since various RAID types have different requirements for disks, different system disks and data disks can support different RAID types. For example, the characteristics of RAID0 are: data stripe distribution, high read and write performance, and 100% disk utilization, but there is no redundancy guarantee, which cannot cope with occasions with high data security requirements. The characteristics of RAID1 are: data mirror backup, read and write performance equivalent to a single disk, and 50% disk utilization, which can cope with occasions with high data security requirements. So, for RAID1, since data mirror backup is required, the number of data disks needs to be an even number.
[0120] Therefore, the management server can determine the types that the system disk and data disk can support based on the hardware parameters of the system disk and data disk. In one embodiment, the management server can count all the types that each system disk and data disk can support, so as to facilitate the subsequent generation of more templates, so as to try to ensure that all configuration methods supported by the target cloud server can be represented by disk templates for tenants to choose.
[0121] S204: Generate a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk.
[0122] After determining the types of system disks and data disks supported by the target cloud server, the management server can generate a disk template corresponding to the target cloud server based on the types supported by the system disks and data disks. As an implementation method, the management server can combine the types supported by the system disks with the types supported by the data disks, so that various combinations of system disks and data disks supported by the target cloud server can be obtained. Then, a disk template corresponding to each combination is generated.
[0123] It can be seen that the management server can obtain the hardware parameters of each disk of the target cloud server, determine the system disk and data disk based on the hardware parameters and the preset disk partitioning rules, determine the types that the system disk and data disk can support based on the hardware parameters of the system disk and data disk, and then generate the disk template corresponding to the target cloud server based on the types that the system disk and data disk can support. In this way, the management server can automatically generate a disk template when it needs to generate a disk template corresponding to the target cloud server, and can subsequently configure the corresponding cloud server based on the disk template when the tenant needs to rent a cloud server.
[0124] As an implementation method of the embodiment of the present invention, Figure 3 As shown, the step of determining the system disk and the data disk based on the hardware parameters and the preset disk partitioning rule may include:
[0125] S301, based on the hardware parameters, determining a target disk among the disks that meets the system disk requirement, and if the storage capacity of the target disk is not greater than the preset data capacity, executing step S302; if the storage capacity of the target disk is greater than the preset data capacity, executing step S303;
[0126] Since the system disk has more requirements for disks than the data disk, and the number of system disks is relatively small, usually 1 or 2, after the management server obtains the hardware parameters of each disk of the target cloud server, it can first determine the target disk among the disks that meets the system disk requirements based on the hardware parameters.
[0127] The storage capacity of the target disk may be large. In order to avoid wasting storage resources, the management server can determine whether the storage capacity of the target disk is greater than the preset data capacity. The preset data capacity can be set according to the general requirements of the system disk and is not specifically limited here. For example, it can be 300G, 280G, 350G, etc.
[0128] If the storage capacity of the target disk is not greater than the preset data capacity, it indicates that the storage resources of the target disk are small. If all of the target disk is used as a system disk, there will be no redundant storage resources. If a portion of the target disk is divided out as a data disk, the portion used as a system disk may not be able to meet the requirements of the system disk. Therefore, step S302 may be executed, i.e., determining that the target disk is a system disk, and determining that the remaining disks are data disks.
[0129] S302, determining that the target disk is a system disk, and determining that the remaining disks are data disks;
[0130] S303: divide the portion of the preset data volume from the target disk as a system disk, and determine the remaining portion of the target disk and other disks as data disks.
[0131] If the storage capacity of the target disk is greater than the preset data capacity, it means that the target disk has more storage resources. If all of them are used as system disks, there may be redundant storage resources. Therefore, in order to avoid wasting resources, step S303 can be executed.
[0132] The management server may divide a portion of the target disk with a preset data volume as a system disk, and determine the remaining portion of the target disk and the remaining disks as data disks.
[0133] It can be seen that in this embodiment, the management server can determine the target disk that meets the system disk requirement among the disks based on the hardware parameters, and then determine the target disk as the system disk and the remaining disks as data disks when the storage capacity of the target disk is not greater than the preset data capacity; when the storage capacity of the target disk is greater than the preset data capacity, the portion of the preset data capacity is divided from the target disk as the system disk, and the remaining portion of the target disk and the remaining disks are determined as data disks. In this way, when the storage resources of the target disk are relatively abundant, a portion can be divided as a data disk to avoid wasting storage resources.
[0134] As an implementation of an embodiment of the present invention, after the step of obtaining the hardware parameters of each disk of the target cloud server, the method may further include:
[0135] Based on the hardware parameters, determine the model package corresponding to the target cloud server.
[0136] To facilitate the management of disk templates, you can classify various disk templates according to the type, storage capacity, and quantity of system disks and data disks included in the disk templates to obtain different model packages. For example, some disk templates include disks that are mainly data disks and are suitable for use as storage servers, so they can be classified into standard storage model packages.
[0137] The specific types and quantities of the model packages can be determined according to the actual management needs of the cloud server, and are not specifically limited here. For example, they may include standard storage model packages, standard computer model packages, high-performance computer model packages, storage optimization model packages, etc.
[0138] Accordingly, the step of determining the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk may include:
[0139] According to the hardware parameters of the system disk and the data disk, the system disk and the data disk are divided into disk groups respectively, and the types that the disk groups can support are determined.
[0140] To facilitate the subsequent generation of disk templates, the management server can divide the system disk and data disk into disk groups according to the hardware parameters of the system disk and data disk of the target server. In one implementation, the system disk can be divided into a group, recorded as disk1, and if the data disks are all disks of the same type, they can be divided into a group, recorded as disk2. If the data disks are not of the same type, they can be divided into multiple groups according to type, recorded as disk2, disk3, disk4, etc.
[0141] After determining each disk group, the management server can determine the type that each disk group can support based on the hardware parameters of each disk group.
[0142] The step of generating a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk may include:
[0143] In the case where the model package includes a server with one hardware parameter, a disk template corresponding to the target cloud server is generated based on the types supported by the system disk and the data disk through a Cartesian product pairing method; in the case where the model package includes servers with multiple hardware parameters, the intersection of the types supported by the disk group corresponding to the target cloud server and the types supported by the disk group corresponding to the existing servers are respectively determined, wherein the existing servers are other servers included in the model package and whose hardware parameters are different from those of the target cloud server; based on the intersection, a disk template corresponding to the target cloud server is generated through a Cartesian product pairing method.
[0144] Since the features of each model package are different, some are storage-type and some are computing-type, the hardware parameters of the servers included are also different. Some model packages may only include servers with one hardware parameter, while some model packages may include servers with multiple hardware parameters. For example, model package W may include a server with a 600G system disk, and may also include a server with two 300G system disks.
[0145] In the case where the model package corresponding to the above-mentioned target server only includes servers with one type of hardware parameters, the management server can generate a disk template corresponding to the target cloud server based on the types that the disk group of the determined target server can support through Cartesian product pairing.
[0146] As an implementation method, the management server can perform Cartesian product pairing of the types supported by the disk group corresponding to the system disk and the types supported by the disk group corresponding to the data disk, thereby obtaining all types supported by the target cloud server and generating the corresponding disk template.
[0147] For example, the target server's system disk corresponds to disk groups disk1 and disk2, and the supported types are RAID0 and RAID1. The target server's data disk corresponds to disk groups disk1, disk2, and disk3, and the supported types are RAID1, RAID5, and RAID50. Then the management server can use the Cartesian product pairing method to determine that all the types supported by the target cloud server are: the first type: system disk is RAID0, and data disk is RAID1; the second type: system disk is RAID0, and data disk is RAID5; the third type: system disk is RAID0, and data disk is RAID50; the fourth type: system disk is RAID1, and data disk is RAID1; the fifth type: system disk is RAID1, and data disk is RAID5; the sixth type: system disk is RAID1, and data disk is RAID50. In this way, 6 disk templates can be obtained.
[0148] In the case where the model package corresponding to the above-mentioned target server includes servers with multiple hardware parameters, the management server can respectively determine the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing servers, where the existing servers are other servers included in the model package and whose hardware parameters are different from those of the target cloud server.
[0149] In other words, the management server can first determine the intersection of the types supported by the target server's disk group and the existing server's disk group, so as to ensure that the disk template finally determined is definitely supported by the target server and to ensure that the user is provided with services that meet the requirements.
[0150] For example, the target server's system disk corresponds to disk group 1, which supports RAID0 and RAID5. The target server's data disk corresponds to disk groups 1 and 2, which support RAID1, RAID5, and RAID0. The existing server's system disk corresponds to disk group 1, which supports RAID1 and RAID5. The existing server's data disk corresponds to disk groups 1 and 2, which support RAID1, RAID50, and RAID0. The management server can then determine that the intersection of the types supported by the target server and the existing server's system disks corresponding to disk groups is RAID5, and the intersection of the types supported by the target server and the existing server's data disks corresponding to disk groups is RAID1 and RAID0.
[0151] Then, the management server can generate a disk template corresponding to the target cloud server based on the above intersection by Cartesian product pairing. In one embodiment, the management server can perform Cartesian product pairing on the intersection of the types that can be supported by the system disk and the intersection of the types that can be supported by the data disk, thereby obtaining all the types that can be supported by the target cloud server, and thus generating the corresponding disk template.
[0152] For example, the intersection of the types supported by the target server and the existing server's system disks corresponding to the disk group is RAID5, and the intersection of the types supported by the target server and the existing server's data disks corresponding to the disk group is RAID1 and RAID0. Then the management server can use the Cartesian product pairing method to determine that all the types supported by the target cloud server are: the first type: system disk is RAID5, data disk is RAID1; the second type: system disk is RAID5, data disk is RAID0, so that two disk templates can be obtained.
[0153] It can be seen that in this embodiment, after obtaining the hardware parameters of each disk of the target cloud server, the management server can determine the model package corresponding to the target cloud server based on the hardware parameters, and then accurately determine the type of disk template that the target server can support for different situations where the model package includes one or more hardware parameters of the server.
[0154] As an implementation manner of an embodiment of the present invention, after the above step of generating a disk template corresponding to the target cloud server, the method further includes:
[0155] The disk template and the model package are recorded correspondingly.
[0156] In this way, after generating the disk template corresponding to the target cloud server, the management server can record the disk template and the model package accordingly, and thus obtain the corresponding relationship between each disk template and the model package to which it belongs.
[0157] In one implementation, the correspondence between each disk template and the corresponding machine model package can be recorded in a table, for example, as shown in the following table:
[0158]
[0159] In this way, when the tenant enters the demand information, he can first select the required model package, and then select the disk template corresponding to the cloud server he needs from the disk templates included in the model package. For example, after the tenant selects model package B, disk template b1, disk template b2 and disk template b3 can be displayed for the tenant to choose.
[0160] It can be seen that in this embodiment, after generating the disk template corresponding to the target cloud server, the disk template and the model package can be recorded accordingly. In this way, it is convenient to manage the cloud server, and it is also convenient for users to input the demand information of the cloud server, and determine the configuration method of the cloud server required by the tenant more quickly and conveniently.
[0161] As an implementation method of the embodiment of the present invention, in the case that there is no disk template that meets the requirement information in the currently established disk templates, such as Figure 4 As shown, the above method may also include:
[0162] S401, generating a new disk template based on the demand information;
[0163] If the currently established disk templates do not contain a disk template that meets the above requirement information, it means that the cloud server configuration method required by the tenant is not available before. In order to meet the tenant's needs, the management server can generate a new disk template based on the requirement information entered by the tenant.
[0164] In one implementation, the tenant terminal may display various existing disk templates for the tenant to choose from. If none of the existing disk templates meet the cloud server configuration required by the tenant, the tenant may select a disk template that meets the requirements of the cloud server configuration required by the tenant. Figure 5 In the interface shown, select the configuration method of the cloud server you need, which may include the type, size, and number of system disks and the type, size, and number of data disks.
[0165] Furthermore, the management server can also obtain the required information such as the type, size, and quantity of the system disk and the type, size, and quantity of the data disk selected by the tenant, and then generate a new disk template according to the required information.
[0166] S402, configuring the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template;
[0167] S403: Allocate the configured cloud server to the tenant.
[0168] Next, the management server can determine a cloud server that can support the configuration method indicated by the new disk template, and configure the cloud server according to the configuration method indicated by the new disk template. After the configuration is completed, the configured cloud server can be allocated to the tenant, so that the required cloud server can be provided to the tenant.
[0169] It can be seen that in this embodiment, when there is no disk template that meets the requirement information among the currently established disk templates, the management server can generate a new disk template based on the requirement information, configure the cloud server corresponding to the new disk template according to the configuration method indicated by the new disk template, and then allocate the configured cloud server to the tenant. Even if there is no disk template that meets the requirement information among the currently established disk templates, a cloud server that meets the requirement can be provided to the tenant to ensure the quality of service.
[0170] As an implementation of an embodiment of the present invention, after the step of generating a new disk template based on the demand information, the method may further include:
[0171] The new disk template is added to the preset database.
[0172] After generating the above-mentioned new disk template, in order for the management server to quickly determine the disk template that meets the demand information when subsequent tenants submit the same configuration requirement information as that corresponding to the new disk template, the management server can add the new disk template to the preset database, where the preset database is used to store the established disk templates.
[0173] In this way, the next time a tenant logs into the service platform and wants to rent a cloud server, he or she can select a disk template corresponding to the cloud server he or she needs from the established disk templates including the new disk template.
[0174] In one case, since the configuration indicated by the tenant's demand information may not match the hardware configuration of the existing cloud server, it is impossible to provide a cloud server according to the tenant's demand. Figure 6 As shown, in the case that there is no disk template that meets the requirement information in the currently established disk templates, the above method may include:
[0175] S601, the tenant terminal sends RAID requirement information to the product personnel;
[0176] In one implementation, if the configuration mode of the cloud server required by the tenant is one of the currently available modes, the tenant can select one from the existing disk templates as the requirement information, that is, at this time, there is a disk template that meets the requirement information among the currently established disk templates. Then, there is no need to send the requirement information to the product personnel.
[0177] If the tenant enters the type, size, and quantity of the system disk and the type, size, and quantity of the data disk in the interface displayed by the tenant terminal, it means that there is no disk template that meets the requirement information in the currently established disk templates, and the tenant terminal can send the requirement information to the product personnel. For the sake of clarity, this requirement information is called RAID requirement information.
[0178] S602, product personnel evaluate RAID requirement information;
[0179] S603, product personnel generate a new disk template according to RAID requirement information;
[0180] Product personnel can evaluate the RAID requirement information. If the cloud server can be configured according to the configuration method indicated by the RAID requirement information, they can manually generate a new disk template in the management server interface. For example, the management server displays the interface for manually generating a disk template as shown below: Figure 7 As shown, it can include the template name, whether it is visible to all users, disk division method, number of disks, storage capacity, etc.
[0181] If the cloud server cannot be configured according to the configuration method identified by the RAID requirement information, a prompt message can be sent to the tenant terminal to prompt the tenant that the configuration method cannot be met.
[0182] S604, the management server adds the new disk template to the preset database, and controls the tenant terminal to display the new disk template;
[0183] S605, the tenant selects the new disk template through the tenant terminal;
[0184] S606: The management server configures the cloud server according to the new disk template and allocates it to the tenant for use.
[0185] It can be seen that in this embodiment, the management server can add the new disk template to the preset database so that the tenant terminal can display the new disk template for the tenant to choose, which can meet the needs of the tenant and provide better services for the tenant.
[0186] As an implementation method of an embodiment of the present invention, there may be a large number of disk templates. In order to further facilitate tenants to select disk templates, the above-mentioned established disk templates include disk templates corresponding to the main configuration method and disk templates corresponding to the sub-configuration method. Among them, the disk template corresponding to the main configuration method can be a disk template that most tenants will choose, and it is used as the default disk template corresponding to the main configuration method to facilitate tenants to choose.
[0187] For example, Figure 8As shown, after the tenant logs in to the service platform, a selection box 810 can be displayed, in which the disk template corresponding to the main configuration method is displayed by default. The tenant clicks the drop-down button 820 to display the disk template corresponding to the sub-configuration method for the tenant to select. The disk template corresponding to the sub-configuration method can include disk template 1 corresponding to the sub-configuration method - disk template 4 corresponding to the sub-configuration method.
[0188] Accordingly, the above step of obtaining the demand information input by the tenant may include:
[0189] Obtain selection information of the tenant based on input of the tenant terminal; when the selection information indicates the selection of the main configuration method or the sub-configuration method, determine that there is a disk template that meets the requirement information in the currently established disk templates; when the selection information is custom configuration information, determine that there is no disk template that meets the requirement information in the currently established disk templates.
[0190] The management server can obtain the selection information of the tenant based on the input of the tenant terminal. If the selection information is generated by the tenant selecting the disk template corresponding to the main configuration method or the sub-configuration method, then it indicates that the configuration method of the cloud server required by the tenant is the configuration method corresponding to the existing disk template. In other words, when the selection information indicates that the tenant has selected the main configuration method or the sub-configuration method, the management server can determine that the currently established disk template contains a disk template that meets the required information.
[0191] If the selection information is custom configuration information entered by the tenant, that is, the tenant did not select from the disk template corresponding to the above-mentioned main configuration method and the disk template corresponding to the sub-configuration method, but defined a new configuration method by himself, then this indicates that the existing cloud server configuration methods cannot meet the tenant's needs, so the management server can determine that the currently established disk templates do not contain a disk template that meets the requirement information.
[0192] It can be seen that in this embodiment, the established disk templates can include disk templates corresponding to the main configuration method and disk templates corresponding to the sub-configuration method. This can facilitate tenants to select and input demand information on the one hand, and on the other hand, it can facilitate determining whether the currently established disk templates contain disk templates that meet the demand information input by the tenant.
[0193] As an implementation method of an embodiment of the present invention, in order to facilitate the management of disk templates, a template whitelist management function can be set, that is, different disk templates can be opened for different tenants.
[0194] For example, Fig. 9The template whitelist management interface shown may include a template name 910 and whitelist user information 920, which may specifically include user ID, authentication type, identity type, user name, company name, etc. Whitelist users may be added and deleted by clicking the add and delete buttons in the lower right corner.
[0195] As an implementation method of an embodiment of the present invention, the management server can also record disk template logs. When performing operations such as disk template generation, modification, and deletion, corresponding log records can be recorded to facilitate subsequent recovery of the disk template, or analysis based on log records when abnormal situations occur.
[0196] Corresponding to the above-mentioned cloud server configuration method, an embodiment of the present invention further provides a cloud server configuration device. The following is an introduction to a cloud server configuration device provided by an embodiment of the present invention.
[0197] like Fig.10 As shown, a configuration device of a cloud server is applied to a management server, and the device includes:
[0198] The demand information acquisition module 1010 is used to acquire the demand information input by the tenant;
[0199] The demand information includes the type of system disk and data disk of the required cloud server.
[0200] The first server configuration module 1020 is used to configure the cloud server corresponding to the disk template that meets the requirement information according to the configuration mode indicated by the disk template that meets the requirement information when there is a disk template that meets the requirement information in the currently established disk templates;
[0201] The established disk template is established in advance by the first template generation module based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of the system disk and the type of the data disk.
[0202] The first server allocation module 1030 is used to allocate the configured cloud server to the tenant.
[0203] It can be seen that in the solution provided by the embodiment of the present invention, the management server can obtain the demand information input by the tenant, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server, and in the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured in accordance with the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality.
[0204] As an implementation of an embodiment of the present invention, the first template generation module may include:
[0205] A hardware parameter acquisition unit, used to acquire hardware parameters of each disk of the target cloud server;
[0206] A disk determination unit, configured to determine a system disk and a data disk based on the hardware parameters and a preset disk partitioning rule;
[0207] A type determination unit, configured to determine the types that the system disk and the data disk can support according to the hardware parameters of the system disk and the data disk;
[0208] The template generation unit is used to generate a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk.
[0209] As an implementation manner of the embodiment of the present invention, the disk determination unit may include:
[0210] A target disk determination subunit, configured to determine a target disk among the disks that meets the system disk requirement based on the hardware parameters;
[0211] A first disk determination subunit is used to determine the target disk as a system disk and determine the remaining disks as data disks when the storage capacity of the target disk is not greater than a preset data capacity;
[0212] The second disk determination subunit is used to divide the part of the preset data amount from the target disk as the system disk when the storage capacity of the target disk is greater than the preset data amount, and determine the remaining part of the target disk and the remaining disks as data disks.
[0213] As an implementation of the embodiment of the present invention, the above-mentioned device may also include:
[0214] A model package determination module, configured to determine the model package corresponding to the target cloud server based on the hardware parameters after obtaining the hardware parameters of each disk of the target cloud server;
[0215] The type determination unit may include:
[0216] a type determination subunit, configured to divide the system disk and the data disk into disk groups according to the hardware parameters of the system disk and the data disk, and determine the types that the disk groups can support;
[0217] The template generation unit may include:
[0218] A first generating subunit is used for generating a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk by using a Cartesian product pairing method when the model package includes a server with a hardware parameter;
[0219] The second generating sub-unit is used to determine the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing server when the model package includes servers with multiple hardware parameters; and generate a disk template corresponding to the target cloud server based on the intersection through a Cartesian product pairing method.
[0220] Among them, the existing server is another server whose hardware parameters included in the model package are different from those of the target cloud server.
[0221] As an implementation of the embodiment of the present invention, the above device may further include:
[0222] The model package recording module is used to record the disk template and the model package accordingly after generating the disk template corresponding to the target cloud server.
[0223] As an implementation of the embodiment of the present invention, the above device may further include:
[0224] A second template generating module, configured to generate a new disk template based on the requirement information when there is no disk template meeting the requirement information among the currently established disk templates;
[0225] A second server configuration module, configured to configure the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template;
[0226] The second server allocation module is used to allocate the configured cloud server to the tenant.
[0227] As an implementation of the embodiment of the present invention, the above device may further include:
[0228] The template storage module is used to add the new disk template to a preset database after the new disk template is generated based on the demand information.
[0229] The preset database is used to store the established disk template.
[0230] As an implementation method of the embodiment of the present invention, the above-mentioned established disk template may include a disk template corresponding to the main configuration mode and a disk template corresponding to the sub-configuration mode;
[0231] The demand information acquisition module 1010 may include:
[0232] A selection information acquisition unit, used to acquire selection information of the tenant based on the tenant terminal input;
[0233] A first determining unit is used to determine whether there is a disk template that meets the requirement information among the currently established disk templates when the selection information indicates that the main configuration mode or the sub-configuration mode is selected;
[0234] The second determining unit is used to determine, when the selection information is custom configuration information, that there is no disk template that meets the requirement information among the currently established disk templates.
[0235] The embodiment of the present invention also provides a management server, such as Fig.11 As shown, it includes a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104.
[0236] Memory 1103, used for storing computer programs;
[0237] The processor 1101 is used to implement the steps of the cloud server configuration method described in any of the above embodiments when executing the program stored in the memory 1103.
[0238] It can be seen that in the solution provided by the embodiment of the present invention, the management server can obtain the demand information input by the tenant, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server, and in the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured in accordance with the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality.
[0239] The communication bus mentioned in the above management server can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0240] The communication interface is used for communication between the above management server and other devices.
[0241] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0242] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0243] In another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the cloud server configuration method described in any of the above embodiments are implemented.
[0244] It can be seen that in the solution provided by the embodiment of the present invention, when the computer program is executed by the processor, the demand information input by the tenant can be obtained, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server. In the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured according to the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality.
[0245] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of the cloud server configuration method described in any of the above embodiments.
[0246] It can be seen that in the solution provided by the embodiment of the present invention, the computer program product can obtain the demand information input by the tenant when it is running on the computer, wherein the demand information includes the type of system disk and the type of data disk of the required cloud server, and in the case that there is a disk template that meets the demand information in the currently established disk template, the cloud server corresponding to the disk template of the demand information is configured according to the configuration method indicated by the disk template that meets the demand information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type and storage capacity of the data disk, and then the configured cloud server is allocated to the tenant. Since the disk template is pre-established, the management server can select a disk template that meets the tenant's needs from the disk template, and then configure and allocate a cloud server that meets its needs for the tenant, which can meet the different needs of different tenants for the system disk and data disk of the cloud server and improve the service quality.
[0247] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0248] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0249] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, management server, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0250] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for configuring a cloud server, characterized in that: Applied to a management server, the method comprises: Obtaining demand information input by the tenant, wherein the demand information includes the type of system disk and data disk of the required cloud server; In the case that there is a disk template that meets the requirement information among the currently established disk templates, the cloud server corresponding to the disk template that meets the requirement information is configured in accordance with the configuration method indicated by the disk template that meets the requirement information, wherein the established disk template is pre-established based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk; Allocate the configured cloud server to the tenant; The step of obtaining the demand information input by the tenant includes: Receive the required model package selected by the tenant, and receive the disk template corresponding to the required cloud server selected by the tenant from the disk templates included in the model package; wherein the types of model packages include: standard storage model package, standard computer model package, high-performance computer model package and storage optimization model package; The method for establishing the disk template includes: Based on the hardware parameters, determine the model package corresponding to the target cloud server; According to the hardware parameters of the system disk and the data disk, the system disk and the data disk are divided into disk groups respectively, and the types that the disk groups can support are determined; In the case where the model package includes servers with multiple hardware parameters, determining the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing servers, respectively, wherein the existing servers are other servers included in the model package and whose hardware parameters are different from those of the target cloud server; A disk template corresponding to the target cloud server is generated based on the intersection by a Cartesian product pairing method.
2. The method according to claim 1, characterized in that Before the step of dividing the system disk and the data disk into disk groups according to the hardware parameters of the system disk and the data disk, and determining the types that the disk groups can support, the method further includes: Get the hardware parameters of each disk of the target cloud server; Based on the hardware parameters and the preset disk partitioning rule, a system disk and a data disk are determined.
3. The method according to claim 2, characterized in that The step of determining the system disk and the data disk based on the hardware parameters and the preset disk partitioning rule includes: Based on the hardware parameters, determining a target disk among the disks that meets the system disk requirement; In the case that the storage capacity of the target disk is not greater than the preset data capacity, determining the target disk as a system disk, and determining the remaining disks as data disks; When the storage capacity of the target disk is greater than the preset data capacity, a portion of the preset data capacity is divided from the target disk as a system disk, and the remaining portion of the target disk and other disks are determined as data disks.
4. The method according to claim 2, characterized in that: The method further comprises: In the case where the model package includes a server with hardware parameters, a disk template corresponding to the target cloud server is generated based on the types supported by the system disk and the data disk through Cartesian product pairing.
5. The method according to claim 4, characterized in that After the step of generating a disk template corresponding to the target cloud server, the method further includes: The disk template and the model package are recorded correspondingly.
6. The method according to any one of claims 1 to 5, characterized in that In the case that there is no disk template that meets the requirement information in the currently established disk templates, the method further includes: Based on the requirement information, generate a new disk template; Configure the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template; Allocate the configured cloud server to the tenant.
7. The method according to claim 6, characterized in that After the step of generating a new disk template based on the demand information, the method further includes: The new disk template is added to a preset database, wherein the preset database is used to store the established disk templates.
8. The method according to any one of claims 1 to 5, characterized in that The established disk templates include a disk template corresponding to the main configuration mode and a disk template corresponding to the sub-configuration mode; The step of obtaining the demand information input by the tenant includes: Obtaining selection information of the tenant based on the tenant terminal input; In a case where the selection information indicates that the main configuration mode or the sub-configuration mode is selected, determining a disk template that meets the requirement information among currently established disk templates; In the case that the selection information is custom configuration information, it is determined that there is no disk template that meets the requirement information among the currently established disk templates.
9. A cloud server configuration device, characterized in that: Applied to a management server, the device comprises: A demand information acquisition module, used to acquire demand information input by a tenant, wherein the demand information includes the type of system disk and data disk of the required cloud server; A first server configuration module is used to configure a cloud server corresponding to the disk template that meets the requirement information in accordance with the configuration method indicated by the disk template that meets the requirement information when there is a disk template that meets the requirement information in the currently established disk template, wherein the established disk template is established in advance by the first template generation module based on the hardware parameters of the corresponding cloud server, and the established disk template includes the type of system disk and the type of data disk; A first server allocation module, used to allocate the configured cloud server to the tenant; The demand information acquisition module includes: A receiving unit is used to receive a required machine package selected by a tenant, and receive a disk template corresponding to a required cloud server selected by the tenant from disk templates included in the machine package; wherein the types of machine packages include: a standard storage machine package, a standard computer package, a high-performance computer package, and a storage optimization machine package; The first template generation module includes: A model package determination module, used to determine the model package corresponding to the target cloud server based on the hardware parameters; a type determination unit, configured to divide the system disk and the data disk into disk groups according to hardware parameters of the system disk and the data disk, and determine the types that the disk groups can support; The template generation unit includes: The second generating sub-unit is used to determine the intersection of the types that can be supported by the disk group corresponding to the target cloud server and the types that can be supported by the disk group corresponding to the existing servers, respectively, when the model package includes servers with multiple hardware parameters; and generate a disk template corresponding to the target cloud server based on the intersection by a Cartesian product pairing method, wherein the existing server is other server included in the model package and having hardware parameters different from those of the target cloud server.
10. The device according to claim 9, characterized in that The first template generation module also includes: A hardware parameter acquisition unit, used to acquire hardware parameters of each disk of the target cloud server; The disk determination unit is used to determine the system disk and the data disk based on the hardware parameters and the preset disk partitioning rules.
11. The device according to claim 10, characterized in that The disk determination unit comprises: A target disk determination subunit, configured to determine a target disk among the disks that meets the system disk requirement based on the hardware parameters; A first disk determination subunit is used to determine the target disk as a system disk and determine the remaining disks as data disks when the storage capacity of the target disk is not greater than a preset data capacity; The second disk determination subunit is used to divide the part of the preset data amount from the target disk as the system disk when the storage capacity of the target disk is greater than the preset data amount, and determine the remaining part of the target disk and the remaining disks as data disks.
12. The device according to claim 10, characterized in that The template generation unit also includes: The first generating sub-unit is used to generate a disk template corresponding to the target cloud server based on the types supported by the system disk and the data disk through a Cartesian product pairing method when the model package includes a server with hardware parameters.
13. The device according to claim 12, characterized in that The device also includes: The model package recording module is used to record the disk template and the model package accordingly after generating the disk template corresponding to the target cloud server.
14. The device according to any one of claims 9 to 13, characterized in that The device also includes: A template generation module, used for generating a new disk template based on the requirement information when there is no disk template meeting the requirement information in the currently established disk templates; A second server configuration module, configured to configure the cloud server corresponding to the new disk template according to the configuration mode indicated by the new disk template; The second server allocation module is used to allocate the configured cloud server to the tenant.
15. The device according to claim 14, characterized in that The device also includes: The template storage module is used to add the new disk template into a preset database after the new disk template is generated based on the demand information, wherein the preset database is used to store the established disk template.
16. The device according to any one of claims 9 to 13, characterized in that The established disk templates include a disk template corresponding to the main configuration mode and a disk template corresponding to the sub-configuration mode; The demand information acquisition module includes: A selection information acquisition unit, used to acquire selection information of the tenant based on the tenant terminal input; A first determining unit is used to determine whether there is a disk template that meets the requirement information among the currently established disk templates when the selection information indicates that the main configuration mode or the sub-configuration mode is selected; The second determining unit is used to determine, when the selection information is custom configuration information, that there is no disk template that meets the requirement information among the currently established disk templates.
17. A management server, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 8 when executing a program stored in a memory.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Cloud computing resource quota management method and system
CN111897627A
