CN111338786A - Quota management method and device for cloud platform resources and computer equipment - Google Patents

Quota management method and device for cloud platform resources and computer equipment Download PDF

Info

Publication number
CN111338786A
CN111338786A CN201910763732.9A CN201910763732A CN111338786A CN 111338786 A CN111338786 A CN 111338786A CN 201910763732 A CN201910763732 A CN 201910763732A CN 111338786 A CN111338786 A CN 111338786A
Authority
CN
China
Prior art keywords
resource
resources
request
management
resource pool
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.)
Pending
Application number
CN201910763732.9A
Other languages
Chinese (zh)
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.)
Haitong Securities Co ltd
Original Assignee
Haitong Securities 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 Haitong Securities Co ltd filed Critical Haitong Securities Co ltd
Priority to CN201910763732.9A priority Critical patent/CN111338786A/en
Publication of CN111338786A publication Critical patent/CN111338786A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A cloud platform resource management method, a device, a storage medium and computer equipment are provided, wherein the cloud platform resource management method comprises the following steps: receiving a resource acquisition request sent by a user terminal, wherein the resource acquisition request carries requester information, a request performance type and a request occupation amount; inquiring the callable resources corresponding to the requested performance types in a management resource pool, wherein the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance types; acquiring the number of the available resources equal to the request occupation amount as target resources; establishing a contact between requester information and a target resource, and generating an occupation message according to the contact; and returning the occupation message to the user terminal. The quota management granularity of the cloud platform can be flexibly adjusted according to the occupation requirement of the user.

Description

