Cloud Resource Allocation Method and Device

By obtaining the historical cloud resource usage information and resource requirements on the user side, and automatically determining the resource allocation amount, the problem of low cloud resource allocation efficiency is solved, and efficient cloud resource allocation and reduced labor costs are achieved.

CN115080220BActive Publication Date: 2025-08-01CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110275946.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-15
Publication Date
2025-08-01
Estimated Expiration
2041-03-15

AI Technical Summary

Technical Problem

In the prior art, cloud resource allocation efficiency is low, and manual allocation is required, resulting in a long time.

Method used

By obtaining the historical cloud resource usage information and resource requirements of the user side, the resource allocation amount is automatically determined to realize the automatic allocation of cloud resources.

Benefits of technology

Improve the efficiency of cloud resource allocation and reduce labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080220B_ABST
    Figure CN115080220B_ABST
Patent Text Reader

Abstract

The present invention provides a cloud resource allocation method and device. The method includes: obtaining cloud resource requirement information sent by a user terminal; wherein, the cloud resource requirement information includes a resource type and its corresponding resource requirement quantity; obtaining historical cloud resource usage information corresponding to the user terminal; determining the resource allocation quantity corresponding to each resource type according to the historical cloud resource usage information and the resource requirement quantity corresponding to each resource type; and allocating cloud resources to the user terminal according to the resource allocation quantity corresponding to each resource type, so as to realize automatic allocation of cloud resources, without manual allocation, improve the allocation efficiency of cloud resources, and reduce labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a cloud resource allocation method and device. Background Art

[0002] Cloud computing is an increasing, using, and interacting mode of Internet-based services, which usually involves providing dynamically scalable and often virtualized resources through the Internet and is an important symbol of the new generation of information technology.

[0003] Currently, in order for a client to utilize relevant cloud resources, it is necessary to pre-allocate corresponding cloud resources to the client. When allocating cloud resources to the client, it is generally manually allocated by relevant personnel, that is, the relevant personnel first determine the type of cloud resources required by the client and its corresponding usage amount, and then allocate the corresponding cloud resources to the client according to the usage amount corresponding to the type of cloud resources.

[0004] However, since the cloud resources are manually allocated, the time required for cloud resource allocation is long and the cloud resource allocation efficiency is low. Summary of the Invention

[0005] Embodiments of the present invention provide a cloud resource allocation method and device to solve the technical problem of low cloud resource allocation efficiency in the prior art.

[0006] In a first aspect, embodiments of the present invention provide a cloud resource allocation method, including:

[0007] Obtaining cloud resource requirement information sent by a client; wherein, the cloud resource requirement information includes a resource type and its corresponding resource requirement amount;

[0008] Obtaining historical cloud resource usage information corresponding to the client;

[0009] Determining the resource allocation amount corresponding to each resource type according to the historical cloud resource usage information and the resource requirement amount corresponding to each resource type;

[0010] Allocating cloud resources to the client according to the resource allocation amount corresponding to each resource type.

[0011] In a possible design, the historical cloud resource usage information includes the historical resource usage type corresponding to the client and the historical usage amount corresponding to each historical resource usage type. Then, the determining the resource allocation amount corresponding to each resource type according to the historical cloud resource usage information and the resource requirement amount corresponding to each resource type includes:

[0012] For each resource type, obtaining the historical resource usage type that is the same as the resource type from the historical cloud resource usage information and determining it as the target historical type;

[0013] Obtain the difference between the resource demand corresponding to the resource type and the historical usage corresponding to the target historical type;

[0014] Determine the resource allocation amount corresponding to the resource type according to the difference.

[0015] In a possible design, the determining the resource allocation amount corresponding to the resource type according to the difference includes:

[0016] Determine whether the difference is within a preset resource difference range;

[0017] If the difference is within the preset resource difference range, determine the resource demand corresponding to the resource type as the resource allocation amount corresponding to the resource type;

[0018] If the difference is not within the preset resource difference range, determine the historical usage corresponding to the target historical type as the resource allocation amount corresponding to the resource type.

[0019] In a possible design, the obtaining the historical resource usage type same as the resource type from the historical cloud resource usage information includes:

[0020] Determine whether there is a historical resource usage type same as the resource type in the historical cloud resource usage information;

[0021] If there is a historical resource usage type same as the resource type, obtain the historical resource usage type same as the resource type from the historical cloud resource usage information.

