CN110138883B - Hybrid cloud resource allocation method and device - Google Patents

Hybrid cloud resource allocation method and device Download PDF

Info

Publication number
CN110138883B
CN110138883B CN201910498617.3A CN201910498617A CN110138883B CN 110138883 B CN110138883 B CN 110138883B CN 201910498617 A CN201910498617 A CN 201910498617A CN 110138883 B CN110138883 B CN 110138883B
Authority
CN
China
Prior art keywords
cloud resource
cloud
current
resource type
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910498617.3A
Other languages
Chinese (zh)
Other versions
CN110138883A (en
Inventor
陈啸
钱志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Basipingyun Technology Co ltd
Original Assignee
Beijing Basipingyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Basipingyun Technology Co ltd filed Critical Beijing Basipingyun Technology Co ltd
Priority to CN201910498617.3A priority Critical patent/CN110138883B/en
Publication of CN110138883A publication Critical patent/CN110138883A/en
Application granted granted Critical
Publication of CN110138883B publication Critical patent/CN110138883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method and a device for distributing hybrid cloud resources, wherein the method comprises the following steps: acquiring current cloud resource use information corresponding to each cloud resource type of a request terminal under various cloud resource types; for each cloud resource type, determining the utilization rate of the current cloud resource corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type; based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and a preset standard utilization rate range, cloud resources of the request terminal under various cloud resource types are adjusted, the adjusted cloud resources corresponding to various cloud resource types are used as the current cloud resources corresponding to various cloud resource types, and the step of determining the utilization rate of the current cloud resources corresponding to the cloud resource types is returned until the finally adjusted cloud resources corresponding to the various cloud resource types meet the use conditions of the request terminal.

Description

Hybrid cloud resource allocation method and device
Technical Field
The application relates to the technical field of information, in particular to a hybrid cloud resource allocation method and device.
Background
The cloud computing Technology is applied to improve Information Technology (IT) management and production efficiency, more and more enterprises have used the cloud computing Technology, and a large number of enterprises select to use a plurality of cloud environments (public clouds and private clouds of a plurality of brands), so that various resource data are dispersed on each platform in a multi-cloud scene, and the efficient and full utilization of cloud resources becomes a problem which needs to be solved by the enterprises urgently.
When an enterprise purchases cloud resources, the self requirements are generally calculated, a part of cloud resources are additionally purchased on the basis of meeting the self requirements, and the enterprise may only use a small part of cloud resources in the actual cloud resource using process, so that a large amount of cloud resources are wasted.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and an apparatus for allocating a hybrid cloud resource, so as to improve the utilization rate of the cloud resource.
In a first aspect, an embodiment of the present application provides a method for allocating a hybrid cloud resource, where the method includes:
acquiring current cloud resource use information corresponding to each cloud resource type of a request end initiating a resource adjustment request under a plurality of cloud resource types;
for each cloud resource type, determining the utilization rate of the current cloud resource corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type;
based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, the cloud resources of the request terminal under various cloud resource types are adjusted, the adjusted cloud resources corresponding to various cloud resource types are used as the current cloud resources corresponding to various cloud resource types, the steps of executing the current cloud resources corresponding to each cloud resource type and determining the utilization rate of the current cloud resources corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type are returned until the finally adjusted cloud resources corresponding to various cloud resource types meet the utilization conditions of the request terminal.
Optionally, the determining, based on the current cloud resource usage information corresponding to the cloud resource type, a usage rate of a current cloud resource corresponding to the cloud resource type includes:
and taking the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type as the usage rate of the current cloud resource under the cloud resource type.
Optionally, the adjusting the cloud resources of the request end in the various cloud resource types based on the determined usage rate of the current cloud resources corresponding to the various cloud resource types and a preset standard usage rate range corresponding to each cloud resource type in the various cloud resource types includes:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type.
Optionally, the allocating, to the request end, cloud resources in the cloud resource type includes:
according to the preset cloud resource corresponding to the cloud resource type, distributing the cloud resource corresponding to the cloud resource type to the request terminal;
the reducing the cloud resources of the request terminal under the cloud resource type includes:
and reducing the cloud resources of the request terminal under the cloud resource type according to the adjustment proportion corresponding to the cloud resource type.
Optionally, the method further comprises:
and determining the finally adjusted resource value information of the cloud resources corresponding to various cloud resource types, and pushing the determined resource value information to the request terminal.
In a second aspect, an embodiment of the present application provides a hybrid cloud resource allocation apparatus, where the apparatus includes:
the acquisition module is used for acquiring current cloud resource use information corresponding to each cloud resource type of a request end initiating a resource adjustment request under various cloud resource types;
the utilization rate determining module is used for determining the utilization rate of the current cloud resource corresponding to each cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type;
and the cloud resource allocation module is used for adjusting the cloud resources of the request terminal under various cloud resource types based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, taking the adjusted cloud resources corresponding to various cloud resource types as the current cloud resources corresponding to various cloud resource types, returning to execute the step of determining the utilization rate of the current cloud resources corresponding to each cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type until the finally adjusted cloud resources corresponding to various cloud resource types meet the utilization conditions of the request terminal.
Optionally, the usage rate determining module is specifically configured to:
and taking the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type as the usage rate of the current cloud resource under the cloud resource type.
Optionally, the cloud resource allocation module is specifically configured to:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the hybrid cloud resource allocation method when executing the computer program.
In a fourth aspect, a computer-readable storage medium, on which a computer program is stored, is characterized in that the computer program, when executed by a processor, performs the steps of the above-mentioned hybrid cloud resource allocation method.
According to the hybrid cloud resource allocation method provided by the embodiment of the application, the utilization rate of the current cloud resource corresponding to each cloud resource type of the request end initiating the resource adjustment request under the multiple cloud resource types is calculated in real time, so that the cloud resources of the request end under the various cloud resource types are adjusted in real time until the finally adjusted cloud resources corresponding to the various cloud resource types meet the use conditions of the request end, and therefore the resource waste of the request end in the use process is reduced, and the utilization rate of the allocated resources is improved.
Therefore, the accuracy of the destination recommended by the travel service platform for the request terminal is improved, the travel service platform can better meet the requirement of the request terminal, and the service quality of the travel service platform is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a flowchart of a hybrid cloud resource allocation method provided in an embodiment of the present application;
fig. 2 is a first schematic structural diagram of a hybrid cloud resource allocation apparatus according to an embodiment of the present application;
fig. 3 is a second schematic structural diagram of a hybrid cloud resource allocation apparatus according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
At present, when an enterprise purchases cloud resources, a plurality of cloud resources (which may be public clouds or private clouds) are generally selected, when the cloud resources are used, data of different cloud resources are dispersed on different platforms, and the enterprise needs to access an open Application Programming Interface (API) of the cloud resources through adaptation so as to centralize the dispersed cloud resources (the public clouds and/or the private clouds), thereby achieving the purpose of serving the enterprise.
For convenience of description, the utilization rate of the current cloud resource corresponding to each cloud resource type of the request end initiating the resource adjustment request in the multiple cloud resource types is calculated in real time, so that the cloud resources of the request end in the various cloud resource types are adjusted in real time until the finally adjusted cloud resources corresponding to the various cloud resource types meet the use conditions of the request end, and therefore resource waste of the request end in the use process is reduced, and the cost for purchasing the cloud resources is reduced.
An embodiment of the present application provides a method for allocating a hybrid cloud resource, and as shown in fig. 2, the method is applied to a server of a resource management platform, and specifically includes the following steps:
s101, current cloud resource use information corresponding to each cloud resource type of a request end initiating a resource adjustment request under various cloud resource types is obtained.
Here, the request end may be, but is not limited to, a mobile terminal, a computer device, and the like, the cloud resource targeted by the present application is generally a hybrid cloud resource, the hybrid cloud resource includes a public cloud and a private cloud, the cloud resource type represents a processing function of the cloud resource, the cloud resource type may be a computing cloud, a network cloud, a database cloud, a storage cloud, and the like, each cloud resource type may correspond to a plurality of cloud resources, the number of cloud resources corresponding to different cloud resource types is different, the cloud resources of the same cloud resource type may be cloud resources of the same manufacturer, or cloud resources of different manufacturers, and may be determined according to the requirements of the request end; the current cloud resource usage information is usage of the current cloud resource by the request end, and for different cloud resource types, the current cloud resource usage information is different, for example, when the cloud resource is a storage space, the current cloud resource usage may be 20G, and when the cloud resource is a bandwidth, the current cloud resource usage may be 20M, which is not illustrated in this application.
The database stores attribute information of cloud resources, the attribute information includes cloud resource identification, cloud resource name, cloud resource type, value of unit cloud resource, start time of using cloud resource, end time of using cloud resource, cloud resource usage information, etc. since the acquired attribute information of cloud resources may correspond to multiple usage records for the same cloud resource identification according to different usage times of cloud resources of the same cloud resource identification, in order to reduce data amount stored in the database, the cloud resource usage information corresponding to the same cloud resource identification may be integrated when the database stores the attribute information of cloud resources, so that the cloud resource usage information corresponding to the same cloud resource identification may be combined into one record, for example, the cloud resource identification is a, the cloud resource usage information corresponding to T1 time is W1, and the cloud resource usage information corresponding to T2 time is W2, when the cloud resource usage information at the time T3 is W3, the cloud resource usage information corresponding to the cloud resource identifier a is W1+ W2+ W3. The current cloud resource usage information may be obtained from a database, or may be usage information of the cloud resource acquired in real time by a request port, which is not limited in this application.
S102, aiming at each cloud resource type, determining the utilization rate of the current cloud resource corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type.
Here, the usage rate indicates a rate at which the cloud resource is used by the requesting side, and the larger the rate, the larger the rate at which the cloud resource is used.
Specifically, the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type is used as the usage rate of the current cloud resource under the cloud resource type; the current cloud resource usage may be the current cloud resource usage of the request terminal, or may be, for each cloud resource type, statistics is performed on the cloud resource usage of the request terminal in a historical time period corresponding to the cloud resource type every day in the historical time period, an average value of the cloud resource usage of the historical time period is calculated, the average value is used as the current cloud resource usage, and the historical time period is continuous days between times when the request terminal sends requests, generally continuous 7 days.
In a specific implementation process, for each cloud resource type, calculating a ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type, and taking the ratio as the usage rate of the current cloud resource corresponding to the cloud resource type.
For example, when the cloud resource type is a computing resource, the cloud resource may be storage content, the total cloud resource amount of the current cloud resource is 500G, and the cloud resource used by the requesting end is 200G, then the usage rate of the computing resource is 200/500-40%.
And S103, based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, adjusting the cloud resources of the request terminal under various cloud resource types, taking the adjusted cloud resources corresponding to various cloud resource types as the current cloud resources corresponding to various cloud resource types, returning to execute the step of determining the utilization rate of the current cloud resources corresponding to each cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type until the finally adjusted cloud resources corresponding to various cloud resource types meet the utilization conditions of the request terminal.
Here, the standard usage rate range represents a range of usage rates that can satisfy usage conditions of the request terminal, and the standard usage rate range may be determined according to actual situations; the processing requirements of the request end on the tasks are met, the request end executes different tasks and has different processing requirements on cloud resources, the fact that the cloud resources actually required by the request end are larger than the cloud resources allocated to the request end when the utilization rate is higher than the standard utilization rate range indicates that the cloud resources actually used by the request end are smaller than the cloud resources allocated to the request end when the utilization rate is lower than the standard utilization rate range indicates that the cloud resources actually used by the request end are smaller than the cloud resources allocated to the request end; when the cloud resources are adjusted, the resources can be adjusted by allocating new cloud resources to the request terminal or reducing the current cloud resources of the request terminal, and the cloud resources finally allocated to the request terminal can meet the use conditions of the request terminal through multiple adjustments.
The method comprises the following steps that a standard utilization rate range is pre-stored in a database, each cloud resource identification corresponds to one standard utilization rate range, after current cloud resource utilization information corresponding to each cloud resource type is obtained and the utilization rate of current cloud resources is determined, the cloud resources of a request end under various cloud resource types are adjusted based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, and the method comprises the following steps:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type;
the allocating the cloud resources under the cloud resource type to the request terminal includes:
according to the preset cloud resources corresponding to the cloud resource types, the cloud resources corresponding to the cloud resource types are distributed to the request terminal;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal.
The reducing the cloud resources of the request terminal under the cloud resource type includes:
and reducing the cloud resources of the request terminal under the cloud resource type according to the adjustment proportion corresponding to the cloud resource type.
The preset cloud resources corresponding to different cloud resource types are different, the adjustment proportions corresponding to different cloud resource types are different, and the preset cloud resources and the adjustment proportions are preset cloud resource preset cloud resources.
In the specific implementation process, aiming at each cloud resource type, comparing the utilization rate of the current cloud resource corresponding to the cloud resource type by a request end with the prediction standard utilization rate range corresponding to the cloud resource type, if the utilization rate of the current cloud resource is lower than the prediction standard utilization rate range corresponding to the cloud resource type, calculating the difference value between a preset value and an adjustment ratio, taking the ratio of the current cloud resource utilization rate of the cloud resource type to the difference value as a first cloud resource, reducing the first cloud resource corresponding to the cloud resource type from the request end, if the utilization rate of the current cloud resource is higher than the prediction standard utilization rate range corresponding to the cloud resource type, subtracting a preset cloud resource from the cloud resource corresponding to the cloud resource type corresponding to the request end, if the utilization rate of the current cloud resource belongs to the prediction standard utilization rate range corresponding to the cloud resource type, the current cloud resources are not adjusted.
For example, when the cloud resource type is a computing cloud resource, and the current computing resource allocated to the requesting end is a storage space 500G, the preset cloud resource is 50G, the adjustment ratio is 0.2, the standard utilization ratio range is 0.5-0.8, if the current computing resource used by the requesting end is 200G, the utilization ratio of the current computing resource by the requesting end is 0.4, which is smaller than the standard utilization ratio range, the current computing resource allocated to the requesting end needs to be reduced at this time, the first cloud resource is 500-, the utilization rate is greater than the standard utilization rate, new computing resources need to be allocated to the request end at this time, the allocated computing resources are the storage space 550G, at this time, the current computing resources used by the request end are obtained again, and the utilization rate of the request end is recalculated until the utilization rate falls into the standard utilization rate.
After the finally adjusted cloud resources corresponding to the various cloud resource types are determined, the resource value information of the finally adjusted cloud resources corresponding to the various cloud resource types is determined, and the determined resource value information is pushed to the request terminal.
Here, the resource value information represents the value of the cloud resource, the higher the value is, the more the finally adjusted cloud resource is represented, and the resource value information can be determined according to the value of the unit cloud resource and the total amount of the cloud resource.
In a specific implementation process, for each cloud resource type, calculating a product of the value of the unit cloud resource corresponding to the cloud resource type and the total amount of the finally adjusted cloud resource, taking the product as resource value information of the finally adjusted cloud resource corresponding to the cloud resource type, and pushing the determined resource value information to a request terminal so as to facilitate the request terminal to obtain the determined resource value information.
For example, if the cloud resource type is a computing resource, the value of a unit cloud resource is Q, the total amount of the finally adjusted cloud resources is T, and the resource value information of the finally adjusted cloud resources is Q × T.
According to the hybrid cloud resource allocation method provided by the embodiment of the application, the utilization rate of the current cloud resource corresponding to each cloud resource type of the request end initiating the resource adjustment request under the multiple cloud resource types is calculated in real time, so that the cloud resources of the request end under the various cloud resource types are adjusted in real time until the finally adjusted cloud resources corresponding to the various cloud resource types meet the use conditions of the request end, and therefore the resource waste of the request end in the use process is reduced, and the utilization rate of the allocated resources is improved.
Based on the same inventive concept, an information pushing device corresponding to the hybrid cloud resource allocation method is further provided in the embodiment of the present application, and as the principle of solving the problem of the device in the embodiment of the present application is similar to that of the hybrid cloud resource allocation method in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 2, a schematic diagram of a hybrid cloud resource allocation apparatus provided in an embodiment of the present application is shown, where the apparatus includes:
an obtaining module 21, configured to obtain current cloud resource usage information corresponding to each cloud resource type of a request end initiating a resource adjustment request under multiple cloud resource types;
a utilization rate determining module 22, configured to determine, for each cloud resource type, a utilization rate of a current cloud resource corresponding to the cloud resource type based on current cloud resource utilization information corresponding to the cloud resource type;
the cloud resource allocation module 23 is configured to adjust the cloud resources of the request end in various cloud resource types based on the determined usage rate of the current cloud resources corresponding to the various cloud resource types and a preset standard usage rate range corresponding to each cloud resource type under the various cloud resource types, use the adjusted cloud resources corresponding to the various cloud resource types as the current cloud resources corresponding to the various cloud resource types, return to execute the step of determining the usage rate of the current cloud resources corresponding to each cloud resource type based on the current cloud resource usage information corresponding to the cloud resource type until the finally adjusted cloud resources corresponding to the various cloud resource types meet the usage condition of the request end.
Optionally, the usage rate determining module 22 is specifically configured to:
and taking the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type as the usage rate of the current cloud resource under the cloud resource type.
Optionally, the cloud resource allocation module 23 is specifically configured to:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal.
Optionally, the cloud resource allocation module is specifically configured to:
according to the preset cloud resource corresponding to the cloud resource type, distributing the cloud resource corresponding to the cloud resource type to the request terminal;
the reducing the cloud resources of the request terminal under the cloud resource type includes:
and reducing the cloud resources of the request terminal under the cloud resource type according to the adjustment proportion corresponding to the cloud resource type.
Referring to fig. 3, a schematic diagram of a hybrid cloud resource allocation apparatus provided in an embodiment of the present application is shown, and compared with the apparatus in fig. 2, the apparatus further includes: the information determination module 24 is configured to determine,
and the information determining module 24 is configured to determine resource value information of the finally adjusted cloud resources corresponding to various cloud resource types, and push the determined resource value information to the request end.
Corresponding to the hybrid cloud resource allocation method in fig. 1, an embodiment of the present application further provides a computer device, as shown in fig. 4, the computer device includes a memory 1000, a processor 2000, and a computer program stored on the memory 1000 and executable on the processor 2000, where the processor 2000 implements the steps of the hybrid cloud resource allocation method when executing the computer program.
Specifically, the memory 1000 and the processor 2000 may be general memories and processors, which are not specifically limited herein, and when the processor 2000 runs a computer program stored in the memory 1000, the hybrid cloud resource allocation method may be executed, so as to solve the problem of low utilization rate of cloud resources in the prior art.
Corresponding to the hybrid cloud resource allocation method in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the hybrid cloud resource allocation method are performed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the hybrid cloud resource allocation method can be executed, so as to solve the problem of low cloud resource utilization rate in the prior art.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for allocating hybrid cloud resources, the method comprising:
acquiring current cloud resource use information corresponding to each cloud resource type of a request end initiating a resource adjustment request under a plurality of cloud resource types;
for each cloud resource type, determining the utilization rate of the current cloud resource corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type;
based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, the cloud resources of the request terminal under various cloud resource types are adjusted, the adjusted cloud resources corresponding to various cloud resource types are used as the current cloud resources corresponding to various cloud resource types, the steps of executing the current cloud resources corresponding to each cloud resource type and determining the utilization rate of the current cloud resources corresponding to the cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type are returned until the finally adjusted cloud resources corresponding to various cloud resource types meet the utilization conditions of the request terminal.
2. The method for allocating hybrid cloud resources of claim 1, wherein the determining, based on the current cloud resource usage information corresponding to the cloud resource type, the usage rate of the current cloud resource corresponding to the cloud resource type includes:
and taking the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type as the usage rate of the current cloud resource under the cloud resource type.
3. The method for allocating hybrid cloud resources according to claim 1, wherein the adjusting the cloud resources of the requesting end in the various cloud resource types based on the determined current cloud resource usage rate corresponding to the various cloud resource types and a preset standard usage rate range corresponding to each cloud resource type in the multiple cloud resource types includes:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal.
4. The hybrid cloud resource allocation method of claim 3, wherein the allocating the cloud resources of the cloud resource type to the requesting end comprises:
according to the preset cloud resource corresponding to the cloud resource type, distributing the cloud resource corresponding to the cloud resource type to the request terminal;
the reducing the cloud resources of the request terminal under the cloud resource type includes:
and reducing the cloud resources of the request terminal under the cloud resource type according to the adjustment proportion corresponding to the cloud resource type.
5. The hybrid cloud resource allocation method of claim 1, said method further comprising:
and determining the finally adjusted resource value information of the cloud resources corresponding to various cloud resource types, and pushing the determined resource value information to the request terminal.
6. A hybrid cloud resource allocation apparatus, the apparatus comprising:
the acquisition module is used for acquiring current cloud resource use information corresponding to each cloud resource type of a request end initiating a resource adjustment request under various cloud resource types;
the utilization rate determining module is used for determining the utilization rate of the current cloud resource corresponding to each cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type;
and the cloud resource allocation module is used for adjusting the cloud resources of the request terminal under various cloud resource types based on the determined utilization rate of the current cloud resources corresponding to various cloud resource types and the preset standard utilization rate range corresponding to each cloud resource type under various cloud resource types, taking the adjusted cloud resources corresponding to various cloud resource types as the current cloud resources corresponding to various cloud resource types, returning to execute the step of determining the utilization rate of the current cloud resources corresponding to each cloud resource type based on the current cloud resource utilization information corresponding to the cloud resource type until the finally adjusted cloud resources corresponding to various cloud resource types meet the utilization conditions of the request terminal.
7. The hybrid cloud resource allocation device of claim 6, wherein the usage determination module is specifically configured to:
and taking the ratio of the current cloud resource usage amount corresponding to the cloud resource type to the total cloud resource amount of the current cloud resource corresponding to the cloud resource type as the usage rate of the current cloud resource under the cloud resource type.
8. The hybrid cloud resource allocation device of claim 6, wherein the cloud resource allocation module is specifically configured to:
for each cloud resource type, if the utilization rate of the current cloud resource corresponding to the cloud resource type is lower than the preset standard utilization rate range corresponding to the corresponding cloud resource type, reducing the cloud resources of the request terminal under the cloud resource type;
and if the utilization rate of the current cloud resource corresponding to the cloud resource type is higher than the preset standard utilization rate range corresponding to the corresponding cloud resource type, distributing the cloud resource under the cloud resource type for the request terminal.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the hybrid cloud resource allocation method of any of the preceding claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the hybrid cloud resource allocation method of any of the preceding claims 1 to 5.
CN201910498617.3A 2019-06-10 2019-06-10 Hybrid cloud resource allocation method and device Active CN110138883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910498617.3A CN110138883B (en) 2019-06-10 2019-06-10 Hybrid cloud resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910498617.3A CN110138883B (en) 2019-06-10 2019-06-10 Hybrid cloud resource allocation method and device

Publications (2)

Publication Number Publication Date
CN110138883A CN110138883A (en) 2019-08-16
CN110138883B true CN110138883B (en) 2021-08-31

Family

ID=67581033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910498617.3A Active CN110138883B (en) 2019-06-10 2019-06-10 Hybrid cloud resource allocation method and device

Country Status (1)

Country Link
CN (1) CN110138883B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719320B (en) * 2019-09-18 2022-05-27 上海联蔚数字科技集团股份有限公司 Method and equipment for generating public cloud configuration adjustment information
CN110719325A (en) * 2019-09-30 2020-01-21 恩亿科(北京)数据科技有限公司 Method and device for responding to user request
CN112887228B (en) * 2019-11-29 2024-02-02 阿里巴巴集团控股有限公司 Cloud resource management method and device, electronic equipment and computer readable storage medium
CN111143800B (en) * 2019-12-31 2022-06-28 北京华胜天成科技股份有限公司 Cloud computing resource management method, device, equipment and storage medium
CN111385150A (en) 2020-03-09 2020-07-07 北京百度网讯科技有限公司 Method and device for acquiring information
CN115086331B (en) * 2022-07-20 2024-06-07 阿里巴巴(中国)有限公司 Cloud equipment scheduling method, device and system, electronic equipment and storage medium
CN115242626B (en) * 2022-07-21 2024-04-05 中国建设银行股份有限公司 Cloud resource allocation prediction method, device, equipment, storage medium and program product

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369038B (en) * 2013-07-03 2016-05-18 中国联合网络通信集团有限公司 Platform serves PaaS management platform and method
CN103677957B (en) * 2013-12-13 2016-10-19 重庆邮电大学 Cloud data center high energy efficiency based on multiple resource virtual machine placement method
US9755987B2 (en) * 2014-02-05 2017-09-05 Futurewei Technologies, Inc. Virtual resource mapping mechanisms
CN103810023B (en) * 2014-03-06 2016-09-07 中国科学院信息工程研究所 The intelligent deployment method of Distributed Application and system in a kind of cloud platform
CN105912397A (en) * 2016-03-31 2016-08-31 乐视控股(北京)有限公司 Resources management method and device
US10135755B1 (en) * 2016-09-22 2018-11-20 EMC IP Holding Company LLC Information technology infrastructure discovery utilizing discovery adapters
CN106790368A (en) * 2016-11-17 2017-05-31 北京奇艺世纪科技有限公司 Resource regulating method and device in a kind of distributed system
US20180316759A1 (en) * 2017-04-27 2018-11-01 Microsoft Technology Licensing, Llc Pluggable autoscaling systems and methods using a common set of scale protocols for a cloud network
CN108427604B (en) * 2018-02-06 2020-06-26 华为技术有限公司 Cluster resource adjustment method and device and cloud platform
CN109324886A (en) * 2018-09-14 2019-02-12 中国人民解放军国防科技大学 cluster resource scheduling method and device
CN109684073A (en) * 2018-10-26 2019-04-26 平安科技(深圳)有限公司 Electronic device, cloud service resource allocation methods and storage medium

Also Published As

Publication number Publication date
CN110138883A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110138883B (en) Hybrid cloud resource allocation method and device
US10348582B1 (en) Providing an instance availability estimate
CN108090225B (en) Database instance running method, device and system and computer readable storage medium
CN106453146B (en) Method, system, device and readable storage medium for allocating private cloud computing resources
US20110145153A1 (en) Negotiating agreements within a cloud computing environment
CN110351375B (en) Data processing method and device, computer device and readable storage medium
CN110839069B (en) Node data deployment method, node data deployment system and medium
CN106713028B (en) Service degradation method and device and distributed task scheduling system
WO2019062068A1 (en) Agent task allocation method, storage medium and server
CN109005214B (en) Resource scheduling method and device
US20170178041A1 (en) Completion contracts
TW202121274A (en) Cloud resource management method and apparatus, and electronic device and computer readable storage medium
CN113626199B (en) Management method and device of idle cloud computing resources, electronic equipment and storage medium
CN104301257A (en) Resource distribution method, device and equipment
CN110149377A (en) A kind of video service node resource allocation methods, system, device and storage medium
CN114155026A (en) Resource allocation method, device, server and storage medium
CN111400033A (en) Platform resource cost allocation method and device, storage medium and computer equipment
CN111988388B (en) Flow distribution method, device, electronic equipment and storage medium
CN106411782B (en) A kind of bandwidth compensation method and device
CN116932220A (en) Resource adjustment method and device for service cluster, electronic equipment and storage medium
CN110096352A (en) Process management method, device and computer readable storage medium
CN114553614B (en) Bandwidth cost estimation method, device, equipment, medium and program product
CN105573821A (en) Ceilometer-based dynamic charging method for cloud virtual machine
CN117519956A (en) Resource quota determination method, device, computing equipment and medium
CN105335362A (en) Real-time data processing method and system, and instant processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40006399

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant