CN108667940A - Resource allocation methods, device and the computer readable storage medium of cloud platform - Google Patents
Resource allocation methods, device and the computer readable storage medium of cloud platform Download PDFInfo
- Publication number
- CN108667940A CN108667940A CN201810498166.9A CN201810498166A CN108667940A CN 108667940 A CN108667940 A CN 108667940A CN 201810498166 A CN201810498166 A CN 201810498166A CN 108667940 A CN108667940 A CN 108667940A
- Authority
- CN
- China
- Prior art keywords
- resource
- quota
- cloud terminal
- cloud
- terminal
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Abstract
The invention discloses a kind of resource allocation methods of cloud platform, and the corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request;Obtain the resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal, the resource quota of the cloud terminal is determined according to the quota coefficient of the resource quota of the superior agency quotient and the cloud terminal, wherein, the quota coefficient is less than 1;It is that the cloud terminal configures resource according to the resource quota of the cloud terminal.The invention also discloses a kind of resource allocation device of cloud platform and computer readable storage mediums.Method in through the invention obtains the resource quota of cloud terminal, after the stock number of the resource quota is distributed to the cloud terminal, the operation demand of cloud terminal can either be met, but can control cloud terminal will not transition use resource, to avoid agent's transition distribute resource.
Description
Technical field
The present invention relates to the resource allocation methods of cloud platform technical field more particularly to cloud platform, device and computers can
Read storage medium.
Background technology
With the development of computer technology, the advantages such as convenient, economic, high expansibility that the cloud platform developed has by with
Family is widely used.However resource-sharing, on demand use in existing cloud platform, it usually will appear user's transition and use shared resource
The phenomenon that.
In the prior art, the resource that tenant is limited by way of resource is arranged using quota uses, to avoid shared money
Source is used by a certain tenant's transition.
Quota is used using setting resource, limits the resource occupation quantity of single tenant to a certain extent, but simultaneously
Agential resource usage amount cannot be limited.So when there are Multistage Proxy, agent can arbitrarily apply for resource quantity, from
Resource quota is arranged in tenant or sub-agent quotient of the behavior under it, and resource is distributed so as to cause agent's transition.
Invention content
The main purpose of the present invention is to provide a kind of resource allocation methods of cloud platform, device and computer-readable storages
Medium, it is intended to the technical issues of solving agent's transition distribution resource.
To achieve the above object, the present invention provides a kind of resource allocation methods of cloud platform, the resource point of the cloud platform
Method of completing the square includes the following steps:
The corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request;
The resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal are obtained, according to described
The resource quota of superior agency quotient and the quota coefficient of the cloud terminal determine the resource quota of the cloud terminal, wherein institute
It states quota coefficient and is less than 1;
It is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
Preferably, the step of quota coefficient for obtaining the cloud terminal includes:
The quota coefficient of the cloud terminal is obtained according to the resource allocation request.
Preferably, the step of quota coefficient for obtaining the cloud terminal includes:
Obtain the weight of the cloud terminal and the surplus resources quota of the superior agency quotient;
The cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Quota coefficient.
Preferably, the step of quota coefficient for obtaining the cloud terminal includes:
Judge the quota coefficient with the presence or absence of the cloud terminal in the resource allocation request;
When, there are when the quota coefficient of the cloud terminal, being obtained in the resource allocation request in the resource allocation request
The quota coefficient of the cloud terminal;
When the quota coefficient of the cloud terminal is not present in the resource allocation request, the resource allocation request is obtained
Described in the weight of cloud terminal and the surplus resources quota of the superior agency quotient;
The cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Quota coefficient.
Preferably, before the resource quota according to the cloud terminal is the step of cloud terminal configures resource, also
Including:
The surplus resources quota for obtaining the superior agency quotient, judges whether the resource quota of the cloud terminal is less than or waits
In the surplus resources quota of the superior agency quotient;
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, institute is executed
It is the step of cloud terminal configures resource to state according to the resource quota of the cloud terminal.
Preferably, whether the resource quota for judging the cloud terminal is less than or equal to the residue of the superior agency quotient
After the step of resource quota, further include:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, the first prompt is generated
Information.
Preferably, before the step of the first prompt message of the generation, further include:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, according to the higher level
Agential surplus resources quota is that the cloud terminal configures resource.
Preferably, whether the resource quota for judging the cloud terminal is less than or equal to the residue of the superior agency quotient
After the step of resource quota, further include:
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, institute is obtained
State cloud terminal resource quota ready for use;
Judge whether the resource quota of the cloud terminal is greater than or equal to the cloud terminal resource quota ready for use;
When the resource quota of terminal resource quota ready for use more than or equal to the cloud terminal, described is executed
Resource quota according to the cloud terminal is the step of cloud terminal configures resource;
When the resource quota of terminal resource quota ready for use less than the cloud terminal, the second prompt letter is generated
Breath.
Preferably, described that the corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request
After step, further include:
Judge that the cloud terminal whether there is superior agency quotient;
When there are the resources for when superior agency quotient, executing the superior agency quotient for obtaining the cloud terminal for the cloud terminal
The quota coefficient of quota and the cloud terminal, according to the resource quota of the superior agency quotient and the quota of the cloud terminal
Coefficient determines the step of resource quota of the cloud terminal;
When superior agency quotient is not present in the cloud terminal, the resource quota of the cloud platform and the cloud terminal are obtained
Quota coefficient, the money of the cloud terminal is determined according to the quota coefficient of the resource quota of the cloud platform and the cloud terminal
Source quota.
Preferably, when configuring resource for the cloud terminal, the resource quota according to the cloud terminal is that the cloud is whole
Before the step of end configuration resource, further include:
Lock resource quota database, wherein the cloud terminal is updated in the resource quota database of the cloud platform
Resource quota, for the cloud terminal configure resource after unlock the resource quota database.
In addition, to achieve the above object, the present invention also provides a kind of resource allocation devices of cloud platform, which is characterized in that
The resource allocation device of the cloud platform includes:It memory, processor and is stored on the memory and can be in the processing
The resource allocator run on device realizes as above any one institute when the resource quota management program is executed by the processor
The step of resource allocation methods for the cloud platform stated.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, which is characterized in that institute
It states and is stored with resource allocator on computer readable storage medium, realized such as when the resource allocator is executed by processor
The step of resource allocation methods of upper any one of them cloud platform.
Resource allocation methods, device and the computer readable storage medium for a kind of cloud platform that the embodiment of the present invention proposes,
When cloud platform receives resource allocation request, the cloud terminal for needing to carry out resource allocation is determined by resource allocation request, is passed through
Database obtains the cloud terminal-pair and answers the resource quota of superior agency quotient and the quota coefficient of the cloud terminal.According to superior agency
The resource quota of quotient and the quota coefficient of cloud terminal can calculate the resource quota of cloud terminal, by the money of calculated cloud terminal
Quota database is written in source quota, realizes the resource distribution of the cloud terminal.Method in through the invention obtains the money of cloud terminal
Source quota can either meet the operation demand of cloud terminal, and can after the stock number of the resource quota is allocated to the cloud terminal
Control cloud terminal will not transition use resource, to avoid agent's transition from distributing resource.
Description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the resource allocation methods first embodiment of cloud platform of the present invention;
Fig. 3 is cloud terminal resource quota configuration diagram of the present invention;
Fig. 4 is the flow diagram of the resource allocation methods second embodiment of cloud platform of the present invention;
Fig. 5 is the flow diagram of the resource allocation methods 3rd embodiment of cloud platform of the present invention;
Fig. 6 is the flow diagram of the resource allocation methods fourth embodiment of cloud platform of the present invention;
Fig. 7 is the flow diagram of the 5th embodiment of resource allocation methods of cloud platform of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:
The corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request;
The resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal are obtained, according to described
The resource quota of superior agency quotient and the quota coefficient of the cloud terminal determine the resource quota of the cloud terminal, wherein institute
It states quota coefficient and is less than 1;
It is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
Since agent's transition distributes resource in the prior art, the service quality of cloud platform is influenced.
The present invention provides a solution, true by resource allocation request when cloud platform receives resource allocation request
Surely need carry out resource allocation cloud terminal, by database obtain the cloud terminal-pair answer superior agency quotient resource quota and
The quota coefficient of the cloud terminal.Cloud terminal can be calculated according to the quota coefficient of the resource quota of superior agency quotient and cloud terminal
Resource quota, quota database is written into the resource quota of calculated cloud terminal, realizes the resource distribution of the cloud terminal.It is logical
The method crossed in the present invention obtains the resource quota of cloud terminal, after the stock number of the resource quota is distributed to the cloud terminal, both
Disclosure satisfy that the operation demand of cloud terminal, but can control cloud terminal will not transition use resource, to avoid agent's transition
Distribute resource.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be cloud platform.
As shown in Figure 1, the terminal may include:Processor 1001, such as CPU, network interface 1003, memory 1004,
Communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.Network interface 1003 is optional
May include standard wireline interface and wireless interface (such as WI-FI interfaces).Memory 1004 can be high-speed RAM memory,
Can also be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1004 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, either combines certain components or different components arrangement.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1004 of computer storage media
Believe module, Subscriber Interface Module SIM and resource allocator.
In terminal shown in Fig. 1, network interface 1003 is mainly used for connecting each cloud terminal, receives the resource of cloud terminal
Distribution request, and processor 1001 can be used for calling the resource allocator stored in memory 1004, and execute following behaviour
Make:
The corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request;
The resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal are obtained, according to described
The resource quota of superior agency quotient and the quota coefficient of the cloud terminal determine the resource quota of the cloud terminal, wherein institute
It states quota coefficient and is less than 1;
It is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
The quota coefficient of the cloud terminal is obtained according to the resource allocation request.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
Obtain the weight of the cloud terminal and the surplus resources quota of the superior agency quotient;
The cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Quota coefficient.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
Judge the quota coefficient with the presence or absence of the cloud terminal in the resource allocation request;
When, there are when the quota coefficient of the cloud terminal, being obtained in the resource allocation request in the resource allocation request
The quota coefficient of the cloud terminal;
When the quota coefficient of the cloud terminal is not present in the resource allocation request, the resource allocation request is obtained
Described in the weight of cloud terminal and the surplus resources quota of the superior agency quotient;
The cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Quota coefficient.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
The surplus resources quota for obtaining the superior agency quotient, judges whether the resource quota of the cloud terminal is less than or waits
In the surplus resources quota of the superior agency quotient;
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, institute is executed
It is the step of cloud terminal configures resource to state according to the resource quota of the cloud terminal.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, the first prompt is generated
Information.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, according to the higher level
Agential surplus resources quota is that the cloud terminal configures resource.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, institute is obtained
State cloud terminal resource quota ready for use;
Judge whether the resource quota of the cloud terminal is greater than or equal to the cloud terminal resource quota ready for use;
When the resource quota of terminal resource quota ready for use more than or equal to the cloud terminal, described is executed
Resource quota according to the cloud terminal is the step of cloud terminal configures resource;
When the resource quota of terminal resource quota ready for use less than the cloud terminal, the second prompt letter is generated
Breath.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
Judge that the cloud terminal whether there is superior agency quotient;
When there are the resources for when superior agency quotient, executing the superior agency quotient for obtaining the cloud terminal for the cloud terminal
The quota coefficient of quota and the cloud terminal, according to the resource quota of the superior agency quotient and the quota of the cloud terminal
Coefficient determines the step of resource quota of the cloud terminal;
When superior agency quotient is not present in the cloud terminal, the resource quota of the cloud platform and the cloud terminal are obtained
Quota coefficient, the money of the cloud terminal is determined according to the quota coefficient of the resource quota of the cloud platform and the cloud terminal
Source quota.
Further, processor 1001 can call the resource allocator stored in memory 1004, also execute following
Operation:
Lock resource quota database, wherein the cloud terminal is updated in the resource quota database of the cloud platform
Resource quota, for the cloud terminal configure resource after unlock the resource quota database.
With reference to Fig. 2, the resource allocation methods first embodiment of cloud platform of the present invention, the resource allocation methods of the cloud platform
Including:
Step S10 determines the corresponding cloud terminal to be allocated of the resource allocation request according to resource allocation request.
Step S20 obtains the resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal,
The resource quota of the cloud terminal is determined according to the quota coefficient of the resource quota of the superior agency quotient and the cloud terminal,
Wherein, the quota coefficient is less than 1.
In the prior art, the resource distribution of lower-level reseller or tenant are responsible for by its higher level agent, and cloud platform without
Method limits distribution of the agent for resource, so as to cause agent can not limit under the resource of sub-agent quotient or tenant it is excessive
It uses so that other tenant's available resources are reduced, and agent's transition distributes resource, influences the service quality of cloud platform.
The present invention increases quota control system module in cloud platform control system, and quota control system module is responsible for control
The management and distribution of agent resource quota store each agential allowable resource quota value.Agent administration person and cloud
Platform administrator all removes setting resource quota by quota system module.Configuration of each agent to resource is strictly limited, is controlled
It makes agential resource and uses amount, improve the service quality of cloud platform.
Cloud platform can go out multiple hierarchical agency quotient according to delineation of activities, and there are the superior and the subordinate passes by the agent of different levels
System, total resource quota are uniformly allocated and are managed by cloud platform administrator, and then the agent administration of each level has
The resource quota of oneself, and by the resource quota of superior agency quotient constrain, and can manage independently the tenant under oneself or
The resource quota of person lower-level reseller.The resource quota of agent or tenant are multiplied by it for its agential resource quota of higher level matches
Volume coefficient, wherein quota coefficient is arranged according to the attribute of the agent or tenant, and the numerical value of quota coefficient is all higher than 0 and is less than
1。
Agent's and tenant in cloud platform is referred to as cloud terminal.When configuring resource for cloud terminal, cloud platform system
Resource allocation request is received, and then determines the cloud terminal of resource to be allocated according to the resource allocation request received.According to money
Source distribution request determines there are many modes of the identity of cloud terminal that common method is that cloud end is carried in resource allocation request
The identity at end.
According to cloud terminal to be allocated, calls resource quota system function interface to obtain the cloud terminal-pair by database and answer
The quota coefficient of the resource quota of superior agency quotient and the cloud terminal.According to the resource quota of superior agency quotient and cloud terminal
Quota coefficient can calculate the resource quota of cloud terminal.Thus the resource quota of calculated cloud terminal can either meet cloud end
The operation demand at end, and cloud terminal can be controlled will not excessively use resource, avoid the waste of resource.
For example, when configuring resource for the agent C in Fig. 3, sends to cloud platform and asked about the resource allocation of agent C
It asks, after cloud platform receives resource allocation request, obtains the resource of agent A (agent A is the superior agency quotient of agent C)
The quota coefficient of quota and agent C calculates agency according to the quota coefficient of the resource quota of agent A and agent C
The resource quota of quotient C.In addition, agent A is also tenant's A1 distribution resources other than allocating resources to agent C, therefore generation
The surplus resources quota of reason quotient A is that the resource quota of agent A subtracts the resource amount that resource allocation is distributed for tenant A1.Together
Reason, agent C, which matches the resource postponed, will also distribute to tenant C1 and tenant C2.
The quota coefficient acquisition methods of the cloud terminal can be by directly acquiring the cloud terminal in resource allocation request
The quota coefficient that superior agency quotient provides;It can also be the superior agency quotient's of the weight and the cloud terminal that obtain the cloud terminal
Surplus resources quota, by the surplus resources quota phase of the superior agency quotient of the weight of the cloud terminal got and the cloud terminal
Multiply or obtained after correcting the two product with particular factor the quota coefficient of the cloud terminal, wherein the weight of cloud terminal is whole with cloud
The attribute at end is related;It can also be the quota coefficient that whether there is the cloud terminal in the resource allocation request that judgement receives, deposit
When, directly acquire the quota coefficient of the cloud terminal in resource allocation request, when it be not present, obtain the weight of the cloud terminal with
And the surplus resources quota of the superior agency quotient of the cloud terminal, by the upper of the weight of the cloud terminal got and the cloud terminal
The agential surplus resources quota of grade is multiplied or obtains the quota coefficient of the cloud terminal after being corrected the two product with particular factor;
The other modes that can also be the quota coefficient for obtaining cloud terminal, no longer repeat one by one herein.
In addition, the resource allocation of cloud terminal is by the superior agency quotient of cloud terminal or the resource allocation management person of cloud platform
Distribution needs first to judge whether the user for sending resource allocation request has so when cloud platform receives resource allocation request
The permission of the promising cloud terminal distribution resource.There is the power for the cloud terminal distribution resource in the user for sending resource allocation request
In limited time, following operations for cloud terminal distribution resource can just be continued to execute;It is when the user for sending resource allocation request does not have
When the permission of the cloud terminal distribution resource, prompt message is generated, prompts the operation of Current resource distribution request illegal, the cloud terminal
Resource distribution fails.
Step S30 is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
According to the resource quota numerical value of cloud terminal, calling interface configures the resource of the cloud terminal, and the method for resource distribution has,
Quota database is written into the resource quota of cloud terminal.
In the present embodiment, it when cloud platform receives resource allocation request, needs to carry out by resource allocation request determination
The cloud terminal of resource allocation obtains the resource quota and the cloud terminal that the cloud terminal-pair answers superior agency quotient by database
Quota coefficient.The resource that cloud terminal can be calculated according to the quota coefficient of the resource quota of superior agency quotient and cloud terminal is matched
The resource quota of calculated cloud terminal is written quota database, realizes the resource distribution of the cloud terminal by volume.Through the invention
In method obtain cloud terminal resource quota can either meet after the stock number of the resource quota is allocated to the cloud terminal
The operation demand of cloud terminal, but can control cloud terminal will not transition use resource, to avoid agent's transition distribute resource,
Ensure the service quality of cloud platform.
Further, with reference to Fig. 4, the resource allocation methods second embodiment of cloud platform of the present invention is real based on above-mentioned first
It applies example, before the step S30, further includes:
Step S40 obtains the surplus resources quota of the superior agency quotient;
Step S50, judges whether the resource quota of the cloud terminal is less than or equal to the remaining money of the superior agency quotient
Source quota;
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, step is executed
Rapid S30 is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
Step S60 is generated when the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient
First prompt message.
Obtain agent be already allocated under sub-agent quotient and sub- tenant resource quota value, by the total resource of agent
Quota value subtracts be already allocated under the resource quota of sub-agent quotient and sub- tenant be worth to the agential surplus resources and match
Volume.
The resource of cloud terminal configuration comes from the superior agency quotient of the cloud terminal, so configuring resource for the cloud terminal
When, it is necessary first to whether the superior agency quotient for understanding the cloud terminal can assign the cloud terminal its required stock number.
Therefore compare the resource quota numerical value and surplus resources quota value that should be with cloud terminal superior agency quotient of cloud terminal, sentence
Whether the resource quota for the cloud terminal of breaking is less than or equal to the surplus resources quota of superior agency quotient.When the resource of the cloud terminal
When quota is less than or equal to the surplus resources quota of superior agency quotient, step S30 is executed, resource is configured for the cloud terminal;When
When the resource quota of the cloud terminal is more than the surplus resources quota of superior agency quotient, illustrate the remaining resource of superior agency quotient
Quota is insufficient to this resource allocation operations, generates the first prompt message of resource distribution failure, is somebody's turn to do so that later stage user improves
The resource quota of superior agency quotient meets the resource distribution to subordinate's cloud terminal.First prompt message can be prompt higher level
Agential surplus resources quota is too low;Either, the resource quota of cloud terminal is excessively high;Either agential surplus resources are matched
Volume deficiency thinks its subordinate's cloud terminal distribution resource, can also be other modes, no longer repeats one by one herein.
In addition, when the resource quota of the cloud terminal is more than the surplus resources quota of superior agency quotient, it can also be in life
While at the first prompt message, the surplus resources of superior agency quotient are distributed into the cloud terminal, temporarily to meet cloud end
The part operation demand at end ensures the working efficiency of cloud terminal.
The present embodiment is only a kind of realization method, is not limited in a kind of this realization method.
In the present embodiment, the surplus resources quota for obtaining the superior agency quotient of cloud terminal, judges the resource of the cloud terminal
Whether quota is less than or equal to the surplus resources quota of superior agency quotient.It is somebody's turn to do when the resource quota of the cloud terminal is less than or equal to
It is that the cloud terminal configures resource according to the resource quota of the cloud terminal when surplus resources quota of superior agency quotient;When cloud end
When the resource quota at end is more than the surplus resources quota of superior agency quotient, illustrate the remaining resource quota of superior agency quotient not
This enough resource allocation operations, generate the first prompt message of resource distribution failure, so that later stage user improves higher level generation
The resource quota of quotient is managed, meets the resource distribution to subordinate's cloud terminal, embodies the realizability of cloud platform resource allocation operations.
Further, with reference to Fig. 5, the resource allocation methods 3rd embodiment of cloud platform of the present invention, based on above-mentioned first or
Second embodiment after the step S50, further includes:
Step S70, when the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient
When, obtain the cloud terminal resource quota ready for use.
When the corresponding cloud terminal to be allocated of resource allocation request is agent, and there are subordinate agencies under the agent
Quotient and when tenant, then the agent needs to distribute resource to lower-level reseller and tenant, so being provided being configured for the agent
When source, the agential resource quota should be greater than or be equal under all lower-level resellers, tenant resource quota and itself
Resource quota summation needed for operation.According to the history resource allocation record in the agent, the agential lower-level reseller
Or the resource allocation request of tenant and the resource quota of agent's self-operating demand, it is to be used that the cloud terminal can be obtained
Resource quota.In addition, when the corresponding cloud terminal to be allocated of resource allocation request is agent, and do not deposited under the agent
When lower-level reseller and tenant or cloud terminal to be allocated are tenant, then need to consider the cloud terminal self-operating
The resource quota of the resource quota of demand, the cloud terminal should be greater than or match equal to the required resource of cloud terminal self-operating
Volume.
Step S80, judges whether the resource quota of the cloud terminal is greater than or equal to the cloud terminal resource ready for use
Quota.
When the resource quota of terminal resource quota ready for use more than or equal to the cloud terminal, step is executed
S30 is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
Step S90 generates second when the resource quota of terminal resource quota ready for use less than the cloud terminal
Prompt message.
The resource quota and the cloud terminal resource quota ready for use for comparing cloud terminal, when the resource quota of the cloud terminal is big
When cloud terminal resource quota ready for use, the operation for executing step S30 is that the cloud terminal configures resource;When the cloud
When the resource quota of terminal is less than cloud terminal resource quota ready for use, illustrate the resource quota of the cloud terminal with postpone will not
It disclosure satisfy that the use of the cloud terminal-pair resource, generate the second prompt message of resource distribution failure, so that later stage user improves
The quota coefficient or weight of the cloud terminal, improve the resource quota of the cloud terminal.Second prompt message can prompt this
The resource quota of the cloud terminal of resource allocation request is too low;Either, cloud terminal resource quota ready for use is excessively high;Either cloud
The resource quota of terminal cannot meet the resource use demand of the cloud terminal.
In addition it is also possible to first judge whether the resource quota of cloud terminal matches more than or equal to cloud terminal resource ready for use
Volume, when the resource quota that judging result is cloud terminal resource quota ready for use more than or equal to cloud terminal, then row judges cloud
Whether the resource quota of terminal is less than or equal to the surplus resources quota of superior agency quotient, that is, is held after first carrying out step S70-S90
Row step S40-S60.
In the present embodiment, cloud terminal resource quota ready for use is obtained, resource quota and the cloud for comparing cloud terminal are whole
Resource quota ready for use is held, when the resource quota of cloud terminal resource quota ready for use more than or equal to the cloud terminal,
Execute the operation that resource is configured for the cloud terminal;When the resource quota of the cloud terminal is less than the cloud terminal resource quota ready for use
When, illustrate that the resource quota of the cloud terminal with the use that will not be able to meet the cloud terminal-pair resource is postponed, generates resource distribution
Second prompt message of failure improves the money of the cloud terminal so that later stage user improves the quota coefficient or weight of the cloud terminal
Source quota so that the resource of cloud terminal configuration disclosure satisfy that the use of the cloud terminal, realize effective configuration of cloud terminal resource.
Further, with reference to Fig. 6, the resource allocation methods fourth embodiment of cloud platform of the present invention, based on above-mentioned first to
Three any embodiments after the step S10, further include:
Step S100 judges that the cloud terminal whether there is superior agency quotient;
When the cloud terminal is there are when superior agency quotient, execution step S10 obtains the superior agency quotient of the cloud terminal
Resource quota and the cloud terminal quota coefficient, according to the resource quota of the superior agency quotient and the cloud terminal
Quota coefficient determine the resource quota of the cloud terminal.
Step S110, when the cloud terminal be not present superior agency quotient when, obtain the cloud platform resource quota and
The quota coefficient of the cloud terminal, according to the resource quota of the cloud platform and the determination of the quota coefficient of the cloud terminal
The resource quota of cloud terminal.
When the resource allocation management person for being cloud platform carries out resource allocation, cloud terminal to be allocated can be agencies at different levels
Quotient, when superior agency quotient is not present in cloud terminal, which is top agent, because top agent does not have superior agency
Quotient, so top agential resource quota is true by the resource quota of preset cloud platform and top agential quota coefficient institute
Fixed, method of determination is similar with other cloud terminals, and difference is by the resource quota of the superior agency quotient in other cloud terminals with changing
For the resource quota of cloud platform.Since the resource of top agent distribution arises directly from cloud platform, so the distribution of its resource
It is not limited by other, after getting top agential resource quota, directly configures resource for top agent.
In the present embodiment, resource allocation request is received in cloud platform, is determined according to resource allocation request to be allocated
After cloud terminal, judge whether the cloud terminal is that there are superior agency quotient.When the cloud terminal is there are when superior agency quotient, in execution
State the resource quota that step S20 determines cloud terminal;When superior agency quotient is not present in cloud terminal, the resource quota of the cloud terminal by
The resource quota of preset cloud platform and top agential quota coefficient are determined.Increase sentencing with the presence or absence of superior agency quotient
It is disconnected, the perfect resource allocation proposal of cloud terminal.
Further, with reference to Fig. 7, the 5th embodiment of resource allocation methods of cloud platform of the present invention, based on above-mentioned first to
Four any embodiments before the step S30, further include:
Step S120 locks resource quota database, wherein when configuring resource for the cloud terminal, in the cloud platform
Resource quota database in update the resource quota of the cloud terminal, unlock the money after configuring resource for the cloud terminal
Source quota database.
When into the resource distribution for terminal of racking, the resource of the cloud terminal is updated in the resource quota database of cloud platform
Quota locks resource database, and to prevent more people's concurrent operations from leading to cloud platform system errors in cloud terminal
Resource distribution after the completion of unlocked resource configuration database, for other cloud terminals carry out resource distribution.Wherein, resource quota number
It can be executed in any moment before configuring resource for cloud terminal according to the locking operation in library.
Further, in resource quota data library locking, such as there is cloud terminal that resource distribution, resource is being asked to be matched at this time
Volume database has been in locked state, then this locks failure.When locking failure, can be spaced after prefixed time interval again
It is secondary to attempt, to resource quota data library locking, failure still to be locked after attempting the locking operation of preset times, then stop locking behaviour
Make, and generates resource quota data and see the prompt message for locking failure information and resource distribution failure.
In the present embodiment, before the resource distribution into terminal of racking, resource database is locked, and in cloud terminal
Resource distribution after the completion of unlocked resource configuration database, for other cloud terminals carry out resource distribution.It can be effectively prevented
More people's concurrent operations lead to cloud platform system errors.
In addition, the embodiment of the present invention also proposes a kind of resource allocation device of cloud platform, the resource allocation of the cloud platform
Device includes:Memory, processor and it is stored in the resource allocation journey that can be run on the memory and on the processor
Sequence realizes the resource of the cloud platform described in as above each embodiment when the resource quota management program is executed by the processor
The step of distribution method.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with resource allocator, the as above cloud described in each embodiment is realized when the resource allocator is executed by processor
The step of resource allocation methods of platform.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (12)
1. a kind of resource allocation methods of cloud platform, which is characterized in that the resource allocation methods of the cloud platform include following step
Suddenly:
The corresponding cloud terminal to be allocated of the resource allocation request is determined according to resource allocation request;
The resource quota of the superior agency quotient of the cloud terminal and the quota coefficient of the cloud terminal are obtained, according to the higher level
Agential resource quota and the quota coefficient of the cloud terminal determine the resource quota of the cloud terminal, wherein described to match
Volume coefficient is less than 1;
It is that the cloud terminal configures resource according to the resource quota of the cloud terminal.
2. the resource allocation methods of cloud platform as described in claim 1, which is characterized in that described to obtain matching for the cloud terminal
The step of volume coefficient includes:
The quota coefficient of the cloud terminal is obtained according to the resource allocation request.
3. the resource allocation methods of cloud platform as described in claim 1, which is characterized in that described to obtain matching for the cloud terminal
The step of volume coefficient includes:
Obtain the weight of the cloud terminal and the surplus resources quota of the superior agency quotient;
Matching for the cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Volume coefficient.
4. the resource allocation methods of cloud platform as described in claim 1, which is characterized in that described to obtain matching for the cloud terminal
The step of volume coefficient includes:
Judge the quota coefficient with the presence or absence of the cloud terminal in the resource allocation request;
When, there are when the quota coefficient of the cloud terminal, being obtained described in the resource allocation request in the resource allocation request
The quota coefficient of cloud terminal;
When the quota coefficient of the cloud terminal is not present in the resource allocation request, institute in the resource allocation request is obtained
State the weight of cloud terminal and the surplus resources quota of the superior agency quotient;
Matching for the cloud terminal is calculated according to the surplus resources quota of the weight of the cloud terminal and the superior agency quotient
Volume coefficient.
5. the resource allocation methods of cloud platform as described in claim 1, which is characterized in that the money according to the cloud terminal
Before source quota is the step of cloud terminal configures resource, further include:
The surplus resources quota for obtaining the superior agency quotient, judges whether the resource quota of the cloud terminal is less than or equal to institute
State the surplus resources quota of superior agency quotient;
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, described is executed
Resource quota according to the cloud terminal is the step of cloud terminal configures resource.
6. the resource allocation methods of cloud platform as claimed in claim 5, which is characterized in that the money for judging the cloud terminal
After the step of whether source quota is less than or equal to the surplus resources quota of the superior agency quotient, further include:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, the first prompt letter is generated
Breath.
7. the resource allocation methods of cloud platform as claimed in claim 6, which is characterized in that the first prompt message of the generation
Before step, further include:
When the resource quota of the cloud terminal is more than the surplus resources quota of the superior agency quotient, according to the superior agency
The surplus resources quota of quotient is that the cloud terminal configures resource.
8. the resource allocation methods of cloud platform as claimed in claim 5, which is characterized in that the money for judging the cloud terminal
After the step of whether source quota is less than or equal to the surplus resources quota of the superior agency quotient, further include:
When the resource quota of the cloud terminal is less than or equal to the surplus resources quota of the superior agency quotient, the cloud is obtained
Terminal resource quota ready for use;
Judge whether the resource quota of the cloud terminal is greater than or equal to the cloud terminal resource quota ready for use;
When the resource quota of terminal resource quota ready for use more than or equal to the cloud terminal, execute described according to institute
The resource quota for stating cloud terminal is the step of cloud terminal configures resource;
When the resource quota of terminal resource quota ready for use less than the cloud terminal, the second prompt message is generated.
9. the resource allocation methods of cloud platform as described in claim 1, which is characterized in that described true according to resource allocation request
After the step of fixed resource allocation request corresponding cloud terminal to be allocated, further include:
Judge that the cloud terminal whether there is superior agency quotient;
When there are the resource quotas for when superior agency quotient, executing the superior agency quotient for obtaining the cloud terminal for the cloud terminal
And the quota coefficient of the cloud terminal, according to the resource quota of the superior agency quotient and the quota coefficient of the cloud terminal
The step of determining the resource quota of the cloud terminal;
When superior agency quotient is not present in the cloud terminal, the resource quota of the cloud platform and matching for the cloud terminal are obtained
Volume coefficient determines that the resource of the cloud terminal is matched according to the quota coefficient of the resource quota of the cloud platform and the cloud terminal
Volume.
10. such as the resource allocation methods of claim 1-9 any one of them cloud platforms, which is characterized in that described in the basis
Before the resource quota of cloud terminal is the step of cloud terminal configures resource, further include:
Lock resource quota database, wherein when configuring resource for the cloud terminal, in the resource quota data of the cloud platform
The resource quota that the cloud terminal is updated in library unlocks the resource quota database after configuring resource for the cloud terminal.
11. a kind of resource allocation device of cloud platform, which is characterized in that the resource allocation device of the cloud platform includes:Storage
Device, processor and it is stored in the resource allocator that can be run on the memory and on the processor, the resource is matched
The resource allocation of the cloud platform as described in any one of claims 1 to 10 is realized when volume management program is executed by the processor
The step of method.
12. a kind of computer readable storage medium, which is characterized in that be stored with resource point on the computer readable storage medium
The cloud platform as described in any one of claims 1 to 10 is realized with program, when the resource allocator is executed by processor
Resource allocation methods the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810498166.9A CN108667940B (en) | 2018-05-22 | 2018-05-22 | Resource allocation method and device of cloud platform and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810498166.9A CN108667940B (en) | 2018-05-22 | 2018-05-22 | Resource allocation method and device of cloud platform and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108667940A true CN108667940A (en) | 2018-10-16 |
CN108667940B CN108667940B (en) | 2021-04-09 |
Family
ID=63776539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810498166.9A Active CN108667940B (en) | 2018-05-22 | 2018-05-22 | Resource allocation method and device of cloud platform and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108667940B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111028931A (en) * | 2019-12-11 | 2020-04-17 | 医渡云(北京)技术有限公司 | Medical data processing method and device, electronic equipment and storage medium |
CN111064602A (en) * | 2019-12-02 | 2020-04-24 | 紫光云技术有限公司 | Resource quota management method under public cloud platform |
CN111240836A (en) * | 2020-01-06 | 2020-06-05 | 北京百度网讯科技有限公司 | Computing resource management method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841595A (en) * | 2012-09-27 | 2012-12-26 | 南京需求响应节能科技有限公司 | Multi-stage resource scheduling management system |
CN103516623A (en) * | 2012-06-25 | 2014-01-15 | 中兴通讯股份有限公司 | Resource distribution method and system |
CN103888542A (en) * | 2014-01-17 | 2014-06-25 | 汉柏科技有限公司 | Method and system for cloud computing resource allocation |
CN104639626A (en) * | 2015-01-28 | 2015-05-20 | 华侨大学 | Multi-level load forecasting and flexible cloud resource configuring method and monitoring and configuring system |
US20170318083A1 (en) * | 2016-04-27 | 2017-11-02 | NetSuite Inc. | System and methods for optimal allocation of multi-tenant platform infrastructure resources |
CN107743611A (en) * | 2015-04-29 | 2018-02-27 | 微软技术许可有限责任公司 | The optimum allocation of dynamic cloud computing platform resource |
CN108023836A (en) * | 2017-10-31 | 2018-05-11 | 上海华为技术有限公司 | A kind of resource allocation methods and access network equipment |
US20180137445A1 (en) * | 2016-11-14 | 2018-05-17 | Apptio, Inc. | Identifying resource allocation discrepancies |
-
2018
- 2018-05-22 CN CN201810498166.9A patent/CN108667940B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516623A (en) * | 2012-06-25 | 2014-01-15 | 中兴通讯股份有限公司 | Resource distribution method and system |
CN102841595A (en) * | 2012-09-27 | 2012-12-26 | 南京需求响应节能科技有限公司 | Multi-stage resource scheduling management system |
CN103888542A (en) * | 2014-01-17 | 2014-06-25 | 汉柏科技有限公司 | Method and system for cloud computing resource allocation |
CN104639626A (en) * | 2015-01-28 | 2015-05-20 | 华侨大学 | Multi-level load forecasting and flexible cloud resource configuring method and monitoring and configuring system |
CN107743611A (en) * | 2015-04-29 | 2018-02-27 | 微软技术许可有限责任公司 | The optimum allocation of dynamic cloud computing platform resource |
US20170318083A1 (en) * | 2016-04-27 | 2017-11-02 | NetSuite Inc. | System and methods for optimal allocation of multi-tenant platform infrastructure resources |
US20180137445A1 (en) * | 2016-11-14 | 2018-05-17 | Apptio, Inc. | Identifying resource allocation discrepancies |
CN108023836A (en) * | 2017-10-31 | 2018-05-11 | 上海华为技术有限公司 | A kind of resource allocation methods and access network equipment |
Non-Patent Citations (2)
Title |
---|
CHAOYI ZHANG,MUQING WU,JINGFANG SU,LINLIN LUAN: ""The Fairness Resource Distribution Algorithm for OFDMA System"", 《2011 7TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, NETWORKING AND MOBILE COMPUTING》 * |
雷创: ""基于多租户数据中心的虚拟集群资源分配研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111064602A (en) * | 2019-12-02 | 2020-04-24 | 紫光云技术有限公司 | Resource quota management method under public cloud platform |
CN111064602B (en) * | 2019-12-02 | 2022-04-05 | 紫光云技术有限公司 | Resource quota management method under public cloud platform |
CN111028931A (en) * | 2019-12-11 | 2020-04-17 | 医渡云(北京)技术有限公司 | Medical data processing method and device, electronic equipment and storage medium |
CN111028931B (en) * | 2019-12-11 | 2023-08-22 | 医渡云(北京)技术有限公司 | Medical data processing method and device, electronic equipment and storage medium |
CN111240836A (en) * | 2020-01-06 | 2020-06-05 | 北京百度网讯科技有限公司 | Computing resource management method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108667940B (en) | 2021-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881512B (en) | CTDB virtual IP balance distribution method, device, equipment and medium | |
CN108667940A (en) | Resource allocation methods, device and the computer readable storage medium of cloud platform | |
CN105242983B (en) | A kind of date storage method and a kind of data storage management service device | |
CN102835068A (en) | Method and apparatus for managing reallocation of system resources | |
CN110113369A (en) | A kind of method for authenticating of based role permission control | |
CN109358967A (en) | A kind of ME platform APP instantiation moving method and server | |
CN108717379A (en) | Electronic device, distributed task dispatching method and storage medium | |
CN110297698A (en) | A kind of multipriority dynamic current limiting method, apparatus, server and storage medium | |
US20110035499A1 (en) | Discontinuous access management method using waiting ticket for resource allocation control, waiting ticket management method, and resource allocation control method | |
CN106533961A (en) | Flow control method and device | |
CN105141589B (en) | A kind of token of more examples shares the method and system with safeguarding | |
CN110673787A (en) | Volume configuration method and device | |
CN104572484B (en) | Memory allocation method, memory allocation device and terminal | |
CN112003931B (en) | Method and system for deploying scheduling controller and related components | |
CN108933675B (en) | Conference resource allocation method, device and storage medium | |
CN107770296B (en) | Method and device for allocating addresses | |
CN108718327A (en) | A kind of license resources dispatching method and system | |
CN109039694A (en) | A kind of the global network resource allocation methods and device of service-oriented | |
CN109933959B (en) | License control method and related equipment | |
CN104657240B (en) | The Failure Control method and device of more kernel operating systems | |
CN109660379B (en) | Network method, system and terminal | |
CN109598411A (en) | A kind of processing method and electronic equipment of product design task | |
CN110516922B (en) | Method and device for distributing data processing objects | |
CN102112978A (en) | Resource deployment management | |
CN108768890B (en) | Multi-tenant resource multiplexing method and device in SDN network and controller |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200611 Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park building A1 layer Applicant after: SANGFOR TECHNOLOGIES Inc. Address before: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park A1 building five floor Applicant before: Shenxin network technology (Shenzhen) Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |