CN116775267A - Resource quota method, device, equipment and storage medium - Google Patents

Resource quota method, device, equipment and storage medium Download PDF

Info

Publication number
CN116775267A
CN116775267A CN202211448668.3A CN202211448668A CN116775267A CN 116775267 A CN116775267 A CN 116775267A CN 202211448668 A CN202211448668 A CN 202211448668A CN 116775267 A CN116775267 A CN 116775267A
Authority
CN
China
Prior art keywords
quota
user terminal
resource
index
user
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
CN202211448668.3A
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211448668.3A priority Critical patent/CN116775267A/en
Publication of CN116775267A publication Critical patent/CN116775267A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure discloses a resource quota method, a device, equipment and a storage medium, wherein the method comprises the following steps: in response to receiving a quota request of a user terminal, determining a quota index matched with user information in the quota request; wherein the quota index comprises at least a quota dimension; under the condition that the identity of the user terminal is legal, a quota mode matched with a quota dimension is adopted, and quota is carried out on the user terminal based on a quota index, so that at least one resource pool corresponding to the user terminal is obtained. The embodiment of the disclosure can be beneficial to realizing differential control on different resource pools and different quota indexes.

Description

Resource quota method, device, equipment and storage medium
Technical Field
The present disclosure relates to, but not limited to, the field of computer technologies, and in particular, to a resource quota method, apparatus, device, and storage medium.
Background
Along with the continuous improvement of the technology level, more and more products need clouding, the cloud storage device is used for realizing the customization demands of products such as a host, a hard disk, a bandwidth and the like, and achieves the effect of reasonable utilization of resources. Therefore, the cloud computing technology is a necessary result of information development and the information society reaching a certain stage of resource demand. In order to ensure reasonable utilization of resources, realizing quota control of resources is an essential link when the resources are ordered.
Disclosure of Invention
In view of this, embodiments of the present disclosure at least provide a method, an apparatus, a device, and a storage medium for resource quota.
The technical scheme of the embodiment of the disclosure is realized as follows:
in one aspect, an embodiment of the present disclosure provides a resource quota method, applied to a quota center, including: responding to a quota request of a receiving user terminal, and determining a quota index matched with user information in the quota request; wherein the quota index comprises at least a quota dimension; and under the condition that the identity of the user terminal is legal, adopting a quota mode matched with the quota dimension, and performing quota on the user terminal based on the quota index to obtain at least one resource pool corresponding to the user terminal.
In another aspect, an embodiment of the present disclosure provides a resource quota device, applied to a quota center, including: the first determining module is used for determining a quota index matched with user information in a quota request in response to receiving the quota request of the user terminal; wherein the quota index comprises at least a quota dimension; and the allocation module is used for carrying out quota on the user terminal based on the quota index by adopting a quota mode matched with the quota dimension under the condition that the identity of the user terminal is legal, so as to obtain at least one resource pool corresponding to the user terminal.
In yet another aspect, embodiments of the present disclosure provide a computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor implementing some or all of the steps of the above method when the program is executed.
In yet another aspect, the disclosed embodiments provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs some or all of the steps of the above method.
In yet another aspect, the disclosed embodiments provide a computer program comprising computer readable code which, when run in a computer device, causes a processor in the computer device to perform some or all of the steps for carrying out the above method.
In yet another aspect, the disclosed embodiments provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program which, when read and executed by a computer, performs some or all of the steps of the above method.
In the embodiment of the disclosure, firstly, a quota index matched with user information in a quota request is determined by responding to the quota request of a receiving user terminal; wherein the quota index comprises at least a quota dimension; in this way, the quota of the resource pool can be rapidly and accurately performed based on the quota dimension. Then, under the condition that the identity of the user terminal is legal, adopting a quota mode matched with a quota dimension, and performing quota on the user terminal based on a quota index to obtain at least one resource pool corresponding to the user terminal; in this way, by setting the quota index of the resource pool quota dimension, the quota index item is controlled separately in the single resource pool quota and the multiple resource quotas, so that the differentiated control of different resource pools and different quota indexes is realized, and the quota allocation, management and control and the like for the resource pool dimension users are realized.
Meanwhile, in the quota mode adopted by the related technology, the flows of quota checking, increasing, reducing and the like are realized by adding a distributed lock and serializing checking, and if a certain user has too many department levels involved in quota, checking is required to be performed with each department level, so that the checking time is long, the response speed of interfaces in the quota flow is slow, the user experience is influenced and the like; here, by removing the verification of the department level quota and using the user layer for the user terminal to verify the verification of the alternative department level quota, the number of times of verification can be reduced, the operation efficiency of the interface in the quota flow can be improved, and the like.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the aspects of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the technical aspects of the disclosure.
Fig. 1 is a schematic implementation flow diagram of a first resource quota method provided by an embodiment of the disclosure;
fig. 2 is a schematic implementation flow diagram of a second resource quota method provided in an embodiment of the disclosure;
Fig. 3 is a schematic implementation flow diagram of a third resource quota method provided by an embodiment of the disclosure;
fig. 4 is a schematic implementation flow diagram of a fourth resource quota method provided by an embodiment of the disclosure;
fig. 5 is a schematic diagram of a composition structure of a quota management system provided in an embodiment of the disclosure;
fig. 6 is a schematic implementation flow diagram of a multi-resource-pool quota dimension processing method according to an embodiment of the present disclosure;
fig. 7 is a schematic implementation flow diagram of a quota total determination method according to an embodiment of the present disclosure;
FIG. 8 is a schematic interaction diagram of a management module and a quota module provided in an embodiment of the disclosure;
FIG. 9 is a schematic diagram of an engineering correlation provided by an embodiment of the present disclosure;
fig. 10 is a schematic flow chart of an implementation of a resource pool quota with different dimensions according to an embodiment of the present disclosure;
FIG. 11 is a schematic diagram of an implementation flow of resource subscription according to an embodiment of the present disclosure;
fig. 12 is a schematic diagram of an implementation flow of resource unsubscribing according to an embodiment of the present disclosure;
fig. 13 is a schematic diagram of a composition structure of a resource quota device according to an embodiment of the disclosure;
fig. 14 is a schematic hardware entity diagram of a computer device according to an embodiment of the disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure are further elaborated below in conjunction with the drawings and the embodiments, and the described embodiments should not be construed as limiting the present disclosure, and all other embodiments obtained by those skilled in the art without making inventive efforts are within the scope of protection of the present disclosure.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict. The term "first/second/third" is merely to distinguish similar objects and does not represent a particular ordering of objects, it being understood that the "first/second/third" may be interchanged with a particular order or precedence where allowed, to enable embodiments of the disclosure described herein to be implemented in other than those illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing the present disclosure only and is not intended to be limiting of the present disclosure.
The disclosed embodiments provide a resource quota method that may be performed by a processor of a quota center. The quota center may refer to a device or platform for performing resource quota and quota management on the user terminal, for example, a cloud server. For example: the user terminal sends a quota request to a quota center, and the quota center allocates resources in a corresponding resource pool for the user terminal. The resources may be storage, network, memory, computing, input/Output (IO) and other resources. The user terminal may refer to a server, a notebook computer, a tablet computer, a desktop computer, a smart television, a set-top box, a mobile device (e.g., a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device), etc. Fig. 1 is a schematic implementation flow chart of a resource quota method provided by an embodiment of the present disclosure, as shown in fig. 1, the method includes steps S101 to S102 as follows:
step S101, responding to a quota request of a receiving user terminal, and determining a quota index matched with user information in the quota request.
Here, the quota request may refer to information for the user terminal to perform quota, and the quota request may include one or more of user information, project information, resource requirement amount, and other information corresponding to the user terminal. The user information may include information such as a user type, a user identity, etc.; the item information may include information such as item names, item identifications, etc., typically used to specify one or more items; the resource demand amount may include the type and amount of cloud resources required to be used by the above items, such as the number of cores, memory capacity, and storage capacity of the central processor. The quota index may be reference data used for performing quota on the user terminal in the quota center, and the quota index may include data such as a maximum value, a minimum value, a default total amount, a resource pool, and the like of performing resource quota on the user terminal. For example: the quota index includes a virtualization type, an operating system type, a preconfigured specification type, a creation source mode, a system disk performance level, a purpose, a central processing unit core number, a memory size, a system disk size, a number of disks, and the like of the virtual cloud host.
The corresponding relation between the user information and the quota index can be preset, for example, if the user information characterizes that the user type of the user to which the user terminal belongs is a first type, the corresponding relation corresponds to the first quota index; the user information characterizes that the user type of the user to which the user terminal belongs is a second type, and corresponds to a second quota index and the like; the first quota index and the second quota index are different in numerical value.
The quota index may include at least a quota dimension, where the quota dimension may be a number of resource pools used for performing quota on the user terminal, for example, if the quota dimension is 1, the user terminal may invoke a resource of one resource pool; and if the quota dimension is 2, the characterization user terminal can call the resources of the 2 resource pools and the like. The resource pool refers to a collection of various hardware and software involved in cloud computing, and can be divided into different types of resources such as computing resources, storage resources, network resources and the like according to the types of the resources; cloud computing can virtualize a plurality of servers into a resource pool by means of virtualization technology, and due to diversification and complexity of resources, resources are required to be allocated (namely, resource quota for a user terminal), and the resource allocation of cloud computing refers to a process that the user terminal can schedule the resources according to a certain usage rule in a common cloud environment.
In the implementation process of step S101, it may include: receiving a quota request reported by a user terminal through a preset communication protocol; reading a preset field of the quota request to obtain user information carried by the quota request; and determining a quota index matched with the user information based on a corresponding relation between the preset quota index and the user information.
Step S102, under the condition that the identity of the user terminal is legal, adopting a quota mode matched with the quota dimension to quota the user terminal based on the quota index, and obtaining at least one resource pool corresponding to the user terminal.
Here, before quota is performed on the user terminal, the user terminal may be authenticated first, for example, based on user information, authentication is performed on the user information by adopting a preset authentication mode, so as to obtain an authentication result; the verification results comprise verification success and verification failure, wherein the verification success can represent that the identity of the user terminal is legal, the verification failure can represent that the identity of the user terminal is illegal, and the like; or, the user information and the identity of the quota center and other information can be sent to a third party verification platform for verification, so that a verification result is obtained. The related art has the advantages that the treatment of excessive department levels, such as quota checking, increasing and reducing is realized by adding a distributed lock and serializing checking, and if a certain user department level is excessive, the checking time is long, the response speed of a verification interface is slow, the user experience is influenced and the like. In the embodiment of the disclosure, the verification of the department level quota is removed, and the user layer verification for the user terminal is used for replacing the verification of the department level quota, so that the number of department levels involved in the verification can be reduced, and the performance of a verification interface and the like can be improved.
The quota mode may refer to logic or flow of performing quota on the user terminal, where different quota dimensions correspond to different quota modes, for example, a quota mode corresponding to a single resource pool of a single quota dimension, a quota mode corresponding to multiple resource pools of multiple quota dimensions, and so on, so that available resource quantity in at least one resource pool of the obtained user terminal meets a quota index. For example: and determining that the quota dimension corresponding to the first user terminal is 3, and then acquiring the current available resource quantity of each resource pool in all preset resource pools, and determining 3 resource pools from all the resource pools as resource pools obtained by quota of the first user terminal, wherein the sum of the available resource quantities in the 3 resource pools of the first user terminal meets a quota index.
In the embodiment of the disclosure, firstly, a quota index matched with user information in a quota request is determined by responding to the quota request of a receiving user terminal; wherein the quota index comprises at least a quota dimension; in this way, the quota of the resource pool can be rapidly and accurately performed based on the quota dimension. Then, under the condition that the identity of the user terminal is legal, adopting a quota mode matched with a quota dimension, and performing quota on the user terminal based on a quota index to obtain at least one resource pool corresponding to the user terminal; in this way, by setting the quota index of the resource pool quota dimension, the quota index item is controlled separately in the single resource pool quota and the multiple resource quotas, so that the differentiated control of different resource pools and different quota indexes is realized, and the quota allocation, management and control and the like for the resource pool dimension users are realized.
Meanwhile, in the quota mode adopted by the related technology, the flows of quota checking, increasing, reducing and the like are realized by adding a distributed lock and serializing checking, and if a certain user has too many department levels involved in quota, checking is required to be performed with each department level, so that the checking time is long, the response speed of interfaces in the quota flow is slow, the user experience is influenced and the like; here, by removing the verification of the department level quota and using the user layer for the user terminal to verify the verification of the alternative department level quota, the number of times of verification can be reduced, the operation efficiency of the interface in the quota flow can be improved, and the like.
In some embodiments, after implementing step S102, the method may further include the following steps S111 to S112:
step S111, performing quota freezing processing on the remaining usage amount to obtain a pre-occupation quota amount and a pre-occupation serial number when the remaining usage amount of the resource pool of the user terminal meets a preset condition.
Here, in the quota ordering process of the related technology, when a user performs resource ordering to a quota center through a user terminal, the quota center does not freeze a background quota, and when the same user purchases the quota for multiple times, the situation that the user ordering is successful, but the quota opening fails may occur, and the number of times of user complaints is increased.
In the embodiment of the disclosure, a frozen quota flow is introduced to reduce the situation that the user ordering is successful but the quota opening fails. Firstly, a user can initiate quota checking through a subscription page on a user terminal, wherein the quota checking is used for verifying whether the residual quota amount in a resource pool associated with the user terminal meets a newly added quota index; if the verification result is that the verification is successful, the user can initiate a product ordering flow through an ordering page, and a product side can initiate freezing quota operation in advance; if the verification fails, ending the product ordering flow and the like; the product side may refer to each product module on the mobile cloud, such as a host, a hard disk, an internet protocol (Internet Protocol, IP), and the like, and the product side may also be referred to as a service caller of a quota, and may be understood that the product side carries resources;
then, the product ordering process can include preempting the resource quantity meeting the newly added quota index from the resource pool to obtain a frozen quota quantity (i.e. preempting quota), after preempting successfully, the quota center generates a preempting serial number, and the preempting serial number is fed back to the product side; the product side executes preset internal business logic in response to receiving the pre-occupied serial number and is used for creating an order; after the order is successfully created, if the user needs to use the frozen quota amount, quota thawing operation of the frozen quota amount can be initiated by utilizing the pre-occupied water number corresponding to the frozen quota amount, and the frozen quota amount is converted into used quota amount and the like.
Step S112, under the condition that the preset product ordering is successful, carrying out quota thawing treatment on the pre-occupied quota amount based on the pre-occupied serial number to obtain the used quota amount.
Here, under the condition that the user terminal receives the pre-occupying serial number fed back by the product side, the successful ordering of the product is determined; if the user terminal needs to call the resource execution service, the user terminal can send the pre-occupying serial number to the product side for calling back the product side; the product side transmits the pre-occupied serial number to the quota center, so that the quota center updates the pre-occupied quota amount to the used quota amount and the like, and quota thawing processing of the pre-occupied quota is realized.
The used quota amount can be used for updating the residual usage amount of the resource pool of the user terminal after the product unsubscribes successfully, for example, a user initiates an unsubscribing process to the product side through an unsubscribing page on the user terminal, so that the current residual usage amount of the resource pool of the user terminal in the product side control quota center subtracts the used quota amount, and the updated residual usage amount of the user terminal is obtained.
In the embodiment of the disclosure, under the condition that the user subscribes the resource for many times, the quota freezing and quota thawing processing are performed on the resource in the resource pool, so that the resource quantity of the resource called by the user terminal is accurately recorded, and the situation that the user ordering is successful but the quota opening is failed is reduced.
The embodiment of the disclosure provides a resource quota method, wherein the quota index at least comprises a quota total amount.
As shown in fig. 2, the method includes the following steps S201 to S203:
step S201 corresponds to step S101 described above, and reference may be made to the specific embodiment of step S101 described above when implemented.
Step S202, where the quota dimension is a single dimension, obtaining one resource pool of the user terminal satisfying the quota total amount from at least two candidate resource pools.
Here, the quota total may refer to the total amount of resources that the user terminal needs to use. Taking a preset mobile cloud quota management system architecture as an example for explanation, the mobile cloud quota management system architecture is a central node (also called a central node gateway) and a plurality of home resource pool nodes (also called home resource pools), the central node is responsible for maintaining data such as quota indexes, provides functions such as inquiring and modifying corresponding quota data, and the plurality of home resource pool nodes can provide quota management and control functions for service calling parties to use. Aiming at the quota index corresponding to the quota request, setting the quota index carrying the quota dimension aiming at the number of the resource pools, so that the quota index is controlled separately in a single resource pool and multiple resource quotas, thus being beneficial to realizing the differentiated control of different resource pools and different quota indexes, realizing the quota allocation and management and control of users aiming at the dimension of the resource pools, and the like.
For example: under the condition that the identity of the user terminal is legal, the residual usage of each affiliated resource pool resource can be determined from all affiliated resource pools associated with the quota center, the affiliated resource pools with the residual usage meeting the configuration total amount of the user terminal are determined, and any affiliated resource pool is randomly acquired from the affiliated resource pools with the residual usage meeting the configuration total amount of the user terminal and is allocated to the user terminal; the single resource pool dimension quota (that is, the quota when the quota dimension is a single dimension) can be understood as controlling the use of resources of the user terminal in a single resource pool, the resources between the resource pools are mutually independent, the use of the resources is also effective in the resource pool, and other resource pools are not affected by the resource pool.
Step S203, where the quota dimension is at least two dimensions, obtaining at least two resource pools of the user terminal that satisfy the quota total amount from the at least two candidate resource pools.
Here, taking the case that the identity of the user terminal is determined to be legal and the quota dimension is 2 dimensions as an example for explanation, the remaining usage of resources of each home resource pool can be determined from all home resource pools associated with the quota center, 2 home resource pools of which the sum of the remaining usage meets the configuration total amount of the user terminal are determined, the obtained 2 home resource pools are allocated to the user terminal, and the resources of the 2 resource pools of the user terminal are shared; the multiple resource pool dimension quota (that is, the quota when the quota dimension is multiple dimensions) can be understood as a quota index shared across the resource pools, so as to limit the total amount of the same user terminal subscribed to the resource in multiple resource pools, wherein the quota usage amounts in the resource pools are mutually related, not independent of each other, and thus, the coordinated control of the multiple resource pool quota allocation is facilitated.
In the embodiment of the disclosure, the quota dimension can accurately carry out single-resource-pool dimension quota or multi-resource-pool dimension quota on the user terminal, which is beneficial to realizing differentiated control of different resource pools and different quota indexes, realizing quota allocation and management and control for resource pool dimension users, and the like.
The embodiment of the disclosure provides a resource quota method, as shown in fig. 3, including the following steps S301 to S305:
step S305 corresponds to step S102 described above, and reference may be made to the specific embodiment of step S102 described above when implemented.
Step S301, determining a user type matched with the user information in response to receiving the quota request of the user terminal.
Here, the user information matrix can be parsed to obtain the type identifier; determining a user type matched with the type identifier based on a corresponding relation between the preset type identifier and the user type, wherein, for example, the first type identifier corresponds to a first user type and the second type identifier corresponds to a second user type; the first user type may be a general user, the second user type may be a member user, and the like.
Step S302, a candidate quota set matched with the user type is determined.
Here, the correspondence between different user types and different candidate quota sets may be preset, for example, a first user type corresponds to a first candidate quota set, and a second user type corresponds to a second candidate quota set. The candidate quota set may include at least two candidate quota values, where the candidate quota values are used to characterize a quota index, for example, a first candidate quota value may be determined as a total quota of the current user terminal, a second candidate quota value may be determined as a total quota of the current user terminal, and so on.
Step S303, obtaining a candidate quota value matched with the reading grade from the candidate quota set according to the preset reading grade.
Here, the reading level may refer to a priority of acquiring candidate quota values from the candidate quota set, for example, the candidate quota set includes 3 candidate quota values, each candidate quota value corresponds to a different reading level, the reading level of the first candidate quota value is highest, the reading level of the second candidate quota value is centered, and the reading level of the third candidate quota value is lowest, then the first candidate quota value may be determined as the quota total amount of the current user terminal first. The quota center may receive the control instruction of the user, and adjust the reading level, for example, receive the control instruction of the user, adjust the first priority to the second priority, and then determine the second candidate quota value as the total quota of the current user terminal. In some embodiments, the remaining usage of all the resources of the resource pool associated with the quota center may be further determined, a current reading level corresponding to the current remaining usage is determined based on a corresponding relationship between a preset remaining usage range and the reading level, and then a corresponding candidate quota value is determined based on the current reading level.
And step S304, determining the candidate quota value matched with the reading grade as the total quota of the user terminal.
Here, the current read level is the first priority, and then the first candidate quota value may be determined as the total quota of the current user terminal. In some embodiments, when a candidate quota value (also referred to as a quota default) is read, three levels may be set: the priority can be reduced in turn by the user-level quota limit, the user group quota limit and the default quota limit of the product, so that differentiated control of user resource ordering is realized, and the quota values enjoyed by users of different user groups can be different. When the user reads the quota total amount of the quota index, the user preferentially reads the user-level quota limit, then reads the user group quota limit, finally reads the default quota limit of the product, and if one of the default quota limits is read, the candidate quota value corresponding to the limit is used as the quota total amount of the user terminal.
In the embodiment of the disclosure, the total quota is obtained through the preset reading level, so that differentiated control of resource ordering can be realized, and users of different user groups can enjoy different quota values.
In some embodiments, the step S102 may include the following steps S311 to S313:
step S311, obtaining verification information in response to receiving the quota request of the user terminal.
Here, the verification information may include one or more of whether the identifier corresponding to the resource pool is empty, whether the quota total amount of the quota operation is greater than zero, whether the name corresponding to the quota index is present, whether the user information is present, and the like. For example: and the quota center reads the identifier corresponding to the resource pool, determines that the identifier is not empty, and the like.
Step S312, the verification information is verified by using a preset query interface, and a verification result is obtained.
Here, the query interface may refer to an interface for verifying verification information, such as a query interface (Quota). The acquired verification information can be input to a query interface to obtain a verification result; the verification result comprises verification success, verification failure and the like, a preset verification mode exists in the query interface, and the verification result is verification success under the condition that preset verification conditions are met; and under the condition that the preset checking condition is not met, checking results are checking failure and the like. For example: the verification information is that the mark corresponding to the resource pool is empty, and the name corresponding to the quota index exists, so that the verification fails; and if the verification information is that the identifier corresponding to the resource pool is not empty and the name corresponding to the quota index exists, the verification is successful.
Step S313, determining a quota index matched with the user information in the quota request when the verification result characterizes that the verification is successful.
Here, the process of performing quota on the user terminal may be referred to as quota engineering (Op-policy-quota), and the current usage scenario of mobile cloud quota engineering may be quota management and control of resources at a quota center. After the quota engineering is realized, the quota engineering can provide management of resource quota for other engineering such as storage engineering, network engineering, key management engineering, shared traffic packet engineering and the like, for example, the quota engineering provides functions such as checking, increasing, reducing, inquiring and the like of users or resource quota for other engineering. The storage engineering (Op-policy-opening-volume) may provide product related interfaces such as object storage, the network engineering (Op-policy-opening-network) may provide product related interfaces such as firewall, security group, instance (Havip), etc., the key management engineering (Op-policy-opening-back) may store keys for each engineering, the shared traffic package engineering (Op-policy-shared-network-traffic-packet) may provide functional interfaces such as traffic package product order unsubscribe, etc.
In the embodiment of the disclosure, the quota center checks the check information by using a preset query interface to obtain a check result; under the condition that the verification result represents successful verification, quota indexes matched with user information in the quota request can be accurately and rapidly determined, and resource quota management is provided for other preset projects by using realized quota projects, so that the interaction efficiency among projects and the like can be improved.
The embodiment of the disclosure provides a resource quota method, wherein a quota center comprises a management module. As shown in fig. 4, the method includes the following steps S401 to S404:
steps S401 to S402 correspond to steps S101 to S102, respectively, and reference may be made to the specific embodiments of steps S101 to S102.
Step S403, storing the quota index, the correspondence between the quota index and the resource pool of the user terminal to the management module.
Here, the management module may refer to a module only deployed on a central node in the mobile cloud quota management system architecture, and is configured to perform maintenance processing such as recording, modification, query, and the like on data such as quota indexes. In order to facilitate maintenance and management of quota indexes and other data (such as total quota, maximum quota, minimum quota, alarm threshold and the like), the quota indexes and other data of each attribute resource pool can be uniformly migrated to a management module of a central node for maintenance, so that the quota indexes and other data of other models of a quota center (such as used quota and the like) are isolated. The management module may also be called a quota management end, and an operation and maintenance person may log in the operation and maintenance management platform, through which the operation and maintenance person may view, add, modify data (such as a quota total amount, a maximum value, a minimum value, an alarm threshold value, etc.) such as a quota index. The operation and maintenance management platform can be equipment which is provided for operation and maintenance personnel to use, can examine and approve the quota lifting operation initiated by the user, modify data such as user quota indexes and the like, and inquire functions such as user quota use details and the like.
Step S404, in response to the operation for the management model, the management module of the quota center processes the quota index in a processing manner matched with the operation, so as to obtain a processed quota index.
Here, the operations may include at least one of: viewing, adding and modifying. For example: responding to the modification operation of the operation and maintenance personnel on the quota total in the quota index, and obtaining the modified quota total; the management module can carry out quota on the user terminal again based on the modified quota total amount to obtain an updated resource pool of the user terminal and the like.
In the embodiment of the disclosure, the quota index, the corresponding relation among the quota index and the resource pool of the user terminal are stored in the management module, so that isolation between the quota index and data of other models of the quota center is facilitated; meanwhile, based on the management module, the data such as quota indexes can be accurately and rapidly checked, added and modified.
In some embodiments, the quota center includes a quota module. After implementing step S102, the method may further include the following steps S411 to S413:
step S411, in response to obtaining the quota total amount in the quota index from the management module of the quota center, determining, by using the quota module of the quota center, a current usage amount of the resource pool of the user terminal.
Here, the quota module, which may also be referred to as a user side quota module, may be deployed in each attribute resource pool, and is used for providing a call to a quota service party (i.e. a product side), and is responsible for completing the processing of checking, increasing, decreasing, freezing, releasing, querying, and the like, on the data such as the used quota amount. When calculating the residual usage of a certain resource pool of a user, the quota module can interact with the management module to obtain the total quota corresponding to the user; and reading quota-generic usage data, and calculating to obtain quota residual usable quantity, wherein the value of the quota residual quantity is obtained by subtracting the usage value from the total value.
Step S412, determining, by using a quota module of the quota center, a remaining usage amount of the resource pool of the user terminal based on the quota total amount and the current usage amount.
Here, the current usage amount in the resource pool corresponding to the user terminal may be read, and the obtained quota total amount is subtracted from the obtained current usage amount to obtain the remaining usage amount of the resource.
Step S413, adjusting the state of the resource pool of the user terminal based on the remaining usage amount, to obtain an adjusted state.
Here, the adjusting may include at least one of: quota checking, quota updating, quota freezing, quota thawing, and the like. The state of the resource pool may include a check state, an update state, a freeze state, etc., and the state of the resource pool may be changed by processing the resources in the resource pool. For example: after the current residual usage amount of the resources is obtained, the current residual usage amount is updated to the corresponding residual usage amount of the user terminal, so that the update of the resource usage condition state in the resource pool is realized, and the current residual usage amount is sent to the user terminal and the like.
According to the embodiment of the disclosure, the quota model can be used for rapidly and accurately performing quota verification, quota update, quota freezing, quota thawing and the like, so that the state of the resource pool is adjusted, and the state is timely reported to the user terminal and the like.
The application of the resource quota method provided by the embodiment of the present disclosure in an actual scenario is described below by taking a scenario of a mobile cloud quota management system architecture set based on a user terminal, a quota center, and other devices as an example. As shown in fig. 5, the quota management system may include components of a user terminal 502, a central node gateway 503, a primary gateway node 504, a secondary gateway node 505, a product side 506, a quota center 507, a home resource pool 508, and the like.
The user 501 can generate a quota request through a front end portal page console subscription portal on the user terminal 502, the user terminal 502 sends the quota request to the central node gateway 503, and the central node gateway 503 forwards the quota request horizontally to the middle level gateway 504; alternatively, the user terminal 502 may directly send the quota request to the primary gateway 504, etc.; the primary gateway 504 forwards the quota request to the secondary gateway 505, and the secondary gateway 505 sends the quota request to the quota center 507 and the like; the product side may refer to each product module on the mobile cloud, such as a host, a hard disk, an internet protocol, and the like, and the product side may also be referred to as a service caller of the quota; the number of the primary gateway 504, the secondary gateway node 505, and the product side 506 may be plural, which is not limited herein.
Quota center 507 may include a quota management platform 5071, a management module 5072, and a quota module 5073, where an operator may control management module 5072 through quota management platform 5071, so that management module 5072 processes data such as a quota index, so that quota module 5073 performs quota on user terminal 502 to obtain at least one home resource pool 508 corresponding to user terminal 502; the management module 5072 may be a module of the central node gateway 503 only deployed in the mobile cloud quota management system architecture, and is configured to perform maintenance processing such as recording, modifying, querying, etc. on data such as quota indexes; quota module 5073 may be deployed in each of the affiliated resource pools 508, and is configured to provide a call to product side 506, and is responsible for completing the processing of checking, adding, subtracting, freezing, releasing, querying, etc. data such as a used quota amount; the number of the management modules 5072 and the home resource pools 508 may be plural, and is not limited herein. For example, the home resource pool 508 includes a first home resource pool located in a first area, a second home resource pool located in a second area, and so on.
The embodiment of the disclosure provides a quota management system for high-performance distributed uniform quota management, which is converted into client-level verification by removing department-level verification, so that concurrency of the system is enhanced; meanwhile, quota deduction, modification and other management are realized based on remote dictionary service (Remote Dictionary Server, redis) distributed locks, and the requirements of a distributed system are met; in addition, quota management and control of multiple resource pool dimensions can be realized, and constraint and sharing of total quota among resource pools and the like are realized.
The embodiment of the disclosure provides a multi-resource-pool quota dimension processing method, as shown in fig. 6, the method may include the following steps S601 to S604:
step S601, a quota request of a user terminal is obtained.
Here, the user terminal responds to the operation of the user for ordering the resource, generates a quota request, and sends the quota request to the quota center through a center node gateway and other devices, so that the quota center obtains the quota request.
Step S602, determining whether the quota dimension corresponding to the quota request is multidimensional.
Here, the quota center determines the quota dimension corresponding to the quota request, then determines that the quota dimension is single-dimension or multi-dimension, if the quota dimension is multi-dimension, then step S603 is entered, and preset multi-resource pool quota dimension processing logic is executed; if the quota dimension is a single dimension, step S604 is performed to execute the preset single resource pool quota dimension processing logic.
Step S603, determining at least two resource pools of the user terminal.
Here, the multi-resource pool quota dimension processing logic may implement a call by the user terminal to resources in multiple resource pools, where the resources in the multiple resource pools may be shared.
Step S604, determining a resource pool of the user terminal.
Here, the single resource pool quota dimension processing logic may implement invocation of resources in one resource pool by the user terminal.
The embodiment of the disclosure provides a method for determining a total quota, as shown in fig. 7, three levels may be set when a default value of the total quota 701 is read: the user-level quota limit 702, the user group quota limit 703 and the default quota limit 704 of the product are sequentially reduced in priority, the current limit is read according to the current priority, and the quota value corresponding to the current limit is determined to be the total quota, so that differentiated control of resource ordering is realized, and the quota values enjoyed by users of different user groups are different.
In the embodiment of the disclosure, the management module and the quota module can be separately set, so that the data in the management module and the data in the quota module are isolated. As shown in fig. 8, the operator 801 may process the quota index through the management module 802, where the operations include at least one of: checking, adding and modifying; wherein, the management module 802 may maintain metadata of the middle quota index, the used quota amount, and the like, the metadata may be stored in the database 8021, and the management module 802 may send the metadata to the quota module 803 by using the dis cache 8022; the quota module 803 may store metadata in the database 8031, determine that data such as a quota amount has been used in the database 8031, and the quota management platform 8032 may perform operations such as reading, writing, etc. on metadata in the database 8031 in response to detection (Check), reduction (Minus), synchronization (Sync), acquisition (Get), freezing (Freeze), thawing (Release), modification, etc. of personnel such as a product manager 804, so as to implement adjustment such as quota checking, quota updating, quota freezing, quota thawing, etc. of a resource pool of a user terminal; therefore, the quota is reduced, frozen and released by using the Redis distributed lock, the consistency of service logic operation data is improved, the phenomenon that excessive sales or less sales are caused due to the fact that quota deduction is not right is reduced, and the accuracy, the high efficiency and the like of quota management and control are improved.
In the embodiment of the present disclosure, a process of performing quota on a user terminal may be referred to as quota engineering, as shown in fig. 9, after implementing quota engineering 901, quota engineering 901 may provide management of resource quota for other engineering such as storage engineering 902, network engineering 903, key management engineering 904, shared traffic packet engineering 905, etc., for example, quota engineering provides functions of checking, adding, subtracting, querying, etc. of user or resource quota for other engineering.
The embodiment of the disclosure provides a method for quota of resource pools in different dimensions, as shown in fig. 10, the method may include the following steps S1001 to S1007:
step S1001, in response to receiving the quota request of the user terminal, acquiring verification information.
Here, the verification information may include one or more of whether the identifier corresponding to the resource pool is empty, whether the quota total amount of the quota operation is greater than zero, whether the name corresponding to the quota index is present, whether the user information is present, and the like. For example: and the quota center reads the identifier corresponding to the resource pool, determines that the identifier is not empty, and the like.
Step S1002, determining whether the check information is preset with the preset query interface.
Here, the query interface may refer to an interface for verifying verification information, such as a query interface (Quota). The acquired verification information can be input to a query interface to obtain a verification result; the verification result comprises verification success, verification failure and the like, a preset verification mode exists in the query interface, and if the verification result is verification success under the condition that the preset verification condition is met, the step S1003 is entered; and if the verification result is verification failure and the like under the condition that the preset verification condition is not met, ending the flow.
Step S1003, determining whether the quota dimension corresponding to the quota request is multidimensional.
Here, if the quota dimension is a plurality of dimensions, step S1004 is performed; if the quota dimension is one dimension, the process proceeds to step S1006.
Step S1004, executing multi-resource pool quota dimension processing logic.
Here, the multi-resource pool quota dimension processing logic may implement a call by the user terminal to resources in multiple resource pools, where the resources in the multiple resource pools may be shared.
Step S1005, storing configuration information of a plurality of resource pools of the user terminal to the center node gateway.
Here, after determining the multiple resource pools allocated by the user terminal, configuration information such as names and quota amounts of the multiple resource pools may be stored in the central node gateway, for example, a management module deployed on the central node gateway.
Step S1006, executing single resource pool quota dimension processing logic.
Here, the single resource pool quota dimension processing logic may implement invocation of resources in one resource pool by the user terminal.
Step S1007, storing configuration information of the single resource pool of the user terminal to the quota module.
Here, after determining the single resource pool allocated by the user terminal, configuration information such as a name of the single resource pool and a total quota amount may be stored in a quota module, for example, a database in a home resource pool.
The embodiment of the present disclosure provides a resource ordering method, as shown in fig. 11, which may include the following steps S1101 to S1109:
step S1101, performing quota checking by using the detection interface.
Here, the order page may refer to a display page on the user terminal that may be used for performing resource order, and the user may operate on the order page, thereby transmitting a flow of resource order. The detection interface may be a Check interface for quota checking. The quota checking is used for verifying whether the residual quota amount in the associated resource pool of the user terminal meets the newly added quota index; if the verification result is that the verification is successful, the user can initiate a product ordering flow through an ordering page, and a product side can initiate freezing quota operation in advance; if the verification fails, the product ordering process is ended, and the like.
Step S1102, in response to the user' S order operation, initiates a product order flow.
Here, the order page may initiate a product order procedure to the product side in response to an order operation initiated by the user through the user terminal. The product side may refer to each product module on the mobile cloud, such as a host, a hard disk, a public network IP, etc., and the product side may also be referred to as a service caller of a quota, etc., which may be understood as the product side carries resources.
Step S1103, freezing the resource pool by using the freezing interface to obtain the preemption quota, generating a preemption serial number, and sending the preemption serial number to the product side.
Here, the product ordering process may include: and (3) utilizing the freezing interface to preempt the resource quantity meeting the newly added quota index from the resource pool to obtain frozen quota quantity (namely preempted quota), generating a preempted serial number (serial No) by the quota center after the preempted quota is successful, and feeding back the preempted serial number to the product side.
Step S1104, executing the internal business logic.
Here, the internal business logic may include reading a remaining quota amount of the home resource pool, and the like.
Step S1105, creating a resource order based on the pre-emption serial number, and transmitting the pre-emption serial number to the product side after the creation is successful.
Here, the product side sends a response carrying the pre-occupied serial number to the user terminal, and the user terminal can create a resource order, generate callback information carrying the pre-occupied serial number, and callback the callback information to the product side.
Step S1106, after the order creation is successful, the frozen quota amount is converted into a used quota amount.
After the quota center determines that the order creation is successful, if the user needs to use the frozen quota amount, quota thawing operation of the frozen quota amount can be initiated by using the pre-occupied water number corresponding to the frozen quota amount, and the frozen quota amount is converted into the used quota amount.
Step S1107, a repair request carrying the pre-occupied serial number is generated, and the repair request is sent to the product side.
Here, in the case that the order needs to be repaired, the user terminal may initiate secondary repair of the order, where the transmitted repair request carries the pre-occupied serial number.
In step S1108, internal business logic is executed.
Here, the internal business logic may include adjustments to quota indicators or the like.
Step S1109, converting the frozen quota amount into a used quota amount by utilizing the unfreezing interface.
Here, the configuration center may defrost the interface, initiate a quota defrost operation for freezing the quota amount based on the pre-occupied water number corresponding to the frozen quota amount, convert the frozen quota amount into a used quota amount, and so on. The freezing interface and the thawing interface are matched, the same pre-occupied serial number can be released for a plurality of times until the current frozen quantity of the serial number is released to zero, and the pre-occupied serial number is invalid.
The embodiment of the disclosure provides a resource unsubscribing method, as shown in fig. 12, which may include the following steps S1201 to S1206:
step S1201, a resource unsubscribe request is sent to the product side.
Here, the unsubscribed page may refer to a display page on the user terminal that may be used for resource unsubscribing, and the user may operate on the unsubscribed page, so as to send a flow of resource unsubscribing. By responding to the unsubscribe operation of the user, the unsubscribe page can generate a resource unsubscribe request carrying the pre-occupied serial number.
Step S1202, execute internal business logic.
Here, the internal business logic may include reading a remaining quota amount of the home resource pool, and the like.
Step S1203, update the resources in the resource pool by using the reduced interface to obtain the updated remaining usage of the user terminal.
Here, the user initiates a unsubscribing process to the product side through a unsubscribing page on the user terminal, so that the current residual usage of the resource pool of the user terminal in the control quota center of the product side subtracts the used quota amount, and the updated residual usage of the user terminal is obtained.
In step S1204, the updated remaining usage is recorded.
Here, the quota center may update the remaining usage of the resource pool for the user terminal on the quota module or the association model.
Step S1205, determines that the remaining usage update is successful.
Here, the quota center may send a response to the product side that the remaining usage update was successful.
In step S1206, unsubscribing is determined to be successful.
Here, the product side may send a response to the user terminal that the resource unsubscribe is successful.
In the related technology, the mobile cloud quota provides two sets of quota logic to realize quota management and control, one set is to control the process of ordering resources by users to create orders, and the quota management and control during ordering is realized by setting the total amount of users of each quota item and the usage amount of each user which is a certain quota index; when the order is successfully created, the quota flow is twisted to the product side, the product side opens the resource, and after the resource is successfully opened, a second set of quota logic is called to realize quota deduction operation and the like. When the quota usage reaches the total quota, the quota is prompted to be insufficient when the user places an order, so that the limitation of the user resource ordering amount is reached, and the purpose of quota management and control is achieved. When the quota is insufficient, the quota expanding process is needed; in order to meet the needs of some special users, the total quota value is often required to be modified, and then a background operation and maintenance personnel is required to manually adjust the total quota amount of the users for all the resource databases, so that the method is not flexible and convenient.
In the embodiment of the disclosure, the quota management function can pull through quota management control of the whole mobile cloud, and provides reliable, efficient and stable quota interface (Application Program Interface, API) capability for the outside. Mobile cloud quota management and control in related technology is only limited to main products of infrastructure as a service (Infrastructure as a Service, iaaS), various quota requirements of all products of the whole mobile cloud can be managed after a quota center is online in the embodiment of the disclosure, quota modules are independently decoupled, and product research and development, cloud uploading, operation and maintenance speeds, efficiency and the like are improved.
First,: the mobile cloud quota function can be divided into a multi-resource-pool quota and a single-resource-pool quota, the multi-resource-pool quota can enable users to share the quota of the quota in a plurality of resource pools, and the quota of the single-resource-pool quota is independent in each resource pool and does not affect each other, so that management and control of the dimension of the resource pool quota are realized.
Secondly, in order to optimize quota internal check logic, in the embodiment of the present disclosure, a time-consuming flow of quota check between multiple departments may be removed, and by replacing an online flow with a client-level quota check, an unstable check is converted into a stable check flow, so that response time of an interface is reduced, and concurrency performance of the interface is improved.
Meanwhile, the management module is abstracted from the subordinate resource pool, so that the data of the management module is separated from the data of the quota module, various independent control and decoupling of a code layer are realized, and the management and maintenance of a later operation and maintenance platform are facilitated; the management module can also provide the management function of the basic data for the user terminal, so as to achieve the complementary effect. Based on the characteristics, the designed quota module simultaneously introduces a quota freezing flow, specifically, after front-end quota verification is passed, a resource ordering request reaches each product side, the product side can immediately initiate a quota freezing operation, and specific frozen quota deduction can be carried out after specific resources are opened; if the user has successfully placed an order, but has not paid, the quota center needs to release the corresponding quota. The order is successfully created, but after the resource is opened and fails, the order needs to be repaired for the second time, and the corresponding quota needs to be released after the order is successfully repaired, and the like. After the frozen quota is successful, a fixed unique pre-occupied serial number is generated, and the pre-occupied serial number must be carried for corresponding quota release.
Finally, when the user needs to apply for expanding the quota value, the user can independently initiate a quota expanding application, after the application is completed, the application flow can jump to a quota approval page on the user terminal, the user waits for approval of the quota on a quota management interface, an administrator approves the quota according to the current state of the resources of the current resource pool, and the result is sent to the user in a short message mode. Therefore, linkage between the user and the management side is facilitated, intervention of operation and maintenance personnel is reduced, and user experience and the like are improved.
Based on the foregoing embodiments, the embodiments of the present disclosure provide a resource quota apparatus, where the apparatus includes units included, and modules included by the units may be implemented by a processor in a computer device; of course, the method can also be realized by a specific logic circuit; in practice, the processor may be a central processing unit (Central Processing Unit, CPU), microprocessor (MicroprocessorUnit, MPU), digital signal processor (Digital Signal Processor, DSP), field Programmable Gate Array (FPGA), or the like.
Fig. 13 is a schematic structural diagram of a resource quota device provided by an embodiment of the disclosure, and as shown in fig. 13, a resource quota device 1300 includes: a first determination module 1310 and an allocation module 1320, wherein:
a first determining module 1310, configured to determine, in response to receiving a quota request of a user terminal, a quota indicator matched with user information in the quota request; wherein the quota index comprises at least a quota dimension; and the allocation module 1320 is configured to, when the identity of the user terminal is legal, perform quota on the user terminal based on the quota index by adopting a quota manner matched with the quota dimension, so as to obtain at least one resource pool corresponding to the user terminal.
In some embodiments, the quota index includes at least a quota total; the distribution module is further configured to: acquiring one resource pool of the user terminal meeting the quota total amount from at least two candidate resource pools under the condition that the quota dimension is a single dimension; acquiring at least two resource pools of the user terminal meeting the quota total amount from the at least two candidate resource pools under the condition that the quota dimension is at least two dimensions; wherein resources of at least two of the resource pools of the user terminal are shared.
In some embodiments, the first determining module is further configured to: responding to the quota request of the user terminal, and determining the user type matched with the user information; determining a candidate quota set matched with the user type; wherein the candidate quota set comprises at least two candidate quota values; according to a preset reading grade, acquiring a candidate quota value matched with the reading grade from the candidate quota set; and determining the candidate quota value matched with the reading grade as the total quota of the user terminal.
In some embodiments, the quota center includes a management module; the apparatus further comprises: the storage module is used for storing the quota index, the corresponding relation among the quota index and the resource pool of the user terminal to the management module; wherein the management module is used for maintaining the quota index; the processing module is used for responding to the operation aiming at the management model, and the management module of the quota center adopts a processing mode matched with the operation to process the quota index to obtain a processed quota index; wherein the operations include at least one of: viewing, adding and modifying.
In some embodiments, the quota center includes a quota module; the apparatus further comprises: a second determining module, configured to determine, by using a quota module of the quota center, a current usage amount of a resource pool of the user terminal in response to acquiring a quota total amount in the quota index from a management module of the quota center; a third determining module, configured to determine, using a quota module of the quota center, a remaining usage amount of a resource pool of the user terminal based on the total quota amount and the current usage amount; the adjustment module is used for adjusting the state of the resource pool of the user terminal based on the residual usage amount to obtain an adjusted state; wherein the adjusting comprises at least one of: quota checking, quota updating, quota freezing, and quota thawing.
In some embodiments, the first determining module is further configured to: acquiring verification information in response to receiving a quota request of the user terminal; checking the checking information by using a preset query interface to obtain a checking result; under the condition that the verification result represents that verification is successful, determining a quota index matched with user information in the quota request; the quota engineering characterized by the quota is used for providing management of resource quota for other preset engineering, and the other engineering comprises at least one of the following steps: storage engineering, network engineering, key management engineering, and shared traffic packet engineering.
In some embodiments, the apparatus further comprises: the freezing module is used for performing quota freezing treatment on the residual usage amount to obtain a preemptive quota amount and a preemptive serial number under the condition that the residual usage amount of the resource pool of the user terminal meets a preset condition; the defrosting module is used for performing quota defrosting processing on the pre-occupied quota amount based on the pre-occupied serial number under the condition that the pre-set product ordering is successful, so as to obtain the used quota amount; the used quota amount is used for updating the residual usage amount of the resource pool of the user terminal after the product unsubscribes successfully.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. In some embodiments, functions or modules included in the apparatus provided by the embodiments of the present disclosure may be used to perform the methods described in the embodiments of the method, and for technical details not disclosed in the embodiments of the apparatus of the present disclosure, please understand with reference to the description of the embodiments of the method of the present disclosure.
It should be noted that, in the embodiment of the present disclosure, if the above-mentioned resource quota method is implemented in the form of a software function module, and is sold or used as a separate product, the resource quota method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be essentially or portions contributing to the related art, and the software product may be stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the present disclosure are not limited to any specific hardware, software, or firmware, or any combination of the three.
The disclosed embodiments provide a computer device comprising a memory storing a computer program executable on the processor and a processor implementing some or all of the steps of the above method when the processor executes the program.
The disclosed embodiments provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs some or all of the steps of the above method. The computer readable storage medium may be transitory or non-transitory.
The disclosed embodiments provide a computer program comprising computer readable code which, when run in a computer device, performs some or all of the steps for implementing the methods described above.
Embodiments of the present disclosure provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program which, when read and executed by a computer, performs some or all of the steps of the above-described method. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In some embodiments, the computer program product is embodied as a computer storage medium, in other embodiments the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It should be noted here that: the above description of various embodiments is intended to emphasize the differences between the various embodiments, the same or similar features being referred to each other. The above description of apparatus, storage medium, computer program and computer program product embodiments is similar to that of method embodiments described above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the disclosed apparatus, storage medium, computer program and computer program product, please refer to the description of the embodiments of the disclosed method.
It should be noted that, fig. 14 is a schematic diagram of a hardware entity of a computer device in an embodiment of the disclosure, as shown in fig. 14, the hardware entity of the computer device 1400 includes: a processor 1401, a communication interface 1402 and a memory 1403, wherein:
the processor 1401 generally controls the overall operation of the computer device 1400.
The communication interface 1402 may enable the computer device to communicate with other terminals or servers over a network.
The memory 1403 is configured to store instructions and applications executable by the processor 1401, and may also cache data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or processed by each module in the processor 1401 and the computer device 1400, and may be implemented by a FLASH memory (FLASH) or a random access memory (RandomAccess Memory, RAM). Data transfer may occur over the bus 1404 between the processor 1401, the communication interface 1402 and the memory 1403.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present disclosure, the size of the sequence numbers of the steps/processes described above does not mean the order of execution, and the order of execution of the steps/processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation of the embodiments of the present disclosure. The foregoing embodiment numbers of the present disclosure are merely for description and do not represent advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present disclosure may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the present disclosure may be embodied essentially or in part in a form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The methods disclosed in the several method embodiments provided in the present disclosure may be arbitrarily combined without collision to obtain a new method embodiment.
If the embodiment of the disclosure relates to personal information, the product applying the embodiment of the disclosure clearly informs the personal information processing rule and obtains personal autonomous consent before processing the personal information. If the disclosed embodiments relate to sensitive personal information, the product to which the disclosed embodiments are applied has obtained individual consent before processing the sensitive personal information, and at the same time meets the requirement of "explicit consent".
The foregoing is merely an embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think about the changes or substitutions within the technical scope of the present disclosure, and should be covered by the protection scope of the present disclosure.