Quota management method and device for cloud platform resources and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a quota management method and device for cloud platform resources and computer equipment.
Background
With the development of computer technology and network technology, many software manufacturers can provide platform-like services for users, wherein a cloud platform becomes a wide enterprise application-like service, and users can occupy software and hardware devices in the cloud platform to perform their own system architecture or application development. Occupancy
Quota is used as an important means for enterprise IT resource management, and is widely applied to control and management of cloud platform resource use. On one hand, the resource use management of the cloud platform can be carried out from different user levels, and on the other hand, the granularity management and control of the resource use can be carried out from different dimensions. However, many challenges are faced in the process of performing cloud resource usage control management through quotas, and specifically, the following aspects are included: the appearance of cloud computing resources increases the types of enterprise IT resources, changes the traditional resource scheduling process and use mode, improves the flexibility of dynamic resource allocation, but also causes loose resource use limit and low resource quota utilization rate, and causes a plurality of resource quotas to be in an allocated unused state. Based on the reasonable budget in the early stage of project traffic, how to accurately predict and guarantee reasonable configuration of the demand of cloud platform resources, and how to apply if resources need to be added in the later stage of the project are all challenges encountered in the cloud computing resource management process. The problems that how to ensure that the use of the existing resources of a user is not influenced and how to ensure that new resources can be normally used are solved are the long-term capacity expansion and addition of cloud computing resources inside an enterprise, the addition of a data center, the addition of an area and the like. Therefore, a new quota management system needs to be established, flexibility and strictness of quota management are balanced, and flexibility in both platform quota management and user use is realized.
Disclosure of Invention
The technical problem to be solved by the invention is how to provide a quota management method of cloud platform resources, which can flexibly adjust quota management granularity according to the occupation requirement of a user.
In order to solve the technical problem, an embodiment of the present invention provides a quota management method for cloud platform resources, including: receiving a resource acquisition request sent by a user terminal, wherein the resource acquisition request carries requester information, a request performance type and a request occupation amount; inquiring the callable resources corresponding to the request performance type in a management resource pool, wherein the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance type; acquiring the callable resources with the quantity equal to the request occupation quantity as target resources; establishing a contact between the requester information and the target resource, and generating an occupation message according to the contact; and returning the occupation message to the user terminal.
Optionally, the generation manner of the management resource pool includes: acquiring initial resources from the initial resource pool; acquiring a preset classification rule, classifying the acquired initial resources according to the preset classification rule, wherein the preset classification rule is formulated according to the performance type; and storing the classified initial resources into the management resource pool.
Optionally, after acquiring the initial resource from the initial resource pool, the method further includes: obtaining a type label corresponding to each initial resource; the acquiring a preset classification rule, and classifying the acquired initial resource according to the preset classification rule, includes: storing the initial resource into the management resource pool according to the corresponding type label; the querying and managing resources that are available for use and correspond to the request performance type in the resource pool comprises: obtaining a type label corresponding to the request performance type; and acquiring the callable resource from the management resource pool according to the type label corresponding to the request performance type.
Optionally, after querying the callable resource corresponding to the request performance type in the management resource pool, the method further includes: detecting whether the number of callable resources is less than the request footprint; when the number of the calling resources is smaller than the request occupation amount, generating an expansion request; and sending the extension request to a management terminal so that the management terminal increases the callable resource in the management resource pool according to the extension request.
Optionally, the method further includes: when the initial resource pool is detected to be updated, acquiring updating data from the initial resource pool; and updating the management resource pool according to the updating data.
Optionally, after returning the occupancy message to the user terminal, the method further includes: receiving a release message sent by the user terminal according to the occupation message, wherein the release message carries an identifier of a release resource; and positioning the released resources according to the identifier of the released resources, and releasing the contact between the requester information and the released resources.
Optionally, after receiving the resource obtaining request sent by the user terminal, the method further includes: performing authority verification on the requester information, and if the verification is passed, acquiring the residual occupancy according to the requester information; detecting whether the request occupancy is greater than the residual occupancy, if so, generating an occupancy error request; and sending the occupation error request to the user terminal.
An embodiment of the present invention further provides a quota management apparatus for cloud platform resources, including: the system comprises a request receiving module, a resource obtaining module and a resource obtaining module, wherein the request receiving module is used for receiving a resource obtaining request sent by a user terminal, and the resource obtaining request carries requester information, a request performance type and a request occupation amount; the query module is used for querying the callable resources corresponding to the request performance types in a management resource pool, and the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance types; a target resource obtaining module, configured to obtain the callable resources whose number is equal to the request occupation amount as target resources; the occupation module is used for establishing the contact between the requester information and the target resource and generating an occupation message according to the contact; and the occupation returning module is used for returning the occupation message to the user terminal.
The embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores computer instructions capable of running on the processor, and the processor executes the computer instructions to perform the steps of the method.
The embodiment of the invention also provides a storage medium, wherein computer instructions are stored on the storage medium, and the computer instructions execute the steps of the method when running.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a quota management method for cloud platform resources, which comprises the following steps: receiving a resource acquisition request sent by a user terminal, wherein the resource acquisition request carries requester information, a request performance type and a request occupation amount; inquiring the callable resources corresponding to the request performance type in a management resource pool, wherein the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance type; acquiring the callable resources with the quantity equal to the request occupation quantity as target resources; establishing a contact between the requester information and the target resource, and generating an occupation message according to the contact; and returning the occupation message to the user terminal. Compared with the prior art, the resource pool is managed to manage various resource types of the cloud platform according to the performance type facing the user, the user can apply for resource occupation from the cloud platform, and the occupation is successful after the audit of the cloud platform. The cloud platform can adjust the performance type of the resources according to the occupation requirement of the user, and flexible granularity management of the resources in the cloud platform is achieved, so that the quota management method of the cloud platform resources, which can flexibly adjust the quota management granularity according to the occupation requirement of the user, is provided.
Further, the initial resources in all the initial resource pools in the cloud platform are collected, the collected initial resources are classified and stored by setting a preset classification rule corresponding to the performance type, and a management resource pool for managing the stored resources according to the performance type is obtained. If the performance type of the resources of the management resource pool needs to be adjusted, the preset classification rule is adjusted.
Further, when the summarized initial resources are classified, the classification can be realized by establishing type tags corresponding to the performance types. And after the classified initial resources are stored in the management resource pool, the management resource pool can also manage the resources stored in the management resource pool according to the type label. The initial resource collection and classification and the resource management of the resource pool are unified through a set of set type labels, and the setting and the modification of the quota management of the cloud platform resources in the application can be finished through the setting and the modification of the type labels.
Further, when the resources in the cloud platform cannot meet the occupation requirements of the user, an extension request for adding corresponding performance type resources in the cloud platform can be sent to the management terminal, and the management terminal is informed that the situation that the occupied resources are insufficient may exist.
Furthermore, a mechanism for automatically updating the management resource pool according to the updating of the initial resource pool can be set, the management resource pool does not need to be manually updated every time the initial resource of the cloud platform changes, and the flexibility of the quota management method for the cloud platform resources is greatly improved.
Further, after the user finishes using the resources occupied in the cloud platform, the user can automatically lift the release message to the cloud platform to release the occupation relation.
Further, requester information authority verification is added to a resource acquisition request lifted by a user terminal, so that a user without an occupation authority is prevented from accessing the cloud platform; and the limit of the occupied amount of the user is added to limit the occupied amount of the user.
Drawings
Fig. 1 is an application schematic diagram of a quota management method for cloud platform resources in an embodiment of the present invention;
fig. 2 is a flowchart of a quota management method for cloud platform resources according to an embodiment of the present invention;
FIG. 3 is a flowchart of a manner of generating a management resource pool according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a quota management apparatus for cloud platform resources according to an embodiment of the present invention.
Detailed Description
At present, a mainstream cloud management platform implements quota management on user occupation through a multi-level user resource management mode, and the cloud platform generally adopts the following two modes for quota management on a user. In the first mode, the quota is directly set for the multi-level users, and the use amount of cloud computing resources in the users is limited based on the quota, so that multi-level hierarchical management of the quota is realized. However, in this method, the resource quota of the user cannot be set and managed in the resource granularity, and the refinement degree of the resource usage quota limit cannot be controlled. In the second mode, in the quota management process, a plurality of resource pools are introduced to the cloud management platform to respectively manage the quotas of each resource type, and generally, the user quotas on the cloud management platform are bound with the resource pools. However, the type of resource configuration in this manner is limited by the number of "resource pools," which results in a fixed granularity of quota management, and resource quota management can only be adjusted according to the kind of resource pools used by the user.
As seen in the background art, the quota management scheme for resource management of the current cloud platform generally has the following disadvantages, and further improvement and promotion are urgently needed: on one hand, the granularity of resource quota control is ensured to be appropriate, and on the other hand, the flexibility of user resource use can be ensured.
In order to solve the technical problem, embodiments of the present invention provide a quota management method and apparatus for cloud platform resources, and a computer device.
The quota management method for the cloud platform resources provided by the embodiment of the invention can be applied to an application environment as shown in fig. 1. The user terminal 102 communicates with the cloud platform 104 through a network, and the cloud platform 104 communicates with the management terminal 106 through a network. When a user of the cloud platform 104 needs to occupy resources of the cloud platform 104, the user terminal 102 may lift a resource acquisition request to the cloud platform 104, and the cloud platform 104 examines the resource acquisition request to determine whether the occupation requirement of the user is met. The management terminal 106 can manage the functions of the cloud platform 104, and the cloud platform 104 can also send the running problems to the management terminal 106, so that the management terminal 106 can perform error troubleshooting and processing on the running problems of the cloud platform 104. The user terminal 102 and the management terminal 106 may be, but are not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the cloud platform 104 may be configured to perform functions by using an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a quota management method for cloud platform resources is provided, which specifically includes the following steps:
s202, receiving a resource acquisition request sent by a user terminal, wherein the resource acquisition request carries requester information, a request performance type and a request occupation amount.
The resource acquisition request is a request sent to the cloud platform when a user of the cloud platform needs to apply for occupation of certain hardware or software resources to the cloud platform. The cloud platform can provide a webpage for a user to access, the user terminal accesses the webpage, the type and the quantity of resources required to be occupied at this time are input into the webpage, and a resource acquisition request is raised to the cloud platform. The cloud platform end can also provide an APP client for the downloading and installation of the user terminal, and after the user terminal installs the client, the resource obtaining request is lifted at the client.
Optionally, after the user has a cooperative relationship with the cloud platform, the cloud platform may distribute access credentials, such as credentials of a user name and a password, to the user terminal, and the user terminal may access a web page or log in the APP client through the access credentials.
The requester information is information characterizing the resource acquisition request initiator, and may be a name of the user, a user number, or information that the other cloud platform can recognize the user.
The performance type refers to a resource type which is obtained after equipment or services in the cloud platform are packaged and is used for a cloud platform user to independently select and occupy. The performance type may be a type facing a user plane, which is obtained by collecting and classifying resources that can be provided by Infrastructure of an Infrastructure as a Service (IaaS) layer of the cloud platform. The cloud platform can define the performance types of the accessed resources according to the working performance of the resources, and the resources of the same resource type can be divided into a plurality of performance types according to the different working performances of the resources. For example, the memory resources of the cloud platform are divided into high-speed memory resources, general memory resources, low-speed memory resources and the like according to the reading and storing speeds of the memory, and the computing resources of the cloud platform are divided into high-speed computing resources, general computing resources, low-speed computing resources and the like according to the computing capacity of the processor. The request performance type is a type that a user initiating a resource acquisition request wants to occupy a resource in the cloud platform this time, and is a high-speed memory if a user needs to occupy a 100G high-speed memory.
The request occupation amount is the quantity of resources of the request performance type which the user wants to occupy at this time; in the above example, when a user needs to occupy 100G of high-speed memory, the request occupancy amount is 100G.
Specifically, when a user terminal needs to occupy a certain amount of resources from a cloud platform, a resource acquisition request can be initiated to the cloud platform, wherein the resource acquisition request at least comprises requester information, a request performance type and a request occupation amount; the cloud platform can audit the resource acquisition request and judge whether the corresponding resource can be occupied for the user.
And S204, inquiring the callable resources corresponding to the requested performance types in the management resource pool, wherein the management resource pool is a resource pool for managing the initial resources in the initial resource pool of the cloud platform according to the performance types.
The resource that can be called is a resource corresponding to the request performance type of the user, that is, a resource corresponding to the request performance type that can be occupied by the user in the cloud platform. If the performance type of the current request of the user is the high-speed memory, the cloud platform queries the remaining amount of the high-speed memory which can be occupied currently in the cloud platform from the management resource pool to serve as the callable resource.
The management resource pool is established for centralized management of resources in the cloud platform according to performance types, and an initial resource pool for managing different resource types is usually arranged in the cloud platform; for example, the cloud platform may include an initial resource pool for managing a memory and an initial resource pool for managing a CPU, and the initial resource pool may automatically detect a change of a corresponding resource in the cloud platform. For example, when a computer accesses the cloud platform, the computer can provide 100G of memory and 1 CPU, and then the initial resource pool for managing the memory in the cloud platform reports and increases 100G of memory in the initial resource pool for managing the memory by detecting the access of the computer, and reports and increases 1 CPU in the initial resource pool for managing the CPU.
Establishing a management resource pool for managing all resources occupied by users in the cloud platform according to the performance types, and acquiring the callable resources in the cloud platform corresponding to the requested performance types in the management resource pool according to the requested performance types after the cloud platform receives the occupation requests of the users.
And S206, acquiring the callable resources with the number equal to the request occupation amount as target resources.
After acquiring the tunable resources corresponding to the requested resource types from the management resource pool, the cloud platform acquires the quantity of the occupied request quantities from the tunable resources, and the quantity is used as the current occupied user resources, namely the target resources.
S208, establishing the contact between the requester information and the target resource, and generating an occupation message according to the contact.
The occupation message is a message for informing the requester that occupation is successful. The network message may be a network message returned to the webpage or the APP client by the cloud platform, or may be sent to the user terminal in the form of a short message or an email.
The cloud platform establishes a relation between requester information of a user and a target resource, namely, establishes an occupation relation between the user and the target resource. The occupation relationship can mark that the target resource is occupied in the management resource pool, and the occupation party can be represented by the information of the request party, so that other users can not occupy the target resource repeatedly.
S210, the occupation message is returned to the user terminal.
And the cloud platform sends the successful occupation message of the resources to the user terminal to inform the user, and the user can use the occupied resources to perform function deployment.
The quota management method for cloud platform resources may be applied to the system shown in fig. 1, for example, performed by the cloud platform 104 in fig. 1. According to the quota management method for the cloud platform resources, the resource quota which can be occupied by the user in the cloud platform is managed through the management resource pool according to the performance type of the resources, if the user needs to occupy a certain amount of resources, the user terminal can send a resource acquisition request to the cloud platform to lift the occupation requirement, and the cloud platform audits the resource acquisition request through the requester information, the request performance type and the request occupation amount in the resource acquisition request. The specific auditing process is as follows: and acquiring the callable resources corresponding to the request performance types through the management resource pool, acquiring the target resources with the quantity equal to the request occupation quantity from the callable resources, and allocating the target resources to the requester for use. And after the verification is successful, returning an occupation message to the user terminal to inform the user that the resource occupation is successful. According to the method, the management of multiple resource types of the cloud platform is realized according to the performance type facing the user by the management resource pool, the user can directly apply for resource occupation from the cloud platform, and the occupation is successful after the audit of the cloud platform. The cloud platform can adjust the performance type of the resources according to the occupation requirement of the user, and flexible granularity management of the resources in the cloud platform is achieved, so that the quota management method of the cloud platform resources, which can flexibly adjust the quota management granularity according to the occupation requirement of the user, is provided.
In one embodiment, referring to fig. 3, fig. 3 provides a flow diagram of a manner of generating a management resource pool in one embodiment. The generation method of the management resource pool may specifically include the following steps:
step S302, obtaining initial resources from the initial resource pool.
Specifically, all resources of the cloud platform that can be occupied by the user are summarized, and initial resources in all initial resource pools in the cloud platform can be summarized.
Step S304, acquiring a preset classification rule, and classifying the acquired initial resources according to the preset classification rule, wherein the preset classification rule is formulated according to the performance type.
The preset classification rule is a rule for setting the performance type of the initial resource according to a common user occupation request after classifying the initial resource in the initial resource pool. The preset classification rule may be a rule formulated according to a matching degree of the occupation demand of the user and the performance of the initial resource. For example, the memory may be classified into a high-speed memory, a general memory, a low-speed memory, and the like according to a model of a device providing the memory, a read/write speed, and the like.
The resources in the management resource pool are a set of initial resources in each initial resource pool of the cloud platform; firstly, acquiring the type and the quantity of initial resources, and information such as equipment for providing the initial resources from each initial resource pool of the cloud platform; and reclassifying the acquired initial resources according to the performance types of the initial resources according to a preset classification rule.
And step S306, storing the classified initial resources into a management resource pool.
And storing the classified initial resources into a management resource library, so that the management resource pool can manage the resources according to the classified performance types.
In this embodiment, the initial resources in all the initial resource pools in the cloud platform are collected, and the collected initial resources are classified and stored by setting a preset classification rule corresponding to the performance type, so as to obtain a management resource pool for managing the resources stored therein according to the performance type. If the performance type of the resource in the management resource pool needs to be adjusted, the preset classification rule can be directly adjusted.
In an embodiment, with continuing reference to fig. 2 and fig. 3, after obtaining the initial resource from the initial resource pool in step S302, the method may further include: and acquiring a type label corresponding to each initial resource. The step S304 of obtaining a preset classification rule, and classifying the obtained initial resource according to the preset classification rule may include: and storing the initial resource into a management resource pool according to the corresponding type label. The querying, managing the resources that are made available and correspond to the requested performance type in the resource pool in step S204 in fig. 2 may include: obtaining a type label corresponding to the request performance type; and acquiring the callable resource from the management resource pool according to the type label corresponding to the request performance type.
Wherein the type label is an identification for classifying the summarized initial resource. A plurality of bytes can be added to the file name of the initial resource for representing type labels, and other label forms which can be identified by the cloud platform can also be adopted.
Because the initial resources in each initial resource pool belong to the same type of resource, when the initial resources in each initial resource pool are obtained, the type labels corresponding to the preset classification rules can be marked on the initial resources in each initial resource pool. Subsequently, all the obtained initial resources may be classified according to the type tags of the initial resources, and in step S204, the callable resources corresponding to the requested performance types in the management resource pool are queried, or the query may be performed according to the type tags. Namely, the management of the performance type of each resource in the cloud platform is realized by setting a type label for classification.
In this embodiment, a type tag corresponding to each performance type is established, classification of initial resources in all initial resource pools of the cloud platform is achieved, and after the classified initial resources are stored in a management resource pool, the management resource pool can also manage the resources stored in the management resource pool according to the type tag; the initial resource collection and classification and the resource management of the resource pool are unified through a set of set type labels, and the setting and the modification of the quota management of the cloud platform resources in the application can be finished through the setting and the modification of the type labels.
In an embodiment, referring to fig. 1 and fig. 2, after the querying the management resource pool in step S204 to request the callable resource corresponding to the performance type, the method may further include: detecting whether the number of the callable resources is less than the request occupation amount; when the quantity of the calling resources is smaller than the request occupation quantity, generating an expansion request; and sending the extension request to the management terminal so that the management terminal can increase the callable resources in the management resource pool according to the extension request.
The expansion request is a request sent to the management terminal 106 for adding corresponding performance type resources in the cloud platform when one or more performance type resources in the management resource pool cannot meet the occupation requirement of the cloud platform user. The expansion request can be in a format which can be recognized by a management terminal such as network messages, mails and short messages.
Specifically, after the cloud platform queries the callable resources corresponding to the requested performance types in the management resource pool, if it is detected that the number of remaining callable resources in the management resource pool is smaller than the request occupation amount occupied by the user, an extension request may be generated and sent to the management terminal 106, and the management terminal may determine whether callable resources need to be added according to the operation condition of the cloud platform.
In this embodiment, when the resources in the cloud platform cannot meet the occupation requirement of the user, an extension request for adding corresponding performance type resources in the cloud platform may be sent to the management terminal, so as to inform the management terminal that the situation of insufficient occupied resources may exist.
In an embodiment, the quota management method for cloud platform resources may further include: when the initial resource pool is detected to be updated, acquiring update data from the initial resource pool; and updating the management resource pool according to the updating data.
The update data is the data in which the initial resource pool is changed when the initial resource pool is updated. For example, when a new device is accessed in the cloud platform, the resource provided by the device reports a notification of a newly added initial resource in the initial resource pool corresponding to the resource, and the newly added initial resource is the update data.
Specifically, in the quota management method for cloud platform resources of the present invention, each initial resource pool of the cloud platform is monitored, when the initial resource is updated, the update data is automatically detected, and the management resource pool is automatically updated according to the update data.
When a new device is accessed in the cloud platform, the step of updating the management resource pool according to the update data may be to classify the initial resource corresponding to the new access device by a preset classification rule to obtain the performance type of the initial resource, and add the newly added initial resource to the management resource pool according to the performance type of the newly added initial resource, so that the management resource pool can manage the resource according to the performance type of the newly added initial resource.
In this embodiment, a mechanism is set for automatically updating the management resource pool according to the update of the initial resource pool, and the management resource pool does not need to be manually updated each time the initial resource of the cloud platform changes, so that the flexibility of the cloud platform resource quota management method of the present invention is greatly improved.
In one embodiment, after returning the occupation message to the user terminal, the method further includes: receiving a release message sent by the user terminal according to the occupation message, wherein the release message carries an identifier of a release resource; and positioning the released resources according to the identifier of the released resources, and releasing the contact between the requester information and the released resources.
The release message is a message which is sent to the cloud platform by the user terminal and is used for enabling the cloud platform to release the occupation relation between the user and the resources occupied by the user. The release message may be in the form of a web page sent by the user terminal or a network message sent by the APP client.
The released resource is a resource for the user to release the occupation relationship at this time, and the released resource is to be included in the target resource occupied by the user terminal. The released resource may be all target resources associated with the requester information corresponding to the user terminal, or may be a part of the target resources.
The identifier of the released resource is the identifier contained in the release message and used for characterizing the released resource; may refer to a device name or code number, etc. that releases the resource, which is recognizable by the cloud platform.
After the user finishes using the resources occupied in the cloud platform, a release message can be sent to the cloud platform, so that the cloud platform can release the occupied relation between the user and the resources occupied by the user, the release message should include the identifier of the resources of which the occupied relation is released, namely the identifier of the resources, so that the cloud platform can position the resources required to be released by the user according to the identifier of the resources released, and the relation between the requester information corresponding to the user terminal and the released resources is released, so that the occupied relation between the user and the released resources is released.
In this embodiment, after the user finishes using the resources occupied in the cloud platform, the release message can be automatically lifted to the cloud platform, and the occupation relationship is removed.
In an embodiment, please continue to refer to fig. 2, after receiving the resource acquisition request sent by the user terminal in step S202, the method may further include: performing authority verification on the information of the requester, and if the verification is passed, acquiring the residual occupancy amount according to the information of the requester; detecting whether the request occupancy is greater than the residual occupancy, if so, generating an occupancy error request; and sending an occupation error request to the user terminal.
The remaining occupation amount is the amount of resources corresponding to the performance type of the cloud platform which can be occupied by the requester information currently. In order to avoid the excessive application of occupied resources by the users of the cloud platform, resource occupation amount can be distributed to the users according to the project details of the users, cooperation treaties and the like, and the resource acquisition requests which are excessively occupied by the users are refused.
The cloud platform can inquire the occupation amount of the user through the requester information in the resource acquisition request, after the cloud platform acquires the resource acquisition request, the occupation authority of the user is verified according to the requester information carried in the resource acquisition request, if the authority verification is passed, the user can occupy the resource in the cloud platform, the cloud platform further acquires the residual occupation amount of the resource of the user, and when the occupation amount of the request is detected to be larger than the residual occupation amount, an error request is generated to prompt the user that the user occupies the excess amount, and the user applies for occupying the resource in the amount range.
In addition, for the resource acquisition request which does not pass the information permission verification of the requester, the cloud platform can also return an occupation error message to the user terminal to prompt the user that the user does not have occupation permission.
In the embodiment, requester information authority verification is added to a resource acquisition request lifted by a user terminal, so that a user without access authority is prevented from accessing a cloud platform; and the limit of the resource occupation limit of the user is added to limit the occupation limit of the user.
In one embodiment, a management resource pool is added to basic resources accessed in an IaaS layer of a cloud platform, the resource management pool is applied to resource management of a global cloud platform, and the use dimension and the resource management granularity of the whole platform quota are initialized by adjusting the performance types of the resources in the management resource pool. During resource usage, adjustment of resource types is supported. An enterprise manager can flexibly define the performance type of the cloud platform, and finally faces the performance type to an end user. The self-defined performance type can establish a flexible tie relationship with the IaaS layer basic resources according to enterprise quota management requirements, so that mapping between the IaaS layer basic resources and the resources of the user-oriented performance type is realized, and a bridge between the basic resources and user occupation requirements is established.
In addition, hierarchical quota management can be realized based on a user management system of 'platform administrator-organization administrator-platform user', a fixed occupied quota is distributed for each hierarchy in the system, and the quota management system manages the resource usage. When a user in a certain project needs to occupy a certain quota of resources, the amount of the resources needed by the project can be determined through the project budget, and whether the occupation requirement of the user is met or not is determined through the hierarchical approval process. Members in the user management system can complete reasonable occupation of the resource quota without paying attention to the detailed information of the underlying physical resources of the cloud platform. Therefore, not only is the resource configuration reasonable, but also the resource waste is prevented, and the convenience of resource use is realized.
Optionally, in the resource using process, if the quota is sufficient, the user can directly apply for using the resource without performing an application approval process of the quota. And only when the user resource budget is over-limit, the quota application work order is filled in for approval, so that the application and approval times of the user are reduced, and the resource acquisition efficiency of the user is improved.
In order to strictly manage the resource quota in the cloud platform, logic cloud resource quota management can be realized on the cloud management platform, quota limitation is also performed on IaaS layer resources, two-stage quota management and control are realized, and resource waste is greatly reduced. Quota limitation is also performed on IaaS layer resources, namely quota management is performed on the basis of basic resources accessed by the IaaS layer of the cloud platform. Logical cloud resource quota management, namely quota management and control are completed on the basis of a user system on heterogeneous basic resources managed by the platform, the construction of resources at the bottom layer of the cloud platform is converted into user-oriented resource service types, the fine management requirement is met, and the service flexibility of a final user is improved; and based on the cloud platform basic resources and the resources corresponding to the performance types in the management resource pool, a two-layer quota management system is realized, and resource quota management is strictly controlled.
Referring to fig. 4, the present invention further provides a quota management apparatus for cloud platform resources, where the apparatus may include:
the request receiving module 100 is configured to receive a resource obtaining request sent by a user terminal, where the resource obtaining request carries requester information, a request performance type, and a request occupancy amount.
The query module 200 is configured to query the callable resource corresponding to the requested performance type in the management resource pool, where the management resource pool is a resource pool that manages the initial resource in the initial resource pool of the cloud platform according to the performance type.
And a target resource acquiring module 300, configured to acquire, as the target resource, the number of the callable resources equal to the request occupation amount.
The occupation module 400 is configured to establish a connection between the requester information and the target resource, and generate an occupation message according to the connection.
An occupation returning module 500, configured to return an occupation message to the user terminal.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the initial resource acquisition module is used for acquiring initial resources from the initial resource pool.
And the classification module is used for acquiring a preset classification rule, classifying the acquired initial resources according to the preset classification rule, wherein the preset classification rule is formulated according to the performance type.
And the resource pooling module is used for storing the classified initial resources into a management resource pool.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the label obtaining module is used for obtaining the type label corresponding to each initial resource.
And the classification module is also used for storing the initial resource into the management resource pool according to the corresponding type label.
Inquiring the callable resources corresponding to the request performance types in the management resource pool, wherein the method comprises the following steps:
the query module 200 may include:
and the request label unit is used for acquiring a type label corresponding to the request performance type.
And the tunable resource query unit is used for acquiring the tunable resource from the management resource pool according to the type label corresponding to the request performance type.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the quantity detection module is used for detecting whether the quantity of the callable resources is less than the request occupation quantity.
And the expansion request generating module is used for generating an expansion request when the quantity of the calling resources is less than the request occupation quantity.
And the expansion request sending module is used for sending the expansion request to the management terminal so that the management terminal can increase the callable resources in the management resource pool according to the expansion request.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the update detection module is used for acquiring update data from the initial resource pool when detecting that the initial resource pool is updated.
And the management resource pool updating module is used for updating the management resource pool according to the updating data.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the release message receiving module is used for receiving a release message sent by the user terminal according to the occupation message, wherein the release message carries the identifier of the release resource.
And the relation releasing module is used for positioning the released resources according to the identifiers of the released resources and releasing the relation between the requester information and the released resources.
In an embodiment, the quota management apparatus for cloud platform resources may further include:
and the permission verification module is used for performing permission verification on the information of the requester, and acquiring the residual occupancy amount according to the information of the requester if the verification is passed.
And the occupation error module is used for detecting whether the request occupation amount is larger than the residual occupation amount or not, and if so, generating an occupation error request.
And the error request sending module is used for sending the occupation error request to the user terminal.
For more contents of the working principle and the working mode of the quota management apparatus for cloud platform resources, reference may be made to the related descriptions in fig. 2 to fig. 3, which are not described herein again.
Further, the embodiment of the present invention further discloses a computer device, which includes a memory and a processor, where the memory stores computer instructions capable of running on the processor, and the processor executes the technical solutions of the methods in the embodiments shown in fig. 2 to fig. 3 when executing the computer instructions.
Further, the embodiment of the present invention also discloses a storage medium, on which computer instructions are stored, and when the computer instructions are executed, the method technical solutions in the embodiments shown in fig. 2 to fig. 3 are executed. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A quota management method for cloud platform resources is characterized by comprising the following steps:
receiving a resource acquisition request sent by a user terminal, wherein the resource acquisition request carries requester information, a request performance type and a request occupation amount;
inquiring the callable resources corresponding to the request performance type in a management resource pool, wherein the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance type;
acquiring the callable resources with the quantity equal to the request occupation quantity as target resources;
establishing a contact between the requester information and the target resource, and generating an occupation message according to the contact;
and returning the occupation message to the user terminal.
2. The method of claim 1, wherein the managing resource pool is generated in a manner that comprises:
acquiring initial resources from the initial resource pool;
acquiring a preset classification rule, classifying the acquired initial resources according to the preset classification rule, wherein the preset classification rule is formulated according to the performance type;
and storing the classified initial resources into the management resource pool.
3. The method of claim 2, wherein after obtaining the initial resource from the initial resource pool, further comprising:
obtaining a type label corresponding to each initial resource;
the acquiring a preset classification rule, and classifying the acquired initial resource according to the preset classification rule, includes:
storing the initial resource into the management resource pool according to the corresponding type label;
the querying and managing resources that are available for use and correspond to the request performance type in the resource pool comprises:
obtaining a type label corresponding to the request performance type;
and acquiring the callable resource from the management resource pool according to the type label corresponding to the request performance type.
4. The method of claim 1, wherein after querying the callable resource corresponding to the requested performance type in the managed resource pool, the method further comprises:
detecting whether the number of callable resources is less than the request footprint;
when the number of the calling resources is smaller than the request occupation amount, generating an expansion request;
and sending the extension request to a management terminal so that the management terminal increases the callable resource in the management resource pool according to the extension request.
5. The method of any one of claims 1 to 4, further comprising: when the initial resource pool is detected to be updated, acquiring updating data from the initial resource pool; and updating the management resource pool according to the updating data.
6. The method according to any of claims 1 to 4, wherein after returning the occupancy message to the user terminal, further comprising:
receiving a release message sent by the user terminal according to the occupation message, wherein the release message carries an identifier of a release resource;
and positioning the released resources according to the identifier of the released resources, and releasing the contact between the requester information and the released resources.
7. The method according to any one of claims 1 to 4, wherein after receiving the resource acquisition request sent by the user terminal, the method further comprises:
performing authority verification on the requester information, and if the verification is passed, acquiring the residual occupancy according to the requester information;
detecting whether the request occupancy is greater than the residual occupancy, if so, generating an occupancy error request;
and sending the occupation error request to the user terminal.
8. An apparatus for quota management of cloud platform resources, the apparatus comprising:
the system comprises a request receiving module, a resource obtaining module and a resource obtaining module, wherein the request receiving module is used for receiving a resource obtaining request sent by a user terminal, and the resource obtaining request carries requester information, a request performance type and a request occupation amount;
the query module is used for querying the callable resources corresponding to the request performance types in a management resource pool, and the management resource pool is a resource pool for managing initial resources in an initial resource pool of the cloud platform according to the performance types;
a target resource obtaining module, configured to obtain the callable resources whose number is equal to the request occupation amount as target resources;
the occupation module is used for establishing the contact between the requester information and the target resource and generating an occupation message according to the contact;
and the occupation returning module is used for returning the occupation message to the user terminal.
9. A computer device comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the method of any one of claims 1 to 7.
10. A storage medium having stored thereon computer instructions, wherein said computer instructions when executed perform the steps of the method of any of claims 1 to 7.
CN201910763732.9A 2019-08-19 2019-08-19 Quota management method and device for cloud platform resources and computer equipment Pending CN111338786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910763732.9A CN111338786A (en) 2019-08-19 2019-08-19 Quota management method and device for cloud platform resources and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910763732.9A CN111338786A (en) 2019-08-19 2019-08-19 Quota management method and device for cloud platform resources and computer equipment

