CN110764899A - Resource quota management method, resource processing method, device, equipment, system and medium - Google Patents

Resource quota management method, resource processing method, device, equipment, system and medium Download PDF

Info

Publication number
CN110764899A
CN110764899A CN201910829930.0A CN201910829930A CN110764899A CN 110764899 A CN110764899 A CN 110764899A CN 201910829930 A CN201910829930 A CN 201910829930A CN 110764899 A CN110764899 A CN 110764899A
Authority
CN
China
Prior art keywords
resource
quota
service
processing
request
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
CN201910829930.0A
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.)
Wuxi Huayun Data Technology Service Co Ltd
Original Assignee
Wuxi Huayun Data Technology Service 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 Wuxi Huayun Data Technology Service Co Ltd filed Critical Wuxi Huayun Data Technology Service Co Ltd
Priority to CN201910829930.0A priority Critical patent/CN110764899A/en
Publication of CN110764899A publication Critical patent/CN110764899A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

When a resource service receives a resource processing request sent by a service layer, the resource service generates a resource quota application request according to resources required by the resource processing request and sends the resource quota application request to the resource quota service. And when the resource requested by the resource quota application request meets the preset quota condition, the resource quota service returns a resource quota permission to the resource service and freezes the resource, thereby realizing the resource quota. And when the resource service receives the resource quota permission returned by the resource quota service, the resource is adopted to process the resource processing request. In the whole process, the resource quota service only needs to interact with the resource service, but does not need to interact with the service layer, so that the service link is reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.

Description