[0022] In a possible design, the method further includes:

[0023] If there is no historical resource usage type same as the resource type, obtain the cloud resource planning table, and determine the resource allocation amount corresponding to the user side and the resource type according to the cloud resource planning table.

[0024] In a possible design, the method further includes:

[0025] Obtain the cloud resource utilization rate corresponding to each user side;

[0026] Perform recycling processing and / or expansion processing on the cloud resources corresponding to each user side according to the cloud resource utilization rate corresponding to each user side.

[0027] In a second aspect, an embodiment of the present invention provides a cloud resource allocation device, including:

[0028] A transceiver module, configured to obtain cloud resource demand information sent by a user side; wherein, the cloud resource demand information includes a resource type and its corresponding resource demand;

[0029] A processing module, configured to obtain historical cloud resource usage information corresponding to the client;

[0030] The processing module is further configured to determine the resource allocation amount corresponding to each resource type according to the historical cloud resource usage information and the resource demand amount corresponding to each resource type;

[0031] The processing module is further configured to allocate cloud resources to the client according to the resource allocation amount corresponding to each resource type.

[0032] In a possible design, the historical cloud resource usage information includes the historical resource usage types corresponding to the client and the historical usage amounts corresponding to each historical resource usage type, and the processing module is further configured to:

[0033] For each resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information, and determine it as the target historical type;

[0034] Obtain the difference between the resource demand amount corresponding to the resource type and the historical usage amount corresponding to the target historical type;

[0035] Determine the resource allocation amount corresponding to the resource type according to the difference.

[0036] In a possible design, the processing module is further configured to:

[0037] Determine whether the difference is within a preset resource difference range;

[0038] If the difference is within the preset resource difference range, determine the resource demand amount corresponding to the resource type as the resource allocation amount corresponding to the resource type;

[0039] If the difference is not within the preset resource difference range, determine the historical usage amount corresponding to the target historical type as the resource allocation amount corresponding to the resource type.

[0040] In a possible design, the processing module is further configured to:

[0041] Determine whether there is a historical resource usage type in the historical cloud resource usage information that is the same as the resource type;

[0042] If there is a historical resource usage type that is the same as the resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information.

[0043] In a possible design, the processing module is further configured to:

[0044] If there is no historical resource usage type that is the same as the resource type, obtain a cloud resource planning table, and determine the resource allocation amount corresponding to the client and the resource type according to the cloud resource planning table.

[0045] In a possible design, the processing module is further configured to: obtain the cloud resource usage rate corresponding to each client;

[0046] Recycle and / or expand the cloud resources corresponding to each client according to the cloud resource usage rate corresponding to each client.

[0047] In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor and a memory;

[0048] The memory stores computer-executable instructions;

[0049] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud resource allocation method as described in the first aspect and various possible designs of the first aspect above.

[0050] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the cloud resource allocation method as described in the first aspect and various possible designs of the first aspect above is implemented.

[0051] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the cloud resource allocation method as described in the first aspect and various possible designs of the first aspect above is implemented.

[0052] The present invention provides a cloud resource allocation method and device. When resource requirement information sent by a user terminal is obtained, it is indicated that the historical resource usage of the user terminal needs to be used to allocate cloud resources for the user terminal. Then, the resource allocation amount corresponding to each resource type is determined according to the historical resource usage information corresponding to the user terminal and the resource demand amount corresponding to each resource type in the resource requirement information, that is, the cloud resource allocation situation corresponding to the user terminal is determined, and corresponding cloud resources are allocated for the user terminal according to the cloud resource allocation situation corresponding to the user terminal, realizing the automatic allocation of cloud resources, eliminating the need for manual allocation, improving the allocation efficiency of cloud resources, and reducing labor costs. Description of the Drawings

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0054] Figure 1 Schematic diagram of the scenario of the cloud resource allocation method provided by the embodiment of the present invention;

[0055] Figure 2 Flow chart of the cloud resource allocation method provided by the embodiment of the present invention Figure 1 ;

[0056] Figure 3 Flow chart of the cloud resource allocation method provided by the embodiment of the present invention Figure 2 ;

[0057] Figure 4 Schematic diagram of the structure of the cloud resource allocation device provided by the embodiment of the present invention;

[0058] Figure 5 Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Detailed implementation manners

