CN111897627B - Cloud computing resource quota management method and system - Google Patents

Cloud computing resource quota management method and system Download PDF

Info

Publication number
CN111897627B
CN111897627B CN202010644251.9A CN202010644251A CN111897627B CN 111897627 B CN111897627 B CN 111897627B CN 202010644251 A CN202010644251 A CN 202010644251A CN 111897627 B CN111897627 B CN 111897627B
Authority
CN
China
Prior art keywords
quota
item
attribute
attributes
instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010644251.9A
Other languages
Chinese (zh)
Other versions
CN111897627A (en
Inventor
王若舟
蓝海
张书东
李庆林
邹素雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202010644251.9A priority Critical patent/CN111897627B/en
Publication of CN111897627A publication Critical patent/CN111897627A/en
Application granted granted Critical
Publication of CN111897627B publication Critical patent/CN111897627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a cloud computing resource quota management system, which comprises a quota item and quota item instance construction module, a quota setting module and a quota deduction and compensation module, wherein the quota item and quota item instance construction module comprises: the quota item and quota item instance building module is used for generating a quota item and a quota item instance; the quota setting module is used for setting an actual available quota value for each quota item instance for each user, tenant or organization; and the quota deduction and compensation module is used for checking, deduction and compensation of quotas. The quota is not controlled in a single dimension any more, but a multi-condition and multi-constraint quota is constructed through the combination of resource attributes, so that more actual scenes of clients can be effectively adapted, when the IT resource management mode of a user is changed, a quota mechanism of a cloud pipe does not need to modify codes, and a system administrator can adapt to the change of demands by constructing a new quota item. The invention also provides a corresponding cloud computing resource quota management method.

Description

Cloud computing resource quota management method and system
Technical Field
The invention belongs to the technical field of cloud computing, and particularly relates to a cloud computing resource quota management method and system.
Background
The cloud computing management platform (cloud management for short) can manage and control cloud computing resources such as virtual machines and cloud hard disks. Since the total amount of resources is limited, whether in a private cloud or a public cloud, in order to prevent a user from intentionally or unintentionally creating cloud computing resources without limitation and affecting normal use of other users, a system on a cloud pipe usually sets a quota for the user, a tenant, and an organization, so as to limit the maximum total amount of resources that can be used.
The management of quotas in the existing schemes is one dimension or several isolated dimensions of resources, for example, vcpus (virtual CPUs) that limit how many cores a tenant can use in total, how much memory is used in total, how much disk space is used in total, how many floating IPs are used in total, and the like.
The existing scheme has the following defects: the quota item is a certain dimension of the resource or a certain number of isolated dimensions (such as the number of CPU cores, the size of the memory, and the like), and when the IT management model of the user is more complex, the simple quota item management mode cannot meet the requirement, for example: (1) quota of a user needs to be respectively limited for a Vmware type virtual machine and an Openstack type virtual machine; (2) the total amount of disk space used by a user needs to be respectively limited aiming at a common disk and an SSD high-speed disk; (3) the number of virtual machines that a user can create needs to be controlled respectively for different virtual machine pre-configuration specification types (scopes), for example, a virtual machine of a "small" pre-configuration specification type supports the creation of X, and a virtual machine of a "medium" pre-configuration specification type supports the creation of Y.
In addition to the typical scenario, a quota management model is also changed along with the change of a service management mode in the process of using the cloud computing by a user, and the existing method can only deal with the situation by customizing a development implementation mode, so that the development workload of the cloud pipe is increased, and the universality of the cloud pipe is reduced.
Disclosure of Invention
Aiming at the defects or improvement requirements of the prior art, the invention provides a cloud computing resource quota management method and system.
To achieve the above object, according to an aspect of the present invention, there is provided a cloud computing resource quota management method, including:
modeling a cloud computing resource component needing quota control, and identifying quota related attributes;
and (3) carrying out classification marking on the attributes, wherein the rule is as follows: marking the attribute of the quota constraint condition as a 'constraint class' attribute, and marking the attribute of counting control on the quota as a 'statistic class' attribute;
selecting at least one 'constraint class' attribute and one 'statistic class' attribute to form a quota item of the cloud computing resource component according to actual service management requirements;
automatically generating a quota item example of the quota item according to the newly constructed quota item, wherein the generation method of the quota item example comprises the steps of carrying out Cartesian product on candidate value sets of all 'constraint class' attributes of the quota item, and carrying out Cartesian product on a result and 'statistic class' attributes;
setting an available quota value for each generated quota item instance separately;
when the resource is issued, a resource request of a user is constructed into a resource assembly example, the 'constraint class' attribute defined by each quota item is extracted from the attribute value of the resource assembly example, and the attribute is matched with the quota item example through the actual value; then extracting statistical attributes, and deducting the numerical values of the statistical attributes from the quota values of the matched quota item instances; when the user releases the resource, the value of the statistical attribute is added back to the available quota value of the quota item instance, in contrast to the above-described flow.
In an embodiment of the present invention, a mutual exclusion condition is set in an attribute, and an attribute that cannot simultaneously appear in one quota item is defined.
In an embodiment of the present invention, each cloud computing resource component supports setting multiple sets of quota items to satisfy quota control of different dimensions.
In an embodiment of the present invention, for a virtual cloud host, the "constraint class" attribute includes: virtualization type, creation source manner, pre-configured specification type, operating system type, usage and/or system disk performance level; the "statistical class" attributes include: number of stations, number of CPU cores, memory size, and/or system disk size.
According to another aspect of the present invention, there is also provided a cloud computing resource quota management system, including a quota item and quota item instance building module, a quota setting module, and a quota deduction and compensation module, wherein:
the quota item and quota item instance building module is used for generating a quota item and a quota item instance;
the quota setting module is used for setting an actual available quota value for each quota item instance for each user, tenant or organization;
and the quota deduction and compensation module is used for checking, deduction and compensation of quotas.
In an embodiment of the present invention, the quota item and quota item instance building module includes an attribute modeling and marking sub-module, a quota item definition sub-module, a quota item instance generating sub-module, and a quota storage sub-module, where:
the attribute modeling and marking sub-module is used for modeling various resources in the cloud computing field in a component form, each component comprises a plurality of attributes which embody the characteristics of one aspect of the component, all the attributes in the model relate to the attributes of quota management, and the attributes are distinguished and marked as a 'constraint class' attribute and a 'statistic class' attribute;
the quota item definition submodule is used for dynamically selecting at least one constraint attribute from the marked constraint attributes and statistic attributes according to the actual IT resource management requirements of the client, and then selecting one statistic attribute to construct a new quota item;
the quota item instance generation submodule is used for automatically generating all quota item instances by taking Cartesian products of the candidate values of the attributes of the constraint classes and the attributes of the statistic classes according to the quota items constructed by the quota item definition submodule and the actual candidate values of the attributes of the constraint classes contained in the quota items;
the quota storage submodule is used for storing the quota item, the quota item instance and an available quota value set by a system administrator on the quota item instance generated in the module.
In an embodiment of the present invention, the attribute modeling and tagging submodule defines that the attributes are mutually exclusive, so that some attributes cannot appear in one quota item at the same time.
In an embodiment of the present invention, for a virtual cloud host, the "constraint class" attribute includes: virtualization type, creation source manner, pre-configured specification type, operating system type, usage and/or system disk performance level; the "statistical class" attributes include: number of stations, number of CPU cores, memory size, and/or system disk size.
In an embodiment of the present invention, the quota deduction and compensation module includes a resource instance construction sub-module, a quota item attribute sensing sub-module, a quota item instance matching sub-module, and a quota value processing sub-module, where:
the resource instance construction submodule is used for constructing the content in the resource issuing/releasing request of the user into a resource component instance, taking the request parameters of the user as the attributes of the resource component instance, and preparing for the subsequent quota item attribute sensing submodule to detect the quota item value;
the quota item attribute perception submodule is used for acquiring values from the attributes of the resource assembly instance one by one according to the quota item of the resource assembly and combining the values when the resources are distributed and released;
the quota item instance matching submodule is used for finding a quota item instance matched with the resource according to the attribute value combination detected by the quota item attribute sensing submodule, namely the resource is restricted by which quota item instance;
and the quota value processing submodule is used for verifying, deducting and compensating the quota value by utilizing the statistical attribute in the resource assembly instance attribute.
In an embodiment of the present invention, the quota item attribute sensing sub-module is specifically configured to:
the quota item attribute sensing submodule finds quota items created in a quota item and quota item instance construction stage, finds each attribute value corresponding to a quota item in a resource assembly instance generated by the resource instance construction submodule, and transmits the result to a quota item instance matching submodule to find a corresponding quota item instance.
Generally, compared with the prior art, the technical scheme of the invention has the following beneficial effects:
(1) the quota is not controlled in a single dimension any more, but a multi-condition and multi-constraint quota is constructed through the combination of resource attributes, so that more actual client scenes can be effectively adapted, when the IT resource management mode of a user is changed, a quota mechanism of a cloud pipe does not need to modify codes, and a system administrator can adapt to the change of requirements through constructing a new quota item.
(2) The quota item and the quota item instance are distinguished, and the system can automatically generate the quota item instance from the quota item, so that a system administrator does not need to create the quota item instance one by one in a complicated manner, and the workload of management can be reduced.
(3) After the cloud computing resources are modularized, the values of the constraint type attributes and the statistic type attributes can be conveniently obtained from the resource instance objects because the constraint type attributes and the statistic type attributes are the attributes of the resource assemblies. Therefore, the invention improves the flexibility of quota management without increasing the difficulty of quota management.
Drawings
Fig. 1 is a schematic flowchart of a cloud computing resource quota management method in an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a quota item and a quota item instance constructing manner in a method for implementing cloud computing quota management according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an architecture of a cloud computing resource quota management system provided by the present invention;
fig. 4 is a schematic flow diagram of a quota item and a quota item instance construction phase in an embodiment of the present invention;
FIG. 5 is a schematic diagram of a software interface for a system administrator to set a quota value for a quota item instance in the embodiment of the present invention;
fig. 6 is a schematic flow chart of the quota deduction compensation phase in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1
As shown in fig. 1, the present invention provides a cloud computing resource quota management method, including:
(1) referring to fig. 2, the system models the cloud computing resources that need to be quota controlled, and identifies quota related attributes, such as virtualization type of the virtual cloud host, operating system type, preconfigured specification type, creation source manner, system disk performance level, usage, CPU core number, memory size, system disk size, and number of devices.
(2) The system carries out classification marking on the attributes, and the rule is as follows: marking the attribute having the constraint condition on the quota as a 'constraint class' attribute, such as a virtualization type, an operating system type, a pre-configured specification type, a creation source mode, a system disk performance level and a purpose; and marking the attribute for counting and controlling the quota as a 'statistical class' attribute, such as the number of CPU cores, the size of a memory, the size of a system disk and the number of stations. In general, a "constraint class" attribute has a fixed range of values.
Preferably, the system can set a mutual exclusion condition in the attributes, defining attributes that cannot simultaneously appear in a quota item.
(3) According to the requirement of actual service management, a system administrator can select 1-3 "constraint class" attributes and 1 "statistic class" attribute to form a quota item of the resource assembly, for example, select a virtualization type and a preconfigured specification type as a first constraint and a second constraint of a new quota item, and select the number of quota items as a statistic attribute of the quota item.
Preferably, each component can support setting multiple sets of quota items to satisfy quota control of different dimensions.
(4) According to the newly constructed quota item, the system can automatically generate a quota item example of the quota item, wherein the generation method of the quota item example is that Cartesian products are made among candidate value sets of all 'constraint class' attributes of the quota item, and then the results and the 'statistic class' attributes are made into Cartesian products. For example, the attribute a and the attribute b are selected as the attribute of 'constraint class', and the value range of the attribute a is { a1,a2The value range of the b attribute is { b }1,b2,b3And if the statistic class attribute is c, the generated quota item instance is:
a×b×c={(x,y,c)|x∈a∧y∈b}={(a1,b1,c),(a2,b1,c),(a1,b2,c),(a2,b2,c),(a1,b3,c),(a2,b3,c)}
preferably, the system administrator may remove the quota item instance that is not used in the actual service occasion from the generated quota item instance.
(5) And the system administrator sets an available quota value for each quota item instance individually for the user or the group according to the generated quota item instances.
(6) When a user or a group issues resources, a system constructs a resource request of the user into a resource assembly instance, extracts a 'constraint class' attribute defined by each quota item from attribute values of the resource assembly instance, and matches the constraint class 'attribute with the quota item instance through an actual value of the constraint class' attribute; and extracting the statistical attribute, and deducting the value of the statistical attribute from the quota value of the matched quota item instance. When the user releases the resource, in contrast to the above-described flow, the value of the statistical attribute is added back to the available quota value of the quota item instance.
Example 2
As shown in fig. 3, the present invention provides a cloud computing resource quota management system, which includes a quota item and quota item instance building module, a quota setting module, and a quota deduction and compensation module, wherein:
the quota item and quota item instance building module is responsible for generating a quota item and a quota item instance, and specifically includes the following 4 sub-modules:
the attribute modeling and marking submodule models various resources in the cloud computing field through a component form, and each component comprises a plurality of attributes which embody one aspect of the component. The module further distinguishes and marks all the attributes related to quota management in the model as a constraint attribute and a statistic attribute.
And the quota item definition sub-module allows a system administrator to select 1 or 2 or 3 constraint attributes from the marked constraint attributes and statistic attributes as a first constraint, a second constraint and a third constraint according to the actual IT resource management requirements of the client, and then select 1 statistic attribute to construct a new quota item.
And the quota item instance generation sub-module automatically generates all quota item instances by taking Cartesian products of the candidate values of the attributes of the constraint classes and the attributes of the statistic classes according to the quota items constructed in the last step of the system administrator and the actual candidate values of the attributes of the constraint classes contained in the quota items.
Preferably, the sub-module may be used by a system administrator to mask part of quota item instances (quota item instances that will not be used in a service instance of an actual client), and in doing so, the sub-module may mark the quota item instances, and the quota item instances will not participate in quota control in subsequent resource allocation and release.
And the quota storage submodule is used for storing the quota item, the quota item instance and an available quota value set by the system administrator on the quota item instance generated in the module.
The quota setting module is used for setting an actual available quota value for each quota item instance by a system administrator for each user, tenant or organization.
And the quota deduction and compensation module is used for checking, deduction and compensation of quotas. The system specifically comprises the following 4 sub-modules.
And the resource instance construction submodule is used for constructing the content in the resource issuing/releasing request of the user into a resource component instance, taking the request parameters of the user as the attributes of the resource component instance, and preparing for the subsequent quota item attribute sensing submodule to detect the quota item value.
And the quota item attribute perception submodule is used for acquiring values from the attributes of the resource assembly instance one by one according to the quota items of the resource assembly and combining the values when the resources are distributed and released.
And the quota item instance matching submodule finds the quota item instance matched with the resource according to the attribute value combination detected by the quota item attribute sensing submodule, namely the resource is restricted by which quota item instance.
And the quota value processing submodule is used for verifying, deducting and compensating the quota value by utilizing the statistical attributes in the resource assembly instance attributes.
Example 3
The cloud computing resource quota management method comprises a quota item and quota item instance construction stage and a quota deduction compensation stage. In the quota item and quota item instance construction stage, quota management preparation work such as modeling of a resource component, attribute marking, quota item assembly, quota item instance generation, quota value setting and the like is completed; the quota deduction compensation stage is that the resource substantially checks and increases and decreases the quota value when being issued (or applied) and released (or recycled).
The following takes quota management of a virtual cloud host (the virtual cloud host is a typical resource in the cloud computing field) as an example, and further describes a specific embodiment and a software system of the present invention.
(1) Quota items and quota item instances build phase, refer to the flow of FIG. 4:
s101: the attribute modeling and marking sub-module establishes a component model aiming at the virtual cloud host resources, and registers each field of the virtual cloud host as the attribute of the component, wherein the attribute related to quota comprises the following attributes: virtualization type, source creation mode, pre-configured specification type, operating system type, usage, number of units, CPU core number, memory size, system disk performance level, system disk size, description, and the like.
S102: the attribute modeling and marking sub-module further marks the attributes with a 'constraint class' attribute and a 'statistic class' attribute, wherein the attribute marked as the 'constraint class' has a virtualization type (Openstack or Vmware), a creation source mode (creation from a mirror image or a storage volume), a pre-configuration specification type (m1.small, m1.medium, m1.large and the like), an operating system type (Linux or Windows), a purpose (production, pre-production, office, test and the like), a system disk performance grade (a common disk or a high-speed disk), and the attributes can control quota of resources from a certain angle according to a certain condition; the attributes marked as "statistical class" include the number of units, the number of CPU cores, the size of the memory, and the size of the system disk, and these attributes are the size of the limited quota that can be used for quantification.
S103: optionally, the attribute modeling and tagging submodule may define attribute mutual exclusion, that is, some attributes cannot appear in a quota item at the same time. For example, since the "constraint class" attribute pre-configuration specification type has potentially defined the number of CPU cores and the memory size, the number of CPU cores and the memory size generally do not appear in the same quota item as the "statistic class" attribute.
S104: and a system administrator constructs a quota item by using the quota item definition submodule according to the IT resource management requirements of the enterprise. For example, a virtualization type is selected from the marked "constraint class" attributes in S102 as a first constraint of the quota item, a preconfigured specification type is selected as a second constraint of the quota item, and the number of "statistics class" attributes is selected as a statistics attribute.
Preferably, when selecting the attribute, the system administrator is subject to the attribute mutual exclusion limitation in step S103, and the system administrator cannot select the mutually exclusive attribute in one quota item.
S105: and the quota item instance generating sub-module generates a quota item instance according to the quota item created by the user. The specific method comprises the following steps: first, the sub-module finds a candidate value for each "constraint class" attribute selected by the system administrator. The candidate values of the virtualization type include Openstack and Vmware, and the candidate values of the pre-configured specification type include m1.small, m1.medium and m1.large (the candidate values on different cloud computing platforms may be different, and this is only illustrated according to a typical scenario). Then, a cartesian product is performed on the candidate value of the first constraint, the candidate value of the second constraint and the statistical attribute, and the generated quota item example result is as follows:
Figure BDA0002572537550000101
s106: optionally, a system administrator may mark and remove quota item instances that are not actually used by some clients in a quota item instance generation sub-module for a generated quota item instance, for example, in a scenario where a client is located, a vm's virtual machine may not use preconfigured specification types of m1.medium and m1.large, so the system administrator may mark two quota item instances of { Vmware, m1.medium, number of stations } and { Vmware, m1.large, number of stations }, and the quota item instance generation sub-module may mark- "invalid quota item instances", and they may not participate in checking, deduction, and compensation of subsequent quotas.
S107: optionally, the system administrator may also construct more quota items for the virtual cloud host, for example, select an operating system type from the "constraint class" attribute as a first constraint of the quota item, and select the number of CPU cores in the "statistic class" attribute as a statistic attribute, that is, repeat the processes of S104, S105, and S106, which is not described herein again.
S108: the system administrator sets a quota value for each of the created valid quota item instances in the quota setting module for a certain user (which may also be a tenant, an organization, a virtual data center, or the like), and the software interface may refer to fig. 5.
The quota value limits the maximum amount of usage of this user or community when creating the virtual cloud host. The quota item instances after setting the quota value are as follows:
Figure BDA0002572537550000111
(2) quota deduction compensation phase, referring to the flow of fig. 6:
s201: when a user issues a virtual cloud host as shown in the following table, the resource instance construction sub-module generates an instance of the virtual cloud host component according to the request of the user, and takes the user request parameter as an attribute value of the instance.
Properties User request parameters
ID <Cloud management system automatic generation>
Name (R) Virtual machine for testing
Virtualization type Openstack
Method for creating source Mirror image
Mirror image based Centos7.6
Storage volume based Is free of
Preconfigured specification types m1.small
Operating system type Linux
Use of Testing
Number of CPU cores 1
Memory size 4
System disk performance rating High speed magnetic disk
The system is largeSmall 40
Description of the invention Is free of
Number of stations 3
S202: the quota item attribute perception submodule finds a quota item created in a quota item and quota item instance construction stage: { virtualization type, provisioning specification type, number }, finding each attribute value corresponding to the quota item in the resource assembly instance generated in the previous step. And transmitting the result to a quota item instance matching submodule to find a corresponding quota item instance. The quota item example matched with the virtual machine cloud host example is { Openstack, m1.small, number of platforms }
S203: the quota value processing submodule checks whether the quota is sufficient: since the quota value of the matched quota item instance { Openstack, m1.small, number of stations } is 40, which is greater than the statistical attribute of the resource instance, i.e., number of stations is 3, resource distribution can be performed.
Preferably, if the quota item instance is not matched, the virtual cloud host instance is not involved in quota checksum deduction.
Preferably, if the component defines more than one quota item, S202 and S203 are repeatedly executed, each quota item is checked, and if any quota item fails to be checked, the resource is prevented from being issued.
S204: the quota value processing submodule further subtracts the quota value of the corresponding quota item instance, and the subtracted value is a statistical attribute of the component instance, that is, the number of the elements is 3. The quota value of the deducted quota item instance is 37.
Preferably, if the component defines more than one quota item, S204 is repeatedly executed to perform quota value deduction of each quota item instance.
S205: the flow when the user releases the resource is opposite to S204, and the quota value processing sub-module adds the statistical attribute of the component instance back to the quota value of the quota item instance.
According to the method and the system for realizing cloud computing resource quota management, component modeling is carried out on cloud computing resources, constraint class marking and statistic class marking are carried out on model attributes, and flexible user-defined quota items are constructed by combining a plurality of constraint class attributes and one statistic class attribute. The quota term thus constructed contains a first constraint, a second constraint, an Nth constraint (N is typically no greater than 3), and a statistical attribute value. The system automatically generates quota item instances according to the quota item, a system administrator does not need to manually generate quota item instances, and the administrator can set a quota value for each user or group aiming at each quota item instance. And when the quota checksum is deducted, carrying out checksum deduction according to the quota item example. Compared with the existing cloud computing resource quota management method, the method can adapt to more user scenes, when the IT resource management mode of the user is changed, the quota mechanism of the cloud pipe does not need to modify codes, and a system administrator can adapt to new requirements by constructing new quota items.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In some of the flows described in the present specification and claims and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the order of the operations merely being used to distinguish between the various operations, and the order of execution does not itself represent any order of execution. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit the types of "first" and "second".
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A cloud computing resource quota management method is characterized by comprising the following steps:
modeling a cloud computing resource component needing quota control, and identifying quota related attributes;
and (3) carrying out classification marking on the attributes, wherein the rule is as follows: marking the attribute of the quota constraint condition as a 'constraint class' attribute, and marking the attribute of counting control on the quota as a 'statistic class' attribute;
selecting at least one 'constraint class' attribute and one 'statistic class' attribute to form a quota item of the cloud computing resource component according to actual service management requirements;
automatically generating a quota item example of the quota item according to the newly constructed quota item, wherein the generation method of the quota item example comprises the steps of carrying out Cartesian product on candidate value sets of all 'constraint class' attributes of the quota item, and carrying out Cartesian product on a result and 'statistic class' attributes;
setting an available quota value for each generated quota item instance separately;
when the resource is issued, a resource request of a user is constructed into a resource assembly example, the 'constraint class' attribute defined by each quota item is extracted from the attribute value of the resource assembly example, and the attribute is matched with the quota item example through the actual value; then extracting statistical attributes, and deducting the numerical values of the statistical attributes from the quota values of the matched quota item instances; when the user releases the resource, in contrast to the above-described flow, the value of the statistical attribute is added back to the available quota value of the quota item instance.
2. The cloud computing resource quota management method of claim 1, wherein a mutual exclusion condition is set in an attribute, defining attributes that cannot occur in one quota item at the same time.
3. The cloud computing resource quota management method of claim 1 or 2, wherein each cloud computing resource component supports setting multiple sets of quota items to satisfy quota control for different dimensions.
4. The cloud computing resource quota management method of claim 1 or 2, wherein for a virtual cloud host, the "constraint class" attribute comprises: virtualization type, creation source manner, pre-configured specification type, operating system type, usage and/or system disk performance level; the "statistical class" attributes include: number of stations, number of CPU cores, memory size, and/or system disk size.
5. The cloud computing resource quota management system is characterized by comprising a quota item and quota item instance building module, a quota setting module and a quota deduction and compensation module, wherein:
the quota item and quota item instance building module is used for generating a quota item and a quota item instance; the quota item and quota item instance building module comprises an attribute modeling and marking sub-module, a quota item definition sub-module, a quota item instance generating sub-module and a quota storage sub-module, wherein:
the attribute modeling and marking sub-module is used for modeling various resources in the cloud computing field in a component form, each component comprises a plurality of attributes which embody the characteristics of one aspect of the component, all the attributes in the model relate to the attributes of quota management, and the attributes are distinguished and marked as a 'constraint class' attribute and a 'statistic class' attribute;
the quota item definition submodule is used for dynamically selecting at least one constraint attribute from the marked constraint attributes and statistic attributes according to the actual IT resource management requirements of the client, and then selecting one statistic attribute to construct a new quota item;
the quota item instance generation submodule is used for automatically generating all quota item instances by taking Cartesian products of the candidate values of the attributes of the constraint classes and the attributes of the statistic classes according to the quota items constructed by the quota item definition submodule and the actual candidate values of the attributes of the constraint classes contained in the quota items;
the quota storage submodule is used for storing quota items and quota item instances generated in the module and available quota values set by a system administrator on the quota item instances;
the quota setting module is used for setting an actual available quota value for each quota item instance for each user, tenant or organization;
and the quota deduction and compensation module is used for checking, deduction and compensation of quotas.
6. The cloud computing resource quota management system of claim 5, wherein the attribute modeling and tagging sub-module defines attributes to be mutually exclusive such that certain attributes cannot appear in a quota item at the same time.
7. The cloud computing resource quota management system of claim 5 or 6, wherein for a virtual cloud host, the "constraint class" attribute comprises: virtualization type, creation source manner, pre-configured specification type, operating system type, usage and/or system disk performance level; the "statistical class" attributes include: number of stations, number of CPU cores, memory size, and/or system disk size.
8. The cloud computing resource quota management system of claim 5, wherein the quota deduction and compensation module comprises a resource instance construction sub-module, a quota item attribute awareness sub-module, a quota item instance matching sub-module, and a quota value processing sub-module, wherein:
the resource instance construction submodule is used for constructing the content in the resource issuing/releasing request of the user into a resource component instance, taking the request parameters of the user as the attributes of the resource component instance, and preparing for the subsequent quota item attribute sensing submodule to detect the quota item value;
the quota item attribute perception submodule is used for acquiring values from the attributes of the resource assembly instance one by one according to the quota item of the resource assembly and combining the values when the resources are distributed and released;
the quota item instance matching submodule is used for finding a quota item instance matched with the resource according to the attribute value combination detected by the quota item attribute sensing submodule, namely the resource is restricted by which quota item instance;
and the quota value processing submodule is used for verifying, deducting and compensating the quota value by utilizing the statistical attributes in the resource assembly instance attributes.
9. The cloud computing resource quota management system of claim 8, wherein the quota item attribute awareness sub-module is specifically configured to:
the quota item attribute sensing submodule finds quota items created in a quota item and quota item instance construction stage, finds each attribute value corresponding to a quota item in a resource assembly instance generated by the resource instance construction submodule, and transmits the result to a quota item instance matching submodule to find a corresponding quota item instance.
CN202010644251.9A 2020-07-07 2020-07-07 Cloud computing resource quota management method and system Active CN111897627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010644251.9A CN111897627B (en) 2020-07-07 2020-07-07 Cloud computing resource quota management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010644251.9A CN111897627B (en) 2020-07-07 2020-07-07 Cloud computing resource quota management method and system

Publications (2)

Publication Number Publication Date
CN111897627A CN111897627A (en) 2020-11-06
CN111897627B true CN111897627B (en) 2022-05-17

Family

ID=73191868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010644251.9A Active CN111897627B (en) 2020-07-07 2020-07-07 Cloud computing resource quota management method and system

Country Status (1)

Country Link
CN (1) CN111897627B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965662A (en) * 2021-03-03 2021-06-15 北京金山云网络技术有限公司 Configuration method and device of cloud server, management server and storage medium
CN115145736B (en) * 2022-09-05 2022-12-06 中国人寿保险股份有限公司上海数据中心 Cloud platform quota intelligent distribution system based on Spark distributed computing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120263191A1 (en) * 2011-04-12 2012-10-18 Red Hat Israel, Inc. Mechanism For Managing Quotas In a Distributed Virtualization Environment
US9396030B2 (en) * 2013-03-13 2016-07-19 Samsung Electronics Co., Ltd. Quota-based adaptive resource balancing in a scalable heap allocator for multithreaded applications
CN103729236B (en) * 2013-12-29 2017-04-05 国云科技股份有限公司 A kind of method for limiting cloud computing user resources using amount
CN104750558B (en) * 2013-12-31 2018-07-03 伊姆西公司 The method and apparatus that resource allocation is managed in quota system is layered
CN105099951B (en) * 2015-07-27 2018-06-26 中国联合网络通信集团有限公司 A kind of resource regulating method and management equipment

Also Published As

Publication number Publication date
CN111897627A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
US11409556B2 (en) Custom placement policies for virtual machines
US8805970B2 (en) Automatic management of configuration parameters and parameter management engine
US9397910B2 (en) Marking program files as belonging to an application
US8793344B2 (en) System and method for generating a response plan for a hypothetical event
CN111897627B (en) Cloud computing resource quota management method and system
CN104246741A (en) Orchestrating hybrid cloud services
CN111639027B (en) Test method and device and electronic equipment
CN112650576A (en) Resource scheduling method, device, equipment, storage medium and computer program product
US20080005143A1 (en) Methods and apparatus for automatically creating composite configuration items in configuration management database
CN111831392A (en) Hardware acceleration method and related equipment
CN111208975A (en) Concurrent execution service
WO2019218460A1 (en) Service line processing method, device, terminal equipment and medium
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN109729071A (en) A kind of vmware multi-tenant management method suitable for cloudy management
CN111698326B (en) Method and device for determining cost attribution of cloud service resources
WO2021114902A1 (en) Program initialization method, program initialization device, terminal device, and storage medium
US10003492B2 (en) Systems and methods for managing data related to network elements from multiple sources
US20210006551A1 (en) Tag-based access permissions for cloud computing resources
CN110019229B (en) Database configuration system
CN116151631A (en) Service decision processing system, service decision processing method and device
US10992534B2 (en) Forming groups of nodes for assignment to a system management server
US8561131B1 (en) Allocating products to licenses on a computing device
CN111209284A (en) Metadata-based table dividing method and device
US9281994B2 (en) Processing algebraic expressions for keyed data sets
KR101570980B1 (en) Method for management common code of multi-tenane environment, server performing the same and storage media storing the same

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
GR01 Patent grant
GR01 Patent grant