Resource quota management method, resource processing method, device, equipment, system and medium
Technical Field
The present application relates to the field of resource processing, and in particular, to a method, an apparatus, a device, a system, and a medium for resource quota management and resource processing.
Background
With the continuous development of society, the application of distributed systems is more and more extensive. However, in the distributed system, each resource is dispersed in each resource microservice, and management and statistics of resource quotas are troublesome. Therefore, how to realize the allocation and management of the resource quotas becomes a problem to be solved urgently in the distributed system at present. At present, a conventional method for allocating and managing resource quotas is to abstract an aggregated service layer dedicated to service processing and quota management in a distributed system. The service layer is connected with the aggregation service layer in a butt joint mode, the aggregation service layer carries out resource quota according to the request of the service layer, and the resource service is informed to process the request of the service layer after the quota is successful. However, in the current method, the request of the service layer needs to pass through the aggregation service layer before reaching the resource service, which increases the links of the service, so that the system reliability is low, the network Input Output (IO) consumption is large, and the performance is relatively poor in a concurrent service scenario.
Disclosure of Invention
An object of the embodiments of the present application is to provide a resource quota management method, a resource processing method, an apparatus, a device, a system, and a medium, so as to solve the problems that in the related art, a service link is added, so that system reliability is low, network IO consumption is large, and performance is relatively poor in a concurrent service scenario.
An embodiment of the present application provides a resource quota management method, including: receiving a resource quota application request sent by a resource service; judging whether the resource requested by the resource quota application request meets a preset quota condition; and when the resource requested by the resource quota application request meets a preset quota condition, freezing the resource, and returning a resource quota permission to the resource service, so that the resource service performs resource processing according to the resource quota permission.
In the implementation process, when a resource quota application request sent by a resource service is received, whether the resource requested by the resource quota application request meets a preset quota condition is judged. And when the resource requested by the resource quota application request meets the preset quota condition, the resource is frozen, and the resource quota permission is returned to the resource service, so that the resource service can perform resource processing according to the resource quota permission, and the effective allocation and management of the resource quota are realized. Meanwhile, in the whole resource quota management method, only the resource service is required to be interacted, and the service layer is not required to be interacted, so that the service link is reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.
Further, the determining whether the resource requested by the resource quota application request meets a preset quota condition includes: judging whether the resource requested by the resource quota application request is requested by other resource quota application requests; if so, sequencing the resource quota application request by starting a distributed lock for the resource, and determining that the resource requested by the resource quota application request meets a preset quota condition after the other resource quota application requests sequenced before the resource quota application request finish using the resource; if not, determining that the resource requested by the resource quota application request meets a preset quota condition.
In the implementation process, when the resource requested by the resource quota application request is also requested by other resource quota application requests, the resource quota application requests requesting the same resource are sequenced by adopting a distributed lock scheme, so that the resource is sequentially requested for each resource quota application. Therefore, the multiple resource quota application requests are mutually exclusive to the uniform resource, the mutual interference among the resource quota application requests is effectively prevented, and the consistency and controllability of the resource quota process are ensured.
Further, the resource quota managing method further includes: receiving a resource processing result of the resource service corresponding to the resource quota application request; and managing the resource quota according to the resource processing result.
In the implementation process, a resource processing result of the resource service corresponding to the resource quota application request is received, and resource quota management is performed according to the resource processing result. Thereby further ensuring the effectiveness of the whole resource quota process.
Further, the performing resource quota management according to the resource processing result includes: when the resource processing result is a success result, processing the resource according to a processing mode corresponding to the resource type of the resource; and when the resource processing result is a failure result, unfreezing the resource.
In the implementation process, when the resource processing result is a failure result, it indicates that the resource related to the quota is not effectively utilized, and therefore, the resource related to the quota can be unfrozen, so that the resource can be used as a quota resource to apply for a service for a new resource quota. And when the resource processing result is a successful result, processing the resource according to the resource type of the resource and the processing mode corresponding to the resource type. This ensures that the management of the resource quotas is valid.
Further, the processing the resource according to the processing mode corresponding to the resource type of the resource includes: when the resource type of the resource is an occupied resource, removing the resource from the quota-available resource; and when the resource type of the resource is the non-occupied resource, unfreezing the resource.
In the implementation process, for the occupied class resources (such as the memory, etc.), the part of the quota is continuously occupied when the processing result is that the processing is successful, so that the part can not be used as a new resource quota application request for quota again, and at this time, the part of the quota can be removed from the quota-available resources. For non-occupied resources (such as processors and the like), when the processing result is that the processing is successful, the resources are idle again, so that the resources can be used as a new resource quota application request to carry out quota, and at the moment, the resources can be unfrozen to be used as quota-capable resources. This ensures that the management of the resource quotas is valid.
Further, after the performing resource quota management according to the resource processing result, the method further includes: and generating a log record aiming at the resource processing result and the resource quota management process.
In the implementation process, the log record is generated according to the resource processing result and the resource quota management process, so that corresponding log information can be called at a later stage according to needs, and traceability of the resource quota management process is realized.
Further, the receiving a resource processing result of the resource service corresponding to the resource quota application request includes: and receiving a resource processing result of the resource service corresponding to the resource quota application request, which is sent by the middleware.
In the implementation process, the middleware is used for receiving the resource processing result of the resource service, so that the reliability of information transmission is ensured. Meanwhile, the middleware is used for receiving the resource processing result of the resource service, so that the resource service can execute the next resource processing request without depending on the feedback of the quota service, the freedom degree of the resource service is improved, and the performance in a concurrent service scene is improved.
The embodiment of the application further provides a resource processing method, which comprises the following steps: when a resource processing request sent by a service layer is received, a resource quota application request is generated according to resources required by the resource processing request, and the resource quota application request is sent to a resource quota service; and when receiving the resource quota permission returned by the resource quota service, processing the resource processing request by adopting the resource.
In the implementation process, when a resource processing request sent by a service layer is received, a resource quota application request is generated according to resources required by the resource processing request, the resource quota application request is sent to a resource quota service, and when a resource quota permission returned by the resource quota service is received, the resource processing request is processed by adopting the resources which are obtained to be permitted. Therefore, the whole resource processing method can directly interact with the business service layer, and the resource quota service does not need to interact with the business service layer, so that business links are reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent business scene is improved.
Further, after the processing the resource processing request by using the resource, the method further includes: and generating a log record aiming at the process of processing the resource processing request by adopting the resource.
In the implementation process, the log record is generated aiming at the process of processing the resource processing request by adopting the resource, so that corresponding log information can be called at a later stage according to needs, and the traceability of the resource processing process is realized.
Further, after the processing the resource processing request by using the resource, the method further includes: sending a resource processing result of the resource to the quota service through a preset middleware, and receiving a received notification returned by the middleware; the next resource handling request is handled according to the received notification.
In the implementation process, the resource processing result is sent out through the middleware, and only the received notification returned by the middleware needs to be received, so that the reliability of information transmission is ensured, and meanwhile, the next resource processing request can be executed without depending on the feedback of quota service, the degree of freedom is improved, and the performance in a concurrent service scene is improved.
The embodiment of the application further provides a resource processing method, which comprises the following steps: when receiving a resource processing request sent by a service layer, a resource service generates a resource quota application request according to resources required by the resource processing request and sends the resource quota application request to a resource quota service; the resource quota service judges whether the resource requested by the resource quota application request meets a preset quota condition; when the resource requested by the resource quota application request meets a preset quota condition, returning a resource quota permission to the resource service, and freezing the resource; and when receiving the resource quota permission returned by the resource quota service, the resource service processes the resource processing request by adopting the resource.
In the implementation process, when receiving a resource processing request sent by a service layer, a resource service generates a resource quota application request according to a resource required by the resource processing request, and sends the resource quota application request to a resource quota service. And the resource quota service judges whether the resource requested by the resource quota application request meets a preset quota condition, and when the resource requested by the resource quota application request meets the preset quota condition, returns a resource quota permission to the resource service and freezes the resource, thereby realizing the resource quota. And when the resource service receives the resource quota permission returned by the resource quota service, the resource is adopted to process the resource processing request. In the whole process, the resource quota service only needs to interact with the resource service, but does not need to interact with the service layer, so that the service link is reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.
An embodiment of the present application further provides a resource quota management apparatus, including: the method comprises the following steps: the device comprises a receiving module, a judging module and a first processing module; the receiving module is used for receiving a resource quota application request sent by a resource service; the judging module is used for judging whether the resource requested by the resource quota applying request meets a preset quota condition; the first processing module is configured to freeze the resource and return a resource quota permission to the resource service when the resource requested by the resource quota application request meets a preset quota condition, so that the resource service performs resource processing according to the resource quota permission.
In the implementation process, when a resource quota application request sent by a resource service is received, whether the resource requested by the resource quota application request meets a preset quota condition is judged. And when the resource requested by the resource quota application request meets the preset quota condition, the resource is frozen, and the resource quota permission is returned to the resource service, so that the resource service can perform resource processing according to the resource quota permission, and the effective allocation and management of the resource quota are realized. Meanwhile, in the whole resource quota management method, only the resource service is required to be interacted, and the service layer is not required to be interacted, so that the service link is reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.
An embodiment of the present application further provides a resource processing apparatus, including: the method comprises the following steps: a request module and a second processing module; the request module is used for generating a resource quota application request according to resources required by the resource processing request when receiving the resource processing request sent by a service layer, and sending the resource quota application request to a resource quota service; and the second processing module is used for processing the resource processing request by adopting the resource when receiving the resource quota permission returned by the resource quota service.
In the implementation process, when a resource processing request sent by a service layer is received, a resource quota application request is generated according to resources required by the resource processing request, the resource quota application request is sent to a resource quota service, and when a resource quota permission returned by the resource quota service is received, the resource processing request is processed by adopting the resources which are obtained to be permitted. Therefore, the whole resource processing method can directly interact with the business service layer, and the resource quota service does not need to interact with the business service layer, so that business links are reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent business scene is improved.
An embodiment of the present application further provides a resource processing system, including: the method comprises the following steps: a resource processing device and a resource quota management device; the resource processing device is used for generating a resource quota application request according to the resource required by the resource processing request when receiving the resource processing request sent by the service layer, and sending the resource quota application request to the resource quota management device; the resource quota management device is used for judging whether the resource requested by the resource quota application request meets a preset quota condition; when the resource requested by the resource quota application request meets a preset quota condition, returning a resource quota permission to the resource processing device, and freezing the resource; and the resource processing device is also used for processing the resource processing request by adopting the resource when receiving the resource quota permission returned by the resource quota management device.
In the implementation process, when receiving a resource processing request sent by a service layer, a resource processing device generates a resource quota application request according to a resource required by the resource processing request, and sends the resource quota application request to a resource quota management device. And the resource quota management device judges whether the resource requested by the resource quota application request meets a preset quota condition, returns a resource quota permission to the resource processing device when the resource requested by the resource quota application request meets the preset quota condition, and freezes the resource, thereby realizing the resource quota. And when receiving the resource quota permission returned by the resource quota management device, the resource processing device processes the resource processing request by adopting the resource. In the whole process, the resource quota management device only needs to interact with the resource processing device, but does not need to interact with the service layer, so that service links are reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.
The embodiment of the application also provides electronic equipment, which comprises a processor, a memory and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute one or more first programs stored in the memory to implement the first resource quota managing method; or, the processor is configured to execute one or more second programs stored in the memory to implement the steps of the second resource processing method.
An embodiment of the present application further provides a readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the resource quota management method according to the first embodiment, or to implement the steps of the resource processing method according to the second embodiment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a resource quota management method on a resource quota service side according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a resource processing method of a resource service side according to an embodiment of the present application;
fig. 3 is a schematic diagram of an interaction process of a resource service and a resource quota service provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a more specific interaction process of a resource service and a resource quota service according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application;
FIG. 6 is a diagram illustrating a more detailed resource handling process according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a resource quota management apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The first embodiment is as follows:
in the embodiment of the application, in order to solve the problems that the related technology increases a service link, so that the system reliability is low, the network IO consumption is large, and the performance is relatively poor in a concurrent service scene, a resource quota mainly composed of a resource service and a resource quota service and a processing framework are established.
In the embodiment of the present application, the resource service interfaces with the business service layer, so as to receive the resource processing request of the business service layer. In order to process the resource processing request, the resource service needs to call the corresponding resource to process the resource processing request, which requires the coordination of the resource quota service. In the embodiment of the application, when receiving a resource processing request of a service layer, a resource service may generate a resource quota application request according to a resource required by the resource processing request, and then send the resource quota application request to the resource quota service. It should be noted that the business service layer is an abstraction layer directly or indirectly interfacing with the user and generating resource processing tasks, and may be arranged on the entity such as a terminal, a server, etc. in the form of program software, etc.
In practical applications, the resource service and the resource quota service may be implemented by a dedicated program or platform, respectively. It can be set up on different electronic devices (such as server, etc.), or can be set up on the same device. In order to better describe the scheme of the embodiment of the present application, a single-side description is first performed from two directions, namely, the resource quota service side and the resource service side, and then an interactive process between the resource quota service side and the resource service side is described (see the description of the second embodiment). The embodiment of the application has the following specific implementation modes:
referring to fig. 1, fig. 1 is a schematic flowchart of a resource quota management method provided in an embodiment of the present application, and is applied to a resource quota service, where the method includes:
s101: and receiving a resource quota application request sent by the resource service.
It should be noted that the resource quota service in the embodiment of the present application is used for performing resource quota management, and the resource service may be used for calling a relevant resource to perform resource processing.
S102: and judging whether the resource requested by the resource quota application request meets a preset quota condition.
In the embodiment of the present application, the resource quota service is used for performing resource quota management. It should be noted that the resource in the embodiment of the present application refers to a corresponding resource that can be used in resource processing by a computer, such as a processor resource, a memory resource, a process number resource, and the like.
In the embodiment of the present application, what the quota resource is in the resource quota service is determined, and if the resource requested by the resource quota application request is not in the quota resource, the resource requested by the resource quota application request does not meet the preset quota condition. Otherwise, it may be determined that the resource requested by the resource quota application request satisfies the preset quota condition.
In this embodiment of the present application, when a resource requested by a resource quota application request does not satisfy a preset quota condition, a message that a resource quota is insufficient and a quota cannot be performed may be fed back to a resource service that sends the resource quota application request, so that the resource service requests a new resource again, or abandons resource processing, and the like.
In a feasible implementation manner of the embodiment of the present application, if all resources requested by the resource quota application request are available in the quota available resources, it may be determined whether the resources requested by the resource quota application request are requested by other resource quota application requests. If the resource requested by the resource quota application request is not requested by other resource quota application requests (i.e., the resource requested by the resource quota application request is idle), it may be determined that the resource requested by the resource quota application request satisfies a preset quota condition.
In the above feasible embodiment, when the resource requested by the resource quota application request is requested by another resource quota application request, the resource quota application request may be sequenced by using the distributed lock for the resource, and after the other resource quota application requests sequenced before the resource quota application request are used for the resource, it is determined that the resource requested by the resource quota application request satisfies the preset quota condition. For example, resource quota application request 1 requests resource a, and resource quota application requests 2 and 3 also request resource a, then the resource quota service enables the distributed lock to order resource quota application requests 1-3 that request resource a. If the resource quota application request 2 is arranged before the resource quota application request 1, when the resource a is used by the resource quota application request 2 and can still be used after the resource a is used by the resource quota application request 2, or when the resource processing of the resource service corresponding to the resource quota application request 2 fails, the resource a is granted to the resource quota application request 1. It should be noted that, in this embodiment of the application, the resource quota enabled service may sequence the resource quota application requests according to the order in which the resource quota application requests are received.
It should be further noted that, in the embodiment of the present application, the resources are divided into occupied resources and unoccupied resources. The occupation of the class resources means that once the resource service is successfully processed after the quota is given to the resource service, the resource is continuously occupied, and the quota cannot be carried out before the resource is released, such as memory class resources and the like. For example, the resource requested by the resource quota application request 1 is the whole memory 1, and after the resource service processing service corresponding to the resource quota application request 1 succeeds, the processing data is stained in the whole memory 1. At this time, for the resource quota service, the memory 1 is no longer a quota resource, and is removed from the quota resource. For such a situation, if the resource quota application request is in the process of waiting for sorting, sorting can be continued, and the requested resource is resumed from the quota-available resource. In addition, it may also feed back a message that the resource quota is insufficient and the quota cannot be performed to the resource service that sent the resource quota application request. In this embodiment, the non-occupied resource refers to a resource that is not occupied after the resource service is successfully processed after the quota is given to the resource service, such as a processor.
S103: when the resource requested by the resource quota application request meets a preset quota condition, the resource is frozen, and a resource quota permission is returned to the resource service, so that the resource service performs resource processing according to the resource quota permission.
In the embodiment of the present application, the resource service performing resource processing means that the resource service performs resource processing using a permitted resource.
In the embodiment of the application, when determining that the resource requested by the resource quota application request meets the preset quota condition, the resource quota service automatically generates the corresponding resource quota permission and returns the resource quota permission to the resource service, so that the resource service can be further processed.
In the embodiment of the application, when determining that the resource requested by the resource quota application request meets the preset quota condition, the resource quota service can also freeze the resource requested by the resource quota application request, so that the condition that after the resource service requested by the resource quota application request is granted, the resource service corresponding to other resource quota application requests is granted by quota is avoided, and the reliability of the resource quota management process is ensured. It should be noted that in the embodiment of the present application, there is no strict timing restriction between the two operation steps when the resource quota permission is returned to the resource service and the resource is frozen.
It should be appreciated that there may be only one resource requested by a resource quota application request, or there may be multiple resources. When the resources requested by the resource quota application request are various, if at least one resource does not meet the preset quota condition and is waiting in a sequencing mode, the resource quota permission can be returned to the resource service when all the requested resources meet the preset quota condition.
In this embodiment of the present application, the resource quota service may further receive a resource processing result of the resource service corresponding to the resource quota application request. And then performing resource quota management according to the received resource processing result.
It should be understood that, in order to ensure that when the resource quota service receives the resource processing result of the resource service requested by the resource quota application request, it can know which resources are frozen in the resource quota service corresponding to the resource processing result, and when the resource quota permission is generated, the resource quota service can add the unique identifier of the resource quota application request to the permission, and record which resources are frozen corresponding to the resource quota application request. When the resource service returns the resource processing result, the resource service carries the unique identifier (a feasible implementation manner is that the resource quota license is carried in the resource processing result), so that when the resource quota service receives the resource processing result, which resource quota application request corresponds to can be determined according to the unique identifier carried by the resource processing result, which frozen resources correspond to.
It should be noted that, in this embodiment of the present application, the unique identifier of the resource quota application request may be generated by the resource quota service, and is used to uniquely identify one resource quota application request. The specific generation rule is not limited in the embodiment of the present application.
In the embodiment of the present application, when the resource quota service performs resource quota management according to the resource processing result, the frozen resource may be thawed when the resource processing result is failure. When the resource processing result is failure, that is, the resource processing fails after the related resource of the quota is adopted by the resource service, and the related resource is not effectively utilized. After the resources are unfrozen, the resources are the quota resources, so that quota can be applied according to the resource quota, the resource utilization rate is improved, and the management effectiveness of the resource quota is ensured.
In a feasible implementation manner of the embodiment of the present application, when the resource type of the resource is an occupied resource, the resource may be removed from the quota-capable resource; and when the resource type of the resource is the non-occupied resource, unfreezing the resource. In the foregoing, the definitions of the occupied class resource and the non-occupied class resource have been explained, so that when the resource type of the resource is the occupied class resource, and when the resource processing result fed back by the resource service is successful, the resource is consumed and cannot be quota again, and therefore, the resource can be removed from the quota-available resource to ensure the reliability of resource quota management. When the resource type of the resource is the non-occupied resource, the resource is idle again after the resource service finishes using the resource, and the resource can be reused for quota, so that the utilization rate of the resource is ensured.
In this embodiment of the present application, reference may be made to fig. 2 for processing executed by a resource service side, where fig. 2 is a schematic flow diagram of a resource processing method provided in this embodiment of the present application, and the method includes:
s201: when a resource processing request sent by a service layer is received, a resource quota application request is generated according to resources required by the resource processing request, and the resource quota application request is sent to a resource quota service.
In the embodiment of the application, when receiving a resource processing request sent by a service layer, a resource service analyzes the resource processing request, determines a required resource, and further generates a resource quota application request according to the required resource and sends the resource quota application request to the resource quota service.
S202: and when receiving the resource quota permission returned by the resource quota service, processing the resource processing request by adopting the resource of the requested quota.
When receiving the resource quota permission returned by the resource quota service, it indicates that the resource of the requested quota meets the preset quota condition, and the resource can be used for resource processing.
It is to be noted that, in the embodiment of the present application, after the resource processing request is processed, a processing result (i.e., the resource processing result described above) may be returned to the resource quota service. In the embodiment of the application, the resource processing result is atomicity, namely, only success and failure results. In this embodiment of the present application, a transmission of a resource processing result between a resource service and a resource quota service may be implemented through a middleware. In general, the processing capability of a resource service for a resource processing request is linear, that is, the next resource processing request can be processed after the previous processing is completed. However, in order to ensure the accuracy of the resource processing flow, after the resource service sends the resource processing result, it needs to receive the message that the opposite end has confirmed that it has received, and then can process the next resource processing request. When the middleware is adopted to realize the transmission of the resource processing result, the middleware returns a received notice to the resource service after receiving the resource processing result after the resource service sends the resource processing result to the middleware, so that the resource service can continue to process the next resource processing request without being concerned about whether the resource quota service is really received or not. And the middleware only needs to send the resource processing result to the resource quota service after receiving the resource processing result. In this embodiment of the present application, n (n is greater than or equal to 1) of the resource processing result may be set to be sent to the resource quota service, so as to ensure that the resource quota service receives the resource processing result. It may also be configured that the resource quota service sends the resource processing result, and the resource quota service needs to feed back a received notification to the middleware after receiving the resource processing result, and the middleware automatically resends the resource processing result after sending the resource processing result and once m (m is greater than 0) seconds is exceeded, until receiving the received notification for the resource processing result returned by the resource quota service. Of course, in this embodiment of the present application, it may also be set that the resource service may directly send the resource processing result to the resource quota service, and continue to process the next resource processing request when the received notification returned by the resource quota service is received.
The middleware described in the embodiments of the present application is software or hardware having an information transmitting and receiving function. For example, the middleware may be a message bus, a host with information processing capability, or the like.
It is to be noted that, in the embodiment of the present application, the resource service may further generate a log record for a process of processing the resource processing request by using the resource with the quota, so that the corresponding log information may be called at a later stage as needed, thereby implementing traceability of the resource processing process.
Similarly, in the embodiment of the present application, the resource quota service may generate a log record for the received resource processing result and the resource quota management process, so that corresponding log information may be called at a later stage as needed, thereby implementing traceability of the resource quota management process.
It should be noted that the scheme provided in the embodiment of the present application may be applied to any scenario or system that needs resource quota management, for example, may be applied to a distributed application system.
In summary, the resource quota management method and the resource processing method provided in the embodiments of the present application can implement effective allocation and management of resource quotas, and in the whole resource quota management method, the resource quota service only needs to interact with the resource service, but does not need to interact with the service layer, thereby reducing links of services, improving system reliability, reducing network IO consumption, and improving performance in a concurrent service scenario.
Example two:
embodiments describe the solution of the present application by standing on both sides of a resource service and a resource quota service, respectively. In order to enable readers to understand the scheme of the embodiment of the present application more easily, the embodiment describes the scheme of the embodiment of the present application with an interaction process of a resource service and a resource quota service on the basis of the first embodiment.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating interaction between a resource service and a resource quota service.
S301: when receiving a resource processing request sent by a service layer, a resource service generates a resource quota application request according to resources required by the resource processing request.
S302: and sending the resource quota application request to the resource quota service.
S303: and when the resource requested by the resource quota application request meets a preset quota condition, the resource quota service returns a resource quota permission to the resource service.
In this embodiment of the present application, the returned resource quota license may carry a unique identifier of the resource quota application request.
S304: the resources are frozen.
It should be noted that there is no strict timing constraint between freezing a resource and returning a resource quota grant to a resource service.
S305: and when receiving the resource quota permission returned by the resource quota service, the resource service processes the resource processing request by adopting the quota resource.
After the resource quota service returns the resource quota permission to the resource service and freezes the resource, it indicates that the resource quota is successful, and the resource service can process the resource processing request by using the resource with the quota.
In the embodiment of the present application, as shown in fig. 4, after step S304, the method may further include:
s306: and the resource service sends the resource processing result to the preset middleware.
The resource processing result is a result of processing the resource processing request by the resource service. In this embodiment, the middleware may be a message bus or other device having an information transceiving function.
It should be further noted that the resource quota permission may be carried in the resource processing result, so that the resource quota service may accurately find out who is the frozen resource to be processed corresponding to the resource processing result.
S307: and when receiving the resource processing result sent by the resource service, the middleware returns the received notice to the resource service.
In the embodiment of the application, after receiving the resource processing result sent by the resource service, the middleware returns the received notification to the resource service, so that the resource service can continue to process the next resource processing request without waiting for the determination of the resource quota service.
S308: and when receiving the resource processing result sent by the resource service, the middleware sends the resource processing result to the resource quota service.
In this embodiment of the present application, it may be set that the resource processing result is sent to the resource quota service, and the resource quota service needs to feed back a received notification to the middleware after receiving the resource processing result, and the middleware automatically resends the resource processing result after sending the resource processing result and once m (m is greater than 0) seconds elapses until the received notification for the resource processing result returned by the resource quota service is received.
It should be noted that, in the embodiment of the present application, steps S307 and S308 have no strict timing relationship. That is, in the actual execution process, step S308 may be executed first, and then step S307 may be executed, or steps S307 and S308 may be executed at the same time.
In this embodiment of the application, after receiving the resource processing result, the resource quota service may perform resource management according to the resource processing result, where the resource management performed by the resource quota service is described in detail in the first embodiment, and therefore is not described herein again.
The embodiment of the present application further provides a resource processing system 100 corresponding to the method in the embodiment of the present application, where the resource processing system is capable of executing the steps related to the method in the embodiment of the present application. Referring to fig. 5, a resource processing apparatus 101 and a resource quota managing apparatus 102 are included. Wherein the content of the first and second substances,
the resource processing device 101 is configured to, when receiving a resource processing request sent by a service layer, generate a resource quota application request according to a resource required by the resource processing request, and send the resource quota application request to the resource quota management device 102;
the resource quota management device 102 is configured to determine whether a resource requested by the resource quota application request meets a preset quota condition; when the resource requested by the resource quota application request meets a preset quota condition, returning a resource quota permission to the resource processing device 101, and freezing the resource;
the resource processing apparatus 101 is further configured to process the resource processing request with a resource when receiving the resource quota permission returned by the resource quota management apparatus 102.
In addition, in this embodiment of the present application, the resource processing apparatus 101 is further configured to send a resource processing result on the resource to the resource quota management apparatus 102 through preset middleware, and receive a received notification returned by the middleware. The resource quota management apparatus 102 is further configured to receive a resource processing result of the resource processing apparatus 101, which is sent by the middleware and corresponds to the resource quota application request.
In addition, in this embodiment of the present application, the resource quota management apparatus 102 is further configured to generate a log record for the resource processing result and the resource quota management process after performing resource quota management according to the resource processing result.
Furthermore, in the embodiment of the present application, the resource processing apparatus 101 is further configured to generate a log record for a process of processing the resource processing request with the resource after processing the resource processing request with the resource.
The resource processing apparatus 101 and the resource quota management apparatus 102 may be physical apparatuses such as a server and a terminal, or may be virtual apparatuses installed in physical devices in the form of software.
By adopting the resource processing method and the resource processing system, the resource quota can be realized, and in the whole process, the resource quota service only needs to interact with the resource service and does not need to interact with the service layer, so that the links of the service are reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in the concurrent service scene is improved.
Example three:
in this embodiment, based on the first embodiment, a more specific resource processing procedure is taken as an example to further illustrate the present application.
Referring to fig. 6, in fig. 6, steps 1.1 to 1.3 describe that, after receiving a resource processing request of an external service layer, a resource quota service sends a resource quota application request to apply for a resource quota. And when the resource requested by the resource service meets the preset quota condition, the resource quota service issues the resource quota permission to the resource service. In the 3 steps 1.1 to 1.3, if a uniform resource is requested by a plurality of resource quota application requests in the resource quota service, a distributed lock is required to sequence the resource quota application requests to ensure serial processing of the resource quota application requests, prevent interference among the resource quota application requests, and ensure consistency and controllability of a resource quota process. Steps 1.1-1.3 have only a few quota verification and permission generation processes, so that the time consumption is very little in the whole resource processing process, the quota efficiency can be improved to a certain extent, and the performance of the whole system is improved.
Steps 2.1-2.3 describe the process of resource processing and logging by the resource service after receiving the resource quota grant. It should be understood that the resource handling should be atomic, i.e., the result of the resource handling will only have both success and failure.
Steps 3.1-3.2 describe a process of sending the resource processing result carrying the resource quota grant to a preset middleware (communication bus) through an asynchronous message after the resource service processing is completed, and notifying the resource processing result carrying the resource quota grant to the resource quota service by the middleware.
It should be understood that, in the process of steps 3.1 to 3.2, by using the characteristics of asynchronism, reliability and the like of the middleware, each resource service and each resource quota service are decoupled, so that the resource services and the resource quota services do not have a direct dependency relationship, and the resource services can process a new resource processing request as long as receiving a received message of the middleware, which improves the throughput of the system. Meanwhile, as the resource service and the resource quota service are decoupled, the processing logics of the resource service and the resource quota service are mutually independent, so that the processing logics of the system can be reasonably distinguished.
Steps 4.1-4.2 describe the process of performing log recording and performing corresponding resource quota management when the resource quota service receives the processing result of "success" or "failure" of the resource service. For example, when the received resource processing result is failure, the resource is unfrozen; when the received resource processing result is successful, if the resource type of the resource is an occupied resource, removing the resource from the quota-capable resource; and when the resource type of the resource is the non-occupied resource, unfreezing the resource and the like.
By the scheme, the quota of the resource can be conveniently managed and counted, the resource is processed in a centralized mode, each resource service does not need to be managed by independently processing the resource quota, interfaces of management and counting are not needed to be provided independently, and the resource quota service can be realized by the resource quota service. Meanwhile, in the whole process, the resource quota service only needs to interact with the resource service, but does not need to interact with the service layer, so that the service link is reduced, the system reliability is improved, the network IO consumption is reduced, and the performance in a concurrent service scene is improved.
Example four:
based on the same inventive concept, the embodiment of the present application further provides a resource quota management apparatus 102 and a resource processing apparatus 101. Referring to fig. 7 and 8, fig. 7 shows a resource quota management apparatus using the resource quota management method shown in fig. 1, and fig. 8 shows a resource processing apparatus using the resource processing method shown in fig. 2. It should be understood that the apparatus 102 corresponds to the method embodiment of fig. 1 described above, and is capable of performing the various steps involved in the method of fig. 1 described above; the apparatus 101 corresponds to the method embodiment of fig. 2 described above, and is capable of performing the various steps involved in the method of fig. 2 described above. The specific functions of the devices 101 and 102 can be referred to the description in the first embodiment, and the detailed description is appropriately omitted here to avoid redundancy. It should be noted that the devices 101 and 102 include at least one software functional module that can be stored in a memory in the form of software or firmware or solidified in the operating system of the devices 101 and 102. Specifically, the method comprises the following steps:
referring to fig. 7, the apparatus 102 includes: a receiving module 1021, a determining module 1022 and a first processing module 1023. Wherein:
the receiving module 1021 is configured to receive a resource quota application request sent by a resource service;
the determining module 1022 is configured to determine whether a resource requested by the resource quota application request meets a preset quota condition;
the first processing module 1023 is configured to freeze the resource and return a resource quota permission to the resource service when the resource requested by the resource quota application request meets a preset quota condition, so that the resource service performs resource processing according to the resource quota permission.
In this embodiment of the present application, the determining module 1022 is specifically configured to determine whether a resource requested by a resource quota application request is requested by another resource quota application request; if so, sequencing the resource quota application requests by starting the distributed lock for the resources, and determining that the resources requested by the resource quota application requests meet a preset quota condition after the other resource quota application requests sequenced before the resource quota application requests finish using the resources; if not, determining that the resource requested by the resource quota application request meets the preset quota condition.
In this embodiment of the present application, the receiving module 1021 is further configured to receive a resource processing result of a resource service corresponding to the resource quota application request; the first processing module 1023 is further configured to perform resource quota management according to the resource processing result.
In this embodiment, the first processing module 1023 is specifically configured to, when the resource processing result is a successful result, process the resource according to the resource type of the resource and the processing mode corresponding to the resource type; and when the resource processing result is a failure result, unfreezing the resource.
In this embodiment of the present application, the first processing module 1023 is specifically configured to remove a resource from a quota-capable resource when the resource type of the resource is an occupied resource; and when the resource type of the resource is the non-occupied resource, unfreezing the resource.
In this embodiment of the application, the first processing module 1023 is further configured to generate a log record for the resource processing result and the resource quota management process after performing resource quota management according to the resource processing result.
In this embodiment of the present application, the receiving module 1021 is specifically configured to receive a resource processing result of a resource service corresponding to a resource quota application request, which is sent by a middleware.
Referring to fig. 8, the apparatus 101 comprises: a requesting module 1011 and a second processing module 1012. Wherein:
the request module 1011 is configured to generate a resource quota application request according to a resource required by the resource processing request when receiving the resource processing request sent by the service layer, and send the resource quota application request to the resource quota service;
the second processing module 1012 is configured to process the resource processing request by using the resource when receiving the resource quota permission returned by the resource quota service.
In this embodiment, the second processing module 1012 is further configured to generate a log record for a process of processing the resource processing request by using the resource.
In this embodiment of the application, the second processing module 1012 is further configured to send a resource processing result of the resource to the resource quota service through a preset middleware, and receive a received notification returned by the middleware after the resource processing request is processed by the resource.
It is to be understood that the content of the method steps of fig. 1 described in the first embodiment can be implemented by the apparatus 102 of the present embodiment, and the content of the method steps of fig. 2 described in the first embodiment can be implemented by the apparatus 101 of the present embodiment, and for the sake of brevity, no further description is provided in this embodiment.
Example five:
the present embodiment provides an electronic device, which is shown in fig. 9 and includes a processor 901, a memory 902, and a communication bus 903. Wherein:
the communication bus 903 is used for connection communication between the processor 901 and the memory 902.
The processor 901 is configured to execute one or more first programs stored in the memory 902 to implement the steps of the resource quota management method in the first embodiment;
alternatively, the processor 901 is configured to execute one or more second programs stored in the memory 902 to implement the steps of the resource processing method in the first embodiment.
It should be understood that the configuration shown in fig. 9 is merely illustrative, and that the electronic device may include more or fewer components than shown in fig. 9, or have a different configuration than shown in fig. 9. It should also be understood that, in the embodiment of the present application, the electronic device may be a server or the like.
The present embodiment further provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (secure digital Card), an MMC (Multimedia Card), etc., where one or more programs for implementing the above steps are stored in the readable storage medium, and the one or more programs may be executed by one or more processors to implement the steps of the resource quota management method in the first embodiment or the steps of the resource processing method in the first embodiment. And will not be described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method for resource quota management, comprising:
receiving a resource quota application request sent by a resource service;
judging whether the resource requested by the resource quota application request meets a preset quota condition;
and when the resource requested by the resource quota application request meets a preset quota condition, freezing the resource, and returning a resource quota permission to the resource service, so that the resource service performs resource processing according to the resource quota permission.
2. The method for resource quota management according to claim 1, wherein the determining whether the resource requested by the resource quota application request satisfies a preset quota condition comprises:
judging whether the resource requested by the resource quota application request is requested by other resource quota application requests;
if so, sequencing the resource quota application request by starting a distributed lock for the resource, and determining that the resource requested by the resource quota application request meets a preset quota condition after the other resource quota application requests sequenced before the resource quota application request finish using the resource;
if not, determining that the resource requested by the resource quota application request meets a preset quota condition.
3. The resource quota management method of claim 1, wherein the resource quota management method further comprises:
receiving a resource processing result of the resource service corresponding to the resource quota application request;
and managing the resource quota according to the resource processing result.
4. The method for resource quota management as claimed in claim 3, wherein the performing resource quota management according to the resource processing result comprises:
when the resource processing result is a success result, processing the resource according to a processing mode corresponding to the resource type of the resource;
and when the resource processing result is a failure result, unfreezing the resource.
5. The method for resource quota management according to claim 4, wherein the processing the resource according to the processing manner corresponding to the resource type of the resource comprises:
when the resource type of the resource is the occupied resource, removing the resource from the quota-available resource;
and when the resource type of the resource is the non-occupied resource, unfreezing the resource.
6. The method for resource quota management according to claim 3, wherein after the performing resource quota management according to the resource processing result, the method further comprises:
and generating a log record aiming at the resource processing result and the resource quota management process.
7. The method for resource quota management according to any of claims 3-6, wherein the receiving a resource processing result of the resource service corresponding to the resource quota application request comprises:
and receiving a resource processing result of the resource service corresponding to the resource quota application request, which is sent by the middleware.
8. A method for processing resources, comprising:
when a resource processing request sent by a service layer is received, a resource quota application request is generated according to resources required by the resource processing request, and the resource quota application request is sent to a resource quota service;
and when receiving the resource quota permission returned by the resource quota service, processing the resource processing request by adopting the resource.
9. The resource processing method of claim 8, after said processing the resource processing request with the resource, further comprising:
and generating a log record aiming at the process of processing the resource processing request by adopting the resource.
10. The resource processing method according to claim 8 or 9, further comprising, after said processing the resource processing request with the resource,:
sending a resource processing result of the resource to the resource quota service through a preset middleware, and receiving a received notification returned by the middleware;
the next resource handling request is handled according to the received notification.
11. A method for processing resources, comprising:
when receiving a resource processing request sent by a service layer, a resource service generates a resource quota application request according to resources required by the resource processing request and sends the resource quota application request to a resource quota service;
the resource quota service judges whether the resource requested by the resource quota application request meets a preset quota condition; when the resource requested by the resource quota application request meets a preset quota condition, returning a resource quota permission to the resource service, and freezing the resource;
and when receiving the resource quota permission returned by the resource quota service, the resource service processes the resource processing request by adopting the resource.
12. A resource quota management apparatus, comprising: the device comprises a receiving module, a judging module and a first processing module;
the receiving module is used for receiving a resource quota application request sent by a resource service;
the judging module is used for judging whether the resource requested by the resource quota applying request meets a preset quota condition;
the first processing module is configured to freeze the resource and return a resource quota permission to the resource service when the resource requested by the resource quota application request meets a preset quota condition, so that the resource service performs resource processing according to the resource quota permission.
13. A resource processing apparatus, comprising: a request module and a second processing module;
the request module is used for generating a resource quota application request according to resources required by the resource processing request when receiving the resource processing request sent by a service layer, and sending the resource quota application request to a resource quota service;
and the second processing module is used for processing the resource processing request by adopting the resource when receiving the resource quota permission returned by the resource quota service.
14. A resource processing system, comprising: a resource processing device and a resource quota management device;
the resource processing device is used for generating a resource quota application request according to the resource required by the resource processing request when receiving the resource processing request sent by the service layer, and sending the resource quota application request to the resource quota management device;
the resource quota management device is used for judging whether the resource requested by the resource quota application request meets a preset quota condition; when the resource requested by the resource quota application request meets a preset quota condition, returning a resource quota permission to the resource processing device, and freezing the resource;
and the resource processing device is also used for processing the resource processing request by adopting the resource when receiving the resource quota permission returned by the resource quota management device.
15. An electronic device comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more first programs stored in the memory to implement the steps of the resource quota management method according to any one of claims 1 to 7;
or the processor is configured to execute one or more second programs stored in the memory to implement the steps of the resource processing method according to any one of claims 8 to 10.
16. A readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the resource quota management method of any of claims 1 to 7, or to implement the steps of the resource processing method of any of claims 8 to 10.
CN201910829930.0A 2019-09-03 2019-09-03 Resource quota management method, resource processing method, device, equipment, system and medium Pending CN110764899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910829930.0A CN110764899A (en) 2019-09-03 2019-09-03 Resource quota management method, resource processing method, device, equipment, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910829930.0A CN110764899A (en) 2019-09-03 2019-09-03 Resource quota management method, resource processing method, device, equipment, system and medium

Publications (1)

Publication Number Publication Date
CN110764899A true CN110764899A (en) 2020-02-07

Family

ID=69329278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910829930.0A Pending CN110764899A (en) 2019-09-03 2019-09-03 Resource quota management method, resource processing method, device, equipment, system and medium

Country Status (1)

Country Link
CN (1) CN110764899A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431970A (en) * 2020-02-29 2020-07-17 深圳壹账通智能科技有限公司 Resource allocation method, device, equipment and storage medium based on micro-service architecture
CN112527504A (en) * 2020-12-17 2021-03-19 金蝶蝶金云计算有限公司 Multi-tenant resource quota management method and device, and computer equipment
CN112950065A (en) * 2021-03-29 2021-06-11 中信银行股份有限公司 Service processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093457A1 (en) * 2001-11-13 2003-05-15 Microsoft Corporation Method and system for allocating locks in a distributed environment
US20080052397A1 (en) * 2006-08-24 2008-02-28 Ramanathan Venkataraman Future locking of resources
CN101697136A (en) * 2009-10-27 2010-04-21 金蝶软件(中国)有限公司 Method and device for controlling resource
CN102081557A (en) * 2011-01-27 2011-06-01 浪潮(北京)电子信息产业有限公司 Resource management method and system in cloud computing operating system
CN103488526A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 System and method for locking business resource in distributed system
CN104838360A (en) * 2012-09-04 2015-08-12 微软技术许可有限责任公司 Quota-based resource management
CN107301091A (en) * 2016-04-14 2017-10-27 北京京东尚科信息技术有限公司 Resource allocation methods and device
CN107872499A (en) * 2016-09-28 2018-04-03 北京金山云网络技术有限公司 Service establishing method, apparatus and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093457A1 (en) * 2001-11-13 2003-05-15 Microsoft Corporation Method and system for allocating locks in a distributed environment
US20080052397A1 (en) * 2006-08-24 2008-02-28 Ramanathan Venkataraman Future locking of resources
CN101697136A (en) * 2009-10-27 2010-04-21 金蝶软件(中国)有限公司 Method and device for controlling resource
CN102081557A (en) * 2011-01-27 2011-06-01 浪潮(北京)电子信息产业有限公司 Resource management method and system in cloud computing operating system
CN104838360A (en) * 2012-09-04 2015-08-12 微软技术许可有限责任公司 Quota-based resource management
CN103488526A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 System and method for locking business resource in distributed system
CN107301091A (en) * 2016-04-14 2017-10-27 北京京东尚科信息技术有限公司 Resource allocation methods and device
CN107872499A (en) * 2016-09-28 2018-04-03 北京金山云网络技术有限公司 Service establishing method, apparatus and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111431970A (en) * 2020-02-29 2020-07-17 深圳壹账通智能科技有限公司 Resource allocation method, device, equipment and storage medium based on micro-service architecture
CN111431970B (en) * 2020-02-29 2023-05-26 深圳壹账通智能科技有限公司 Resource allocation method, device, equipment and storage medium based on micro-service architecture
CN112527504A (en) * 2020-12-17 2021-03-19 金蝶蝶金云计算有限公司 Multi-tenant resource quota management method and device, and computer equipment
CN112950065A (en) * 2021-03-29 2021-06-11 中信银行股份有限公司 Service processing method and device