[0059] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0060] There are three common deployment methods for cloud computing infrastructure: public cloud, private cloud, and hybrid cloud. Enterprise internal cloud platforms usually use the private cloud method. The private cloud is an extension and optimization of the enterprise's traditional data center, mainly used to serve internal departments of the enterprise, and is often provided to internal departments for free use.

[0061] In the prior art, in order for the client to utilize relevant cloud resources, that is, private cloud resources, for cloud computing, it is necessary to pre-allocate corresponding cloud resources to the client. When allocating cloud resources to the client, generally, relevant personnel perform manual allocation. That is, the relevant personnel first determine the type of cloud resources required by the client and its corresponding usage amount, and then allocate the corresponding cloud resources to the client according to the usage amount corresponding to the type of cloud resources. However, due to the manual allocation of cloud resources, the time required for cloud resource allocation is relatively long, and the cloud resource allocation efficiency is low.

[0062] Therefore, in view of the above problems, the technical concept of the present invention is to provide a closed-loop control method for the effective use of private cloud resources, that is, when allocating cloud resources to the user side, the resource allocation amount corresponding to the user side is determined according to the resource demand situation and historical resource usage situation of the user side, and cloud resources are allocated to the user side based on this resource allocation amount to achieve automatic allocation of cloud resources and improve the allocation efficiency of cloud resources. At the same time, monitor the usage of cloud resources by the user side and recycle the idle cloud resources to achieve the full life cycle management of private cloud resources.

[0063] The following uses specific examples to elaborate in detail on the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems. These several specific examples below can be combined with each other, and the same or similar concepts or processes may not be repeated in some examples. The following will describe the examples of the present disclosure in conjunction with the accompanying drawings.

[0064] Figure 1 The scenario diagram of the cloud resource allocation method provided by the embodiment of the present invention is as Figure 1 shown. The electronic device 101 displays all cloud resource products, that is, all cloud resource types. The user selects the required cloud resource type from the cloud resource products displayed by the electronic device 101 through the user side 102 and generates corresponding cloud resource demand information and sends it to the electronic device 101, so that the electronic device 101 allocates cloud resources to the user side 102 according to this cloud resource demand information.

[0065] Optionally, the electronic device 101 can be a device with data processing capabilities such as a computer or a server. Specifically, the electronic device is a cloud platform, that is, a private cloud platform.

[0066] Optionally, the user side 102 can be a terminal device such as a computer or a server. Specifically, the user side 102 can be the terminal device corresponding to an enterprise department.

[0067] Optionally, the cloud resource products include cloud resources of types such as online cloud hosts, containers, bare metals, cloud storage, object storage, distributed caches, and distributed file systems.

[0068] Figure 2 The flowchart of the cloud resource allocation method provided by the embodiment of the present invention Figure 1 The execution subject of this embodiment can be Figure 1 the electronic device shown. As Figure 2 shown, this method includes:

[0069] S201. Obtain the cloud resource demand information sent by the user side, where the cloud resource demand information includes the resource type and its corresponding resource demand quantity.

[0070] In this embodiment, when the user needs to utilize cloud resources, i.e., private cloud resources, the user selects the required resource types and the corresponding resource demand quantities for each resource type through the user terminal. The user terminal generates corresponding cloud resource demand information based on the resource situation selected by the user. The cloud resource demand information includes the resource types selected by the user and the corresponding resource demand quantities for each resource type.

[0071] Furthermore, optionally, the cloud resource demand information further includes a user terminal identifier, which can be the identifier of the user terminal itself or the account information of the user using the user terminal. For example, the OA (Office Automation) account of the user.

[0072] In this embodiment, the user terminal provides multiple cloud resource products, i.e., multiple resource types and the corresponding resource quantity options for different resource types. The user can select the required resource types and resource quantity options. Of course, after selecting the resource type, the user can also fill in the required resource quantity, i.e., fill in the resource demand quantity.

[0073] Specifically, the user can log in to the corresponding cloud platform through the user terminal, and the cloud platform provides multiple cloud resource products, i.e., resource types.

[0074] Optionally, the resource types can include the types included in the above cloud resource products. Specifically, it can include memory types, CPU (Central Processing Unit) types, network bandwidth types, cache types, etc. Of course, it can also include other aspects of resource types, such as IaaS (Infrastructure as a Service) layer resource types, PaaS (Platform as a Service) layer resource types, and SaaS (Software-as-a-Service) layer resource types.

[0075] S202. Obtain the historical cloud resource usage information corresponding to the user terminal.