Claims (10)

1. A resource quota method, applied to a quota center, comprising:
responding to a quota request of a receiving user terminal, and determining a quota index matched with user information in the quota request; wherein the quota index comprises at least a quota dimension;
and under the condition that the identity of the user terminal is legal, adopting a quota mode matched with the quota dimension, and performing quota on the user terminal based on the quota index to obtain at least one resource pool corresponding to the user terminal.
2. The method of claim 1, wherein the quota index comprises at least a total quota amount; the quota method matched with the quota dimension is adopted, the quota is carried out on the user terminal based on the quota index, at least one resource pool corresponding to the user terminal is obtained, and the method comprises the following steps:
acquiring one resource pool of the user terminal meeting the quota total amount from at least two candidate resource pools under the condition that the quota dimension is a single dimension;
acquiring at least two resource pools of the user terminal meeting the quota total amount from the at least two candidate resource pools under the condition that the quota dimension is at least two dimensions; wherein resources of at least two of the resource pools of the user terminal are shared.
3. The method of claim 2, wherein the determining, in response to receiving a quota request for a user terminal, a quota indicator that matches user information in the quota request comprises:
responding to the quota request of the user terminal, and determining the user type matched with the user information;
determining a candidate quota set matched with the user type; wherein the candidate quota set comprises at least two candidate quota values;
According to a preset reading grade, acquiring a candidate quota value matched with the reading grade from the candidate quota set;
and determining the candidate quota value matched with the reading grade as the total quota of the user terminal.
4. The method of claim 1, wherein the quota center comprises a management module; the method further comprises the steps of:
storing the quota index, the corresponding relation among the quota index and the resource pool of the user terminal to the management module; wherein the management module is used for maintaining the quota index;
responding to the operation aiming at the management model, the management module of the quota center adopts a processing mode matched with the operation to process the quota index to obtain a processed quota index; wherein the operations include at least one of: viewing, adding and modifying.
5. The method of claim 4, wherein the quota center comprises a quota module; the method further comprises the steps of:
in response to obtaining the total quota in the quota index from the management module of the quota center, determining a current usage amount of the resource pool of the user terminal by using the quota module of the quota center;
Determining the residual usage of the resource pool of the user terminal based on the total quota and the current usage by using a quota module of the quota center;
based on the residual usage amount, adjusting the state of the resource pool of the user terminal to obtain an adjusted state; wherein the adjusting comprises at least one of: quota checking, quota updating, quota freezing, and quota thawing.
6. The method of claim 1, wherein the determining, in response to receiving a quota request for a user terminal, a quota indicator that matches user information in the quota request comprises:
acquiring verification information in response to receiving a quota request of the user terminal;
checking the checking information by using a preset query interface to obtain a checking result;
under the condition that the verification result represents that verification is successful, determining a quota index matched with user information in the quota request; the quota engineering characterized by the quota is used for providing management of resource quota for other preset engineering, and the other engineering comprises at least one of the following steps: storage engineering, network engineering, key management engineering, and shared traffic packet engineering.
7. The method according to any one of claims 1 to 6, further comprising:
under the condition that the residual usage amount of the resource pool of the user terminal meets a preset condition, performing quota freezing treatment on the residual usage amount to obtain a preemptive quota amount and a preemptive serial number;
under the condition that the preset product ordering is successful, carrying out quota thawing treatment on the pre-occupied quota amount based on the pre-occupied serial number to obtain a used quota amount; the used quota amount is used for updating the residual usage amount of the resource pool of the user terminal after the product unsubscribes successfully.
8. A resource quota device, applied to a quota center, comprising:
the first determining module is used for determining a quota index matched with user information in a quota request in response to receiving the quota request of the user terminal; wherein the quota index comprises at least a quota dimension;
and the allocation module is used for carrying out quota on the user terminal based on the quota index by adopting a quota mode matched with the quota dimension under the condition that the identity of the user terminal is legal, so as to obtain at least one resource pool corresponding to the user terminal.
9. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202211448668.3A 2022-11-18 2022-11-18 Resource quota method, device, equipment and storage medium Pending CN116775267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211448668.3A CN116775267A (en) 2022-11-18 2022-11-18 Resource quota method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211448668.3A CN116775267A (en) 2022-11-18 2022-11-18 Resource quota method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116775267A true CN116775267A (en) 2023-09-19