Publications (1)

Publication Number Publication Date
CN111338786A true CN111338786A (en) 2020-06-26

Family

ID=71183528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910763732.9A Pending CN111338786A (en) 2019-08-19 2019-08-19 Quota management method and device for cloud platform resources and computer equipment

Country Status (1)

Country Link
CN (1) CN111338786A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269659A (en) * 2020-10-23 2021-01-26 苏州浪潮智能科技有限公司 Resource management method, system, electronic equipment and storage medium
CN112884382A (en) * 2021-04-14 2021-06-01 北京百度网讯科技有限公司 Resource quota management method, device, equipment and storage medium of cloud platform
CN112905342A (en) * 2021-02-07 2021-06-04 广州虎牙科技有限公司 Resource scheduling method, device, equipment and computer readable storage medium
CN112966256A (en) * 2021-02-01 2021-06-15 万翼科技有限公司 Equipment management method based on building information model and related device
CN113867937A (en) * 2021-08-29 2021-12-31 浪潮软件科技有限公司 Resource scheduling method and device for cloud computing platform and storage medium
WO2022213875A1 (en) * 2021-04-08 2022-10-13 华为技术有限公司 Memory expansion method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339233A (en) * 2010-07-15 2012-02-01 戴元顺 Cloud computing centralized management platform
CN102739771A (en) * 2012-04-18 2012-10-17 上海和辰信息技术有限公司 Cloud application integrated management platform and method supporting service fusion
CN102958166A (en) * 2011-08-29 2013-03-06 华为技术有限公司 Resource allocation method and resource management platform
CN103823717A (en) * 2014-01-22 2014-05-28 汉柏科技有限公司 Dynamic management method and dynamic management device for cloud computing resources
CN104657217A (en) * 2015-02-04 2015-05-27 南京理工大学紫金学院 Heterogeneous granularity classification-based cloud environment task scheduling method
CN105812175A (en) * 2016-03-07 2016-07-27 联想(北京)有限公司 Resource management method and resource management device
US9721212B2 (en) * 2014-06-04 2017-08-01 Qualcomm Incorporated Efficient on-device binary analysis for auto-generated behavioral models
CN109347676A (en) * 2018-11-02 2019-02-15 杭州云霁科技有限公司 A kind of isomery, integrated mixed cloud resource management platform
CN109783237A (en) * 2019-01-16 2019-05-21 腾讯科技(深圳)有限公司 A kind of resource allocation method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339233A (en) * 2010-07-15 2012-02-01 戴元顺 Cloud computing centralized management platform
CN102958166A (en) * 2011-08-29 2013-03-06 华为技术有限公司 Resource allocation method and resource management platform
CN102739771A (en) * 2012-04-18 2012-10-17 上海和辰信息技术有限公司 Cloud application integrated management platform and method supporting service fusion
CN103823717A (en) * 2014-01-22 2014-05-28 汉柏科技有限公司 Dynamic management method and dynamic management device for cloud computing resources
US9721212B2 (en) * 2014-06-04 2017-08-01 Qualcomm Incorporated Efficient on-device binary analysis for auto-generated behavioral models
CN104657217A (en) * 2015-02-04 2015-05-27 南京理工大学紫金学院 Heterogeneous granularity classification-based cloud environment task scheduling method
CN105812175A (en) * 2016-03-07 2016-07-27 联想(北京)有限公司 Resource management method and resource management device
CN109347676A (en) * 2018-11-02 2019-02-15 杭州云霁科技有限公司 A kind of isomery, integrated mixed cloud resource management platform
CN109783237A (en) * 2019-01-16 2019-05-21 腾讯科技(深圳)有限公司 A kind of resource allocation method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112269659A (en) * 2020-10-23 2021-01-26 苏州浪潮智能科技有限公司 Resource management method, system, electronic equipment and storage medium
CN112966256A (en) * 2021-02-01 2021-06-15 万翼科技有限公司 Equipment management method based on building information model and related device
CN112966256B (en) * 2021-02-01 2022-11-18 万翼科技有限公司 Equipment management method based on building information model and related device
CN112905342A (en) * 2021-02-07 2021-06-04 广州虎牙科技有限公司 Resource scheduling method, device, equipment and computer readable storage medium
CN112905342B (en) * 2021-02-07 2024-03-01 广州虎牙科技有限公司 Resource scheduling method, device, equipment and computer readable storage medium
WO2022213875A1 (en) * 2021-04-08 2022-10-13 华为技术有限公司 Memory expansion method and related device
CN112884382A (en) * 2021-04-14 2021-06-01 北京百度网讯科技有限公司 Resource quota management method, device, equipment and storage medium of cloud platform
CN112884382B (en) * 2021-04-14 2023-07-25 北京百度网讯科技有限公司 Resource quota management method, device and equipment of cloud platform and storage medium
CN113867937A (en) * 2021-08-29 2021-12-31 浪潮软件科技有限公司 Resource scheduling method and device for cloud computing platform and storage medium