[0076] In this embodiment, when the electronic device receives the cloud resource demand information sent by the user terminal, it indicates that the user terminal needs to use cloud resources, i.e., cloud resources need to be allocated to the user terminal. Then, the historical cloud resource usage information corresponding to the user terminal is searched from a preset location, i.e., the historical situation of the user terminal using cloud resources is determined, so as to determine the cloud resource allocation situation of the user terminal by using the historical situation of the user terminal using cloud resources.

[0077] Optionally, the preset location includes locations where data can be stored, such as databases and hard disks.

[0078] Optionally, when looking up the historical cloud resource usage information corresponding to the client from the preset positions, the client identifier of the client can be used for the lookup.

[0079] Optionally, the historical cloud resource usage information includes the historical resource usage types corresponding to the client and the historical usage amounts corresponding to each historical resource usage type.

[0080] Among them, the historical usage amount corresponding to the historical resource usage type can be the usage amount of the client within the historical time, and this usage amount can be the average usage amount or the maximum usage amount, etc. For example, the historical usage amount corresponding to the memory is the average memory usage amount of the client within one month before the current moment.

[0081] Among them, the historical time can be set according to the actual situation, and it is not restricted here.

[0082] S203. Determine the resource allocation amounts corresponding to each resource type according to the historical cloud resource usage information and the resource requirements corresponding to each resource type.

[0083] In this embodiment, after obtaining the historical cloud resource usage information corresponding to the client, the resource amounts corresponding to each resource type are adjusted by using this historical cloud resource usage information to obtain the resource allocation amounts corresponding to each resource type, so as to automatically determine the cloud resource allocation situation of the client.

[0084] S204. Allocate cloud resources for the client according to the resource allocation amounts corresponding to each resource type.

[0085] In this embodiment, after obtaining the resource allocation amounts corresponding to each resource type of the client, based on the resource allocation amounts corresponding to each resource type, cloud resources corresponding to each resource type are allocated for the client, so that the client can use the corresponding cloud resources for cloud computing. For example, if the resource allocation amount corresponding to the memory is 2GB, then 2GB of memory is allocated for this client.

[0086] As can be seen from the above description, when the resource requirement information sent by the user terminal is obtained, it indicates that it is necessary to allocate cloud resources for the client by using the historical resource usage situation of this client. Then, according to the historical resource usage information corresponding to this client and the resource requirements corresponding to each resource type in this resource requirement information, the resource allocation amounts corresponding to each resource type are determined, that is, the cloud resource allocation situation corresponding to this client is determined, and corresponding cloud resources are allocated for this client according to the cloud resource allocation situation corresponding to this client, realizing the automatic allocation of cloud resources, without manual allocation, improving the allocation efficiency of cloud resources, and reducing the labor cost.

[0087] Figure 3 Flow schematic of the cloud resource allocation method provided by the embodiment of the present invention Figure 2, in this embodiment Figure 2 Based on the embodiment, the resource allocation amount corresponding to the user terminal is determined by using each historical resource usage type and historical usage amount in the historical cloud resource usage information corresponding to the user terminal. The following will describe this process in combination with a specific embodiment. As Figure 3 shown, the method includes:

[0088] S301. Obtain the cloud resource requirement information sent by the user terminal, where the cloud resource requirement information includes the resource type and its corresponding resource requirement amount.

[0089] S302. Obtain the historical cloud resource usage information corresponding to the user terminal.

[0090] Among them, the implementation processes of steps S301 - S302 in this embodiment are similar to those of S201 - S202 in Figure 2 the embodiment, and thus will not be elaborated here.

[0091] S303. For each resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information, and determine it as the target historical type.

[0092] In this embodiment, for each resource type in the cloud resource requirement information, find the historical resource usage type that is the same as the resource type from the historical cloud resource usage information, and determine the found historical resource usage type as the target historical type.

[0093] In this embodiment, optionally, obtaining the historical resource usage type that is the same as the resource type from the historical cloud resource usage information and determining it as the target historical type includes: determining whether there is a historical resource usage type that is the same as the resource type in the historical cloud resource usage information. If there is a historical resource usage type that is the same as the resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information.

[0094] Specifically, before obtaining the historical resource usage type that is the same as a certain resource type from the historical cloud resource usage information, it is necessary to first determine whether there is a historical resource usage type that is the same as this resource type in the historical cloud resource usage information. If it exists, it is determined that a historical resource usage type that is the same as this resource type can be found from the historical cloud resource usage information, so as to determine the historical resource usage type that is the same as this resource type in the historical cloud resource usage information as the target historical type, that is, determine it as the target historical type corresponding to this resource type, for obtaining the historical usage amount corresponding to this target historical type from the historical cloud resource usage information, that is, obtaining the historical usage amount corresponding to this resource type, and then using the historical usage amount corresponding to this resource type to determine the resource allocation amount corresponding to this resource type. For example, if the resource type is memory, it is determined whether there is a memory type in the historical cloud resource usage information. If it exists, the memory type in the historical cloud resource usage information is determined as the target historical type for obtaining the historical usage amount corresponding to the memory type from the historical cloud resource usage information.

[0095] In addition, optionally, if there is no historical resource usage type that is the same as the resource type in the historical cloud resource usage information, it indicates that the user side has not used the cloud resources corresponding to this resource type during the historical period, that is, it indicates that the resource allocation amount corresponding to this resource type cannot be determined based on the historical situation of the user side using the cloud resources corresponding to this resource type. Then, obtain the cloud resource planning table, and determine the resource allocation amount corresponding to the user side and the resource type according to the cloud resource planning table.

[0096] Among them, the cloud resource planning table includes multiple user side identifiers, at least one planned resource type corresponding to each user side identifier, and the resource allocation amount corresponding to each planned resource type.

[0097] Specifically, find the planned resource type corresponding to the user side identifier of this user side from the cloud resource planning table, and find the planned resource type that is the same as this resource type from this planned resource type, and determine the resource allocation amount corresponding to the planned resource type that is the same as the resource type as the resource allocation amount corresponding to this resource type. For example, if the resource type is the memory type and the user side identifier is 111, then find all the planned resource types corresponding to 111 and the resource allocation amount corresponding to each planned resource type in all these planned resource types from the cloud resource planning table, for finding the resource allocation amount corresponding to the memory type from the resource allocation amount corresponding to each of these planned resource types, and successfully determine the resource allocation amount corresponding to the memory type.

[0098] S304. Obtain the difference between the resource demand amount corresponding to the resource type and the historical usage amount corresponding to the target historical type.

[0099] In this embodiment, after determining the historical usage amount corresponding to the target historical type corresponding to the resource type based on the historical cloud resource usage information, calculate the difference between the resource demand corresponding to the resource type and the historical usage amount to obtain the difference corresponding to the resource type, so as to determine whether the resource demand corresponding to the resource type meets the requirements by using the difference corresponding to the resource type, and thus determine the resource allocation amount corresponding to the resource type.

[0100] S305. Determine the resource allocation amount corresponding to the resource type according to the difference.

[0101] In this embodiment, for each resource type, after calculating the difference corresponding to the resource type, determine the resource allocation amount corresponding to the resource type based on the difference corresponding to the resource type.

[0102] In this embodiment, optionally, the implementation manner of S305 includes:

[0103] Determine whether the difference is within the preset resource difference range corresponding to the resource type. If the difference is within the preset resource difference range, then determine the one corresponding to the resource type as the resource allocation amount corresponding to the resource type. If the difference is not within the preset resource difference range, then determine the historical usage amount corresponding to the target historical type as the resource allocation amount corresponding to the resource type.

[0104] Specifically, calculate whether the difference corresponding to the resource type is within the preset difference range, that is, whether it is within the preset difference range corresponding to the resource type, so as to determine whether the resource demand corresponding to the resource type meets the requirements, that is, whether it is reasonable. If the difference corresponding to the resource type is within the preset difference range, it is determined that the resource demand corresponding to the resource type matches the historical usage situation, that is, the resource demand corresponding to the resource type is reasonable, and then the resource demand is determined as the resource allocation amount corresponding to the resource type.

[0105] If the difference corresponding to the resource type is not within the preset difference range, it is determined that the resource demand corresponding to the resource type is quite different from the historical usage situation, that is, the resource demand corresponding to the resource type is unreasonable, and then the historical usage amount corresponding to the resource type is determined as the resource allocation amount corresponding to the resource type.

[0106] S306. Allocate cloud resources to the user side according to the resource allocation amount corresponding to each resource type.