Family

ID=87984799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211448668.3A Pending CN116775267A (en) 2022-11-18 2022-11-18 Resource quota method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116775267A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117827453A (en) * 2023-12-29 2024-04-05 柏域信息科技(上海)有限公司 Storage resource ordering method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117827453A (en) * 2023-12-29 2024-04-05 柏域信息科技(上海)有限公司 Storage resource ordering method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
CN113342478B (en) Resource management method, device, network system and storage medium
CN110909373B (en) Access control method, equipment, system and storage medium
CN111460506A (en) Data access control method and device
CN109960551A (en) Cloud desktop services method, platform and computer readable storage medium
CN110888858B (en) Database operation method and device, storage medium and electronic device
WO2022143174A1 (en) Data transmission method and apparatus, device, storage medium, and computer program product
CN111932239B (en) Service processing method, device, node equipment and storage medium
CN109639598A (en) Request processing method, server, storage medium and device based on micro services
CN111127181A (en) Voucher bookkeeping method and device
CN116775267A (en) Resource quota method, device, equipment and storage medium
CN110138767A (en) Processing method, device, equipment and the storage medium of transactions requests
CN114490826B (en) Request response method, data storage method, device, server and storage medium
CN103428260A (en) System and method for allocating server to terminal and efficiently delivering messages to the terminal
CN112231415B (en) Data synchronization method and system of block chain network, electronic device and readable medium
CN113010238A (en) Permission determination method, device and system for micro application call interface
CN116886718A (en) Data storage method and device based on transaction weight
CN113300866A (en) Node capacity control method, device, system and storage medium
US20240184799A1 (en) A system and method for exchanging and managing data stored in heterogeneous data sources
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN105519055A (en) Dynamic equilibrium method and apparatus for QoS of I/O channel
CN113691575B (en) Communication method, device and system
WO2023124685A1 (en) Pcc policy control method, pcf, smf, and communication system
US11102329B2 (en) Miniaturized network nodes
CN112749880A (en) Information processing method, information processing device and electronic equipment

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