Similar Documents

Publication Publication Date Title
CN111338786A (en) Quota management method and device for cloud platform resources and computer equipment
US11314551B2 (en) Resource allocation and scheduling for batch jobs
US10592293B2 (en) Tenant-specific policy generation and enforcement within containers
US11456930B2 (en) Network resource management method, apparatus, and system
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
AU2015419073B2 (en) Life cycle management method and device for network service
US20220004410A1 (en) Method For Deploying Virtual Machine And Container, And Related Apparatus
US20130019015A1 (en) Application Resource Manager over a Cloud
US10848366B2 (en) Network function management method, management unit, and system
US11915067B2 (en) Resource management method for node in kubernetes, device, and medium
US10620928B2 (en) Global cloud applications management
WO2021227999A1 (en) Cloud computing service system and method
WO2017185303A1 (en) Method and device for managing nfv mano policy descriptor
CN112887121B (en) Method, equipment and system for managing network service
US20200278956A1 (en) Management of memory usage using usage analytics
CN111443985A (en) Method and equipment for instantiating virtual network function
US20210406053A1 (en) Rightsizing virtual machine deployments in a cloud computing environment
CN110233904B (en) Equipment updating method, device, system, storage medium and computer equipment
CN113722114A (en) Data service processing method and device, computing equipment and storage medium
CN105677481B (en) A kind of data processing method, system and electronic equipment
CN109347661B (en) Instantiation method and device of consumer VNF
CN108459842B (en) Model configuration method and device and electronic equipment
CN109218259B (en) License management method and device, APPLM functional entity and computer readable storage medium
US12001864B2 (en) Containerized software discovery and identification
US11340950B2 (en) Service band management 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200626

RJ01 Rejection of invention patent application after publication