[0107] In this embodiment, during the process of the user terminal using cloud resources, the cloud resource utilization rate corresponding to the user terminal can also be obtained, so as to determine the usage situation of the cloud resources held by the user terminal, and then actively recycle or expand the cloud resources according to the usage situation of the cloud resources. The specific process is as follows: Obtain the cloud resource utilization rates corresponding to each user terminal. Perform recycling processing and / or expansion processing on the cloud resources corresponding to each user terminal according to the cloud resource utilization rates corresponding to each user terminal.

[0108] Among them, the cloud resource utilization rate includes the CPU utilization rate and / or the memory utilization rate of the user terminal within a preset time period. Specifically, the CPU utilization rate is the peak utilization rate of the CPU, and the memory utilization rate is the peak utilization rate of the memory.

[0109] Optionally, the electronic device can obtain the cloud resource utilization rates corresponding to each user terminal from the operation and maintenance data platform, and the operation and maintenance data platform can monitor the operation data of each user terminal, so as to determine the cloud resource utilization rates corresponding to each user terminal.

[0110] In this embodiment, when it is determined that the cloud resource utilization rate corresponding to the user terminal is less than the first preset value, it indicates that the user terminal uses less cloud resources and the cloud resources can be released. Then, recycle all the cloud resources of the user terminal. For example, perform a halving process so that the amount of cloud resources held by the user terminal becomes half of the original. For example, if the amount of cloud resources corresponding to the memory type is 4GB, then the amount of cloud resources corresponding to the memory type after the recycling process is 2GB.

[0111] Optionally, the first preset value can be set according to the actual situation. For example, the first preset value is 20%.

[0112] Optionally, when recycling the amount of cloud resources held by the user terminal, all types of cloud resource amounts can be recycled, or only the cloud resource amounts corresponding to the specified type can be recycled. For example, only the cloud resource amounts corresponding to the memory type are recycled.

[0113] In this embodiment, when it is determined that the cloud resource utilization rate corresponding to the user terminal is greater than or equal to the second preset value, it indicates that the user terminal uses more cloud resources and the cloud resources can be increased. Then, perform an expansion process on all the cloud resources of the user terminal, that is, increase the amount of cloud resources held by the user terminal. For example, if the amount of cloud resources corresponding to the memory type is 4GB and it is expanded by 20%, then the amount of cloud resources corresponding to the memory type after the expansion process is 4.8GB.

[0114] Optionally, when expanding the amount of cloud resources held by the user terminal, all types of cloud resource amounts can be expanded, or only the cloud resource amounts corresponding to the specified type can be expanded. For example, only the cloud resource amounts corresponding to the memory type are expanded.

[0115] Additionally, optionally, when performing recovery processing and / or expansion processing on the cloud resources corresponding to the client based on the cloud resource usage rate of the client, the number of times the cloud resource usage rate is greater than or equal to a second preset value can also be counted. When this number of times is greater than a preset number of times (for example, 5 times), it is determined that expansion processing needs to be performed on the cloud resources corresponding to the client.

[0116] Additionally, optionally, the cloud resource usage rate information is determined with the IP address as the smallest granularity.

[0117] Optionally, the user corresponding to the client can also view the cloud resource usage rate, and can actively perform recovery processing and / or expansion processing on the amount of cloud resources held by the client.

[0118] Optionally, when it is determined that expansion processing and / or recovery processing needs to be performed, corresponding processing prompt information can also be sent to the client in a preset manner (for example, text message, email) so that the client can perform recovery processing and / or expansion processing.

[0119] In this embodiment, when allocating cloud resources corresponding to each resource type to the client, for each resource type, the remaining cloud resource amount corresponding to the resource type is obtained, and it is determined whether the remaining cloud resource amount corresponding to the resource type is greater than the resource allocation amount corresponding to the resource type, so as to determine whether the remaining cloud resources can meet the requirements of the client. If the remaining cloud resource amount corresponding to the resource type is greater than or equal to the resource allocation amount corresponding to the resource type, it indicates that the cloud resources corresponding to the resource type can meet the requirements, and then the normal allocation continues.

[0120] If the remaining cloud resource amount corresponding to the resource type is less than the resource allocation amount corresponding to the resource type, it indicates that the cloud resources corresponding to the resource type cannot meet the requirements, then a prompt message is generated to the first target end so that the personnel corresponding to the first target end can perform resource procurement, or perform recovery processing on the cloud resources corresponding to the resource type, or send a misappropriation application to the second target end so that the second target end releases the cloud resources corresponding to this resource type of some clients, so that the client can utilize the cloud resources.