Similar Documents

Publication Publication Date Title
US8533334B2 (en) Message binding processing technique
US11252220B2 (en) Distributed code execution involving a serverless computing infrastructure
CN110764899A (en) Resource quota management method, resource processing method, device, equipment, system and medium
CN111950988B (en) Distributed workflow scheduling method and device, storage medium and electronic equipment
CN109117252B (en) Method and system for task processing based on container and container cluster management system
EP1672495B1 (en) Grid parallel execution
CN111338774A (en) Distributed timing task scheduling system and computing device
CN112291372B (en) Asynchronous posting method, device, medium and electronic equipment for block chain
CN113886089A (en) Task processing method, device, system, equipment and medium
CN111586140A (en) Data interaction method and server
CN112860387A (en) Distributed task scheduling method and device, computer equipment and storage medium
CN110737514A (en) method, device and medium for ensuring consistency of final data of distributed transaction
WO2021013185A1 (en) Virtual machine migration processing and strategy generation method, apparatus and device, and storage medium
US20120054751A1 (en) Disposition determination technique
WO2023179387A1 (en) Cloud application scheduling method and apparatus, and electronic device and storage medium
CN111835809A (en) Work order message distribution method, work order message distribution device, server and storage medium
CN117009063A (en) Task execution method and device
CN115220907A (en) Resource scheduling method and device, electronic equipment and storage medium
CN115220908A (en) Resource scheduling method, device, electronic equipment and storage medium
CN113791876A (en) System, method and apparatus for processing tasks
CN113703930A (en) Task scheduling method, device and system and computer readable storage medium
CN111353811A (en) Method and system for uniformly distributing resources
CN113098705B (en) Authorization method and device for life cycle management of network service
JP2015064746A (en) Information processing system, control method and control program for information processing system
US20230195546A1 (en) Message Management Method and Apparatus, and Serverless System

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207