[0121] In this embodiment, the electronic device also provides a report view, and the detailed resource usage of the using department, the resource planning situation, the resource idle situation, and the information such as which computer room the cloud resources are deployed in can be viewed in multiple dimensions.

[0122] In this embodiment, when determining the resource allocation situation of each resource type corresponding to the client, the historical usage data corresponding to each resource type, that is, the historical usage amount, is used to determine whether the resource demand corresponding to each resource type is reasonable, so as to determine the resource allocation amount corresponding to each resource type, and realize the automatic and accurate determination of the resource allocation amount.

[0123] Figure 4 This is a schematic structural diagram of the cloud resource allocation device provided by an embodiment of the present invention. As Figure 4 shown, the cloud resource allocation device 400 includes: a transceiver module 401 and a processing module 402.

[0124] Among them, the transceiver module 401 is used to obtain the cloud resource requirement information sent by the user terminal. Among them, the cloud resource requirement information includes the resource type and its corresponding resource demand.

[0125] The processing module 402 is used to obtain the historical cloud resource usage information corresponding to the user terminal.

[0126] The processing module 402 is further used to determine the resource allocation amount corresponding to each resource type according to the historical cloud resource usage information and the resource demand corresponding to each resource type.

[0127] The processing module 402 is further used to allocate cloud resources to the user terminal according to the resource allocation amount corresponding to each resource type.

[0128] In a possible design, the historical cloud resource usage information includes the historical resource usage types corresponding to the user terminal and the historical usage amounts corresponding to each historical resource usage type. Then, the processing module 402 is further used to:

[0129] For each resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information, and determine it as the target historical type.

[0130] Obtain the difference between the resource demand corresponding to the resource type and the historical usage amount corresponding to the target historical type.

[0131] Determine the resource allocation amount corresponding to the resource type according to the difference.

[0132] In a possible design, the processing module 402 is further used to:

[0133] Determine whether the difference is within the preset resource difference range.

[0134] If the difference is within the preset resource difference range, then determine the resource demand corresponding to the resource type as the resource allocation amount corresponding to the resource type.

[0135] If the difference is not within the preset resource difference range, then determine the historical usage amount corresponding to the target historical type as the resource allocation amount corresponding to the resource type.

[0136] In a possible design, the processing module 402 is further used to:

[0137] Determine whether there is a historical resource usage type that is the same as the resource type in the historical cloud resource usage information.

[0138] If there is a historical resource usage type that is the same as the resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information.

[0139] In a possible design, the processing module 402 is further configured to:

[0140] If there is no historical resource usage type that is the same as the resource type, obtain the cloud resource planning table, and determine the resource allocation amount corresponding to the user side and the resource type according to the cloud resource planning table.

[0141] In a possible design, the processing module 402 is further configured to: obtain the cloud resource utilization rate corresponding to each user side.

[0142] Recycle and / or expand the cloud resources corresponding to each user side respectively according to the cloud resource utilization rate corresponding to each user side.

[0143] The cloud resource allocation device provided by the embodiments of the present invention can implement the cloud resource allocation method of the above embodiments, and its implementation principle and technical effects are similar, which will not be elaborated here.

[0144] Figure 5 It is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present invention. As Figure 5 shown, the electronic device 500 in this embodiment includes: a processor 501 and a memory 502; where

[0145] The memory 502 is used to store computer execution instructions;

[0146] The processor 501 is configured to execute the computer execution instructions stored in the memory to implement each step executed by the receiving device in the above embodiments. Specifically, reference can be made to the relevant descriptions in the foregoing method embodiments.

[0147] Optionally, the memory 502 can be either independent or integrated with the processor 501.

[0148] When the memory 502 is independently provided, the electronic device further includes a bus 503 for connecting the memory 502 and the processor 501.

[0149] The embodiments of the present invention further provide a computer-readable storage medium, in which computer execution instructions are stored, and when the processor executes the computer execution instructions, the cloud resource allocation method as described above is implemented.

[0150] The embodiments of the present invention further provide a computer program product, including a computer program, and when the computer program is executed by the processor, the cloud resource allocation method as described above is implemented.

[0151] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces, and the indirect couplings or communication connections of devices or modules can be in electrical, mechanical or other forms.

[0152] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] In addition, in each embodiment of the present invention, the functional modules can be integrated in a processing unit, or each module can exist physically alone, or two or more modules can be integrated in one unit. The units formed by the above modules can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0154] The integrated modules implemented in the form of software functional modules can be stored in a computer-readable storage medium. The above software functional modules are stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods described in various embodiments of the present application.

[0155] It should be understood that the above processor can be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0156] The memory may include high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a portable hard drive, a read-only memory, a magnetic disk, or an optical disc, etc.

[0157] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0158] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. The storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0159] An exemplary storage medium is coupled to the processor, enabling the processor to read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a master control device.

[0160] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disks, or optical discs and other media that can store program codes.

[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cloud resource allocation method, characterized in that, Including: Obtain the cloud resource demand information sent by the user terminal; wherein, the cloud resource demand information includes the resource type and its corresponding resource demand quantity, and the user terminal identifier; Obtain the historical cloud resource usage information corresponding to the user terminal through the user terminal identifier, where the historical cloud resource usage information includes the historical resource usage types corresponding to the user terminal and the historical usage quantities corresponding to each historical resource usage type; For each resource type, if there is a historical resource usage type that is the same as the resource type, obtain the historical resource usage type that is the same as the resource type from the historical cloud resource usage information, and determine it as the target historical type; obtain the difference between the resource demand quantity corresponding to the resource type and the historical usage quantity corresponding to the target historical type; if the difference is within the preset resource difference range, determine the resource demand quantity corresponding to the resource type as the resource allocation quantity corresponding to the resource type; if the difference is not within the preset resource difference range, determine the historical usage quantity corresponding to the target historical type as the resource allocation quantity corresponding to the resource type; If there is no historical resource usage type that is the same as the resource type, obtain the cloud resource planning table, and determine the resource allocation quantity corresponding to the user terminal and the resource type according to the cloud resource planning table, where the cloud resource planning table includes multiple user terminal identifiers, at least one planned resource type corresponding to each user terminal identifier, and the resource allocation quantity corresponding to each planned resource type; Allocate cloud resources for the user terminal according to the resource allocation quantity corresponding to each resource type.

2. The method according to claim 1, characterized in that It also includes: Determine whether the difference is within the preset resource difference range.

3. The method according to claim 1, wherein It also includes: Determine whether there is a historical resource usage type that is the same as the resource type in the historical cloud resource usage information.

4. The method according to claim 1, characterized in that The method also includes: Obtain the cloud resource utilization rate corresponding to each user terminal; Perform recycling processing and / or expansion processing on the cloud resources corresponding to each user terminal according to the cloud resource utilization rate corresponding to each user terminal.

5. A cloud resource allocation device, characterized in that, Including: A transceiver module, configured to obtain the cloud resource demand information sent by the user terminal; wherein, the cloud resource demand information includes the resource type and its corresponding resource demand quantity, and the user terminal identifier; A processing module, configured to obtain the historical cloud resource usage information corresponding to the user terminal through the user terminal identifier, where the historical cloud resource usage information includes the historical resource usage types corresponding to the user terminal and the historical usage quantities corresponding to each historical resource usage type; The processing module is further configured to, for each resource type, if it is determined that there is a historical resource usage type identical to the resource type, obtain the historical resource usage type identical to the resource type from the historical cloud resource usage information, and determine it as the target historical type; obtain the difference between the resource demand corresponding to the resource type and the historical usage amount corresponding to the target historical type; if the difference is within a preset resource difference range, determine the resource demand corresponding to the resource type as the resource allocation amount corresponding to the resource type; if the difference is not within the preset resource difference range, determine the historical usage amount corresponding to the target historical type as the resource allocation amount corresponding to the resource type; The processing module is further configured to, for each resource type, if it is determined that there is no historical resource usage type identical to the resource type, obtain a cloud resource planning table, and determine the resource allocation amount corresponding to the client and the resource type according to the cloud resource planning table, where the cloud resource planning table includes multiple client identifiers, at least one planned resource type corresponding to each client identifier, and the resource allocation amount corresponding to each planned resource type; The processing module is further configured to allocate cloud resources to the client according to the resource allocation amount corresponding to each resource type.

6. An electronic device, characterized in that, Comprising: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the cloud resource allocation method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, Computer execution instructions are stored in the computer-readable storage medium, and when the processor executes the computer execution instructions, the cloud resource allocation method according to any one of claims 1 to 4 is implemented.

8. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, the cloud resource allocation method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Resource presentation method and device based on Yunhai OS platform

    CN107368372A

  • Storage resource allocation method and device, electronic equipment and computer readable medium

    CN109582234A