CN115225714B - Resource processing method and system for cloud services - Google Patents
Resource processing method and system for cloud services Download PDFInfo
- Publication number
- CN115225714B CN115225714B CN202210631717.0A CN202210631717A CN115225714B CN 115225714 B CN115225714 B CN 115225714B CN 202210631717 A CN202210631717 A CN 202210631717A CN 115225714 B CN115225714 B CN 115225714B
- Authority
- CN
- China
- Prior art keywords
- resource
- granularity
- exclusive
- server
- dedicated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000013468 resource allocation Methods 0.000 claims abstract description 154
- 238000000034 method Methods 0.000 claims abstract description 56
- 238000012545 processing Methods 0.000 claims abstract description 34
- 230000004044 response Effects 0.000 claims description 53
- 230000000694 effects Effects 0.000 abstract description 12
- 238000004140 cleaning Methods 0.000 description 19
- 238000010586 diagram Methods 0.000 description 15
- 238000002955 isolation Methods 0.000 description 14
- 238000004880 explosion Methods 0.000 description 8
- 238000012544 monitoring process Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000006854 communication Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000011084 recovery Methods 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 239000002699 waste material Substances 0.000 description 3
- 238000013475 authorization Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000001172 regenerating effect Effects 0.000 description 2
- 230000008929 regeneration Effects 0.000 description 2
- 238000011069 regeneration method Methods 0.000 description 2
- 230000007474 system interaction Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005067 remediation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1014—Server selection for load balancing based on the content of a request
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a resource processing method and a resource processing system for cloud services. The method comprises the steps of obtaining a resource allocation request from an object, wherein the resource allocation request is used for requesting to allocate the exclusive resource in cloud service for the object, the exclusive resource is the exclusive resource of the object, determining the resource granularity of the exclusive resource, wherein the resource granularity is used for representing the level of the exclusive resource, and sending the resource allocation request to a server corresponding to the resource granularity so as to trigger the server to allocate the exclusive resource for the object. The invention solves the technical problem that effective resources are difficult to allocate to the object, and achieves the technical effect of improving the allocation of the effective resources to the object.
Description
Technical Field
The invention relates to the field of resource processing, in particular to a resource processing method and system of cloud service.
Background
At present, when resource allocation is performed, cluster-level resource multi-leasing can be realized statically, but when noise neighbor (noise neighbor) problems are encountered, the explosion radius is too large, and the affected objects are too many, so that the technical problem that effective resources are difficult to allocate to the objects exists.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a resource processing method and a resource processing system for cloud service, which at least solve the technical problem that effective resources are difficult to allocate to objects.
According to one aspect of the embodiment of the invention, a resource processing method of cloud service is provided, which comprises the steps of obtaining a resource allocation request from an object, wherein the resource allocation request is used for requesting to allocate an exclusive resource in the cloud service for the object, the exclusive resource is an exclusive resource of the object, determining the resource granularity of the exclusive resource, wherein the resource granularity is used for representing the level of the exclusive resource, and sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object.
According to one aspect of the embodiment of the invention, another resource processing method of cloud service is provided from an object side, and the resource processing method comprises the steps of sending a resource allocation request to a server, wherein the resource allocation request is used for requesting to allocate dedicated resources in the cloud service for the object, the dedicated resources are resources dedicated by the object, the server corresponds to the resource granularity of the dedicated resources, and acquiring the dedicated resources returned by the server in response to the resource allocation request.
According to another aspect of the embodiment of the invention, a resource processing device of cloud service is provided, which comprises a first acquisition unit, a determination unit and a first sending unit, wherein the first acquisition unit is used for acquiring a resource allocation request from an object, the resource allocation request is used for requesting to allocate an exclusive resource in the cloud service for the object, the exclusive resource is an exclusive resource of the object, the determination unit is used for determining the resource granularity of the exclusive resource, the resource granularity is used for representing the level of the exclusive resource, and the first sending unit is used for sending the resource allocation request to a server corresponding to the resource granularity so as to trigger the server to allocate the exclusive resource for the object.
According to another aspect of the embodiment of the invention, a resource processing device of cloud service is provided from an object side, and the resource processing device comprises a second sending unit and a second obtaining unit, wherein the second sending unit is used for sending a resource allocation request to a server, the resource allocation request is used for requesting to allocate dedicated resources in the cloud service for the object, the dedicated resources are resources dedicated by the object, the server corresponds to the resource granularity of the dedicated resources, and the second obtaining unit is used for obtaining the dedicated resources returned by the server in response to the resource allocation request.
The embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium comprises a stored program, wherein the program is used for controlling a device where the computer readable storage medium is located to execute the resource processing method of the cloud service according to the embodiment of the invention when the program is run by a processor.
The embodiment of the invention also provides a processor. The processor is used for running a program, wherein the resource processing method of the cloud service is executed when the program runs.
The embodiment of the invention also provides a resource processing system of the cloud service. The system can comprise an interface server, a server and a response server, wherein the interface server is used for acquiring a resource allocation request from an object and determining the resource granularity of the exclusive resource in the cloud service, the resource allocation request is used for requesting to allocate the exclusive resource in the cloud service for the object, the exclusive resource is the exclusive resource of the object, the resource granularity is used for representing the level of the exclusive resource, and the server corresponds to the resource granularity of the exclusive resource and receives and responds to the resource allocation request to allocate the exclusive resource for the object.
In the embodiment of the application, a resource allocation request from an object is acquired, wherein the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for the object, the exclusive resource is an exclusive resource of the object, the resource granularity of the exclusive resource is determined, wherein the resource granularity is used for representing the level of the exclusive resource, the resource allocation request is sent to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object, that is, the exclusive resource allocation is supported by transmitting the resource allocation request initiated by the object (such as hardware, application software, a client, an account and the like) to the rear end, so that the problem of a single account does not influence other accounts, the explosion radius is greatly reduced, and the technical effect of improving the allocation of effective resources to the object is achieved, and the technical problem of difficult allocation of the effective resources to the object is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is an exemplary block diagram of system interactions of a method for implementing resource processing of cloud services in accordance with an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of resource processing for a cloud service according to an embodiment of the present invention;
fig. 3 is a flowchart of another data processing method of a power system in a man-machine interaction scenario provided in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an architecture for implementing a low cost high isolation SERVERLESS resource allocation model by dynamic reclamation and creation in accordance with an embodiment of the present disclosure;
FIG. 5 is a flow chart of a resource allocation method according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a resource idle monitoring and cleaning detection method according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a resource processing device of a cloud service according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a resource processing apparatus of a cloud service provided from an object side according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a resource processing system of a cloud service according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a resource processing system of a cloud service according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing embodiments of the application are applicable to the following explanation:
the no server (SERVERLESS) is an architecture thought and service model, so that a developer can concentrate on application scene logic of an application program without concern about infrastructure, such as a server and the like;
Renting, which is a resource allocation mode in which a single resource instance can provide services for a plurality of different user groups;
Noise neighbor problem (NoisyNeighborProblem), in a multi-tenant scene, the problem that the shared resource is blocked by other tenants due to excessive resources occupied by one tenant;
Fine grained resources are a concept corresponding to multi-tenancy, e.g., for a cluster level multi-tenancy resource, a single account level resource is a fine grained, and there may be different services under the same account, so an account level resource is also a service multi-tenancy account, if a single service level resource is allocated, the resource is a fine grained resource relative to the account level resource.
Example 1
According to an embodiment of the present invention, there is also provided a method embodiment of resource processing of a cloud service, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that herein.
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Fig. 1 is an exemplary block diagram of system interactions of a method for implementing resource processing of cloud services, as shown in fig. 1, a computer terminal 101 (or mobile device) may be connected or electronically connected to one or more servers (e.g., security server, resource server, game server, etc.) via a data network connection, according to an embodiment of the present disclosure. In alternative embodiments, the computer terminal 101 (or mobile device) may be any mobile computing device or the like. The data network connection may be a local area network connection, a wide area network connection, an internet connection, or other type of data network connection. The computer terminal 101 (or mobile device) may execute to connect to a network service executed by a server (e.g., a security server) or a set of servers. The web server 102 is a web-based user service such as a social network, cloud resources, email, online payment, or other online application. Memory 103 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 103 may further include memory located remotely from the processor, which may be connected to computer terminal 101 via a network.
In the above operating environment, the present application provides a resource processing method of cloud service as shown in fig. 3.
Fig. 2 is a flowchart of a resource processing method of a cloud service according to an embodiment of the present invention. As shown in fig. 3, the method may include the steps of:
in step S202, a resource allocation request from the object is obtained, where the resource allocation request is used to request to allocate an exclusive resource in the cloud service for the object, and the exclusive resource is a resource exclusive to the object.
In the technical solution provided in the above step S202 of the present invention, in the service domain without server (SERVERLESS), the cloud service provider is used as the provider of SERVERLESS service, and needs to handle the management and scheduling logic of the dedicated resources of the user, and the user only needs to pay attention to the service logic and the code logic.
In this embodiment, the resource allocation request may be a cloud service resource allocation request initiated by a user at an object, where the cloud service may include cloud query, cloud storage, cloud computing, cloud security, and the like, and the cloud service resource may include, without specific limitation, a cloud computing resource, a data storage resource, and a communication facility resource.
In this embodiment, the dedicated resource may be a cloud computing resource allocated to a user, for example, for a user requesting the cloud computing resource, the dedicated resource may be a core, a storage space, a network, or the like of a server, which is not particularly limited herein. It should be noted that the foregoing is merely an example, and the dedicated resource is actually determined according to a request of a user, and the foregoing example is not limited to this embodiment.
In this embodiment, a resource allocation request from an object may be obtained, e.g., after a user initiates a cloud computing resource allocation request from the object, the request is passed from an application program interface server (API SERVER) of the system to a backend resource, which may include a dynamic shared resource, an account level specific resource, and an account fine-grained level specific resource.
It should be noted that, the object in this embodiment may be an account of the dedicated resource to be received, and the account may log in the client with different login rights, where a user (client) of the service may establish the client, and after logging in the client through the account, may send an allocation request of the dedicated resource to the interface server (API SERVER), where the client may be dedicated to a device or software, or alternatively, the account may be an account with a dedicated account number.
In step S204, a resource granularity of the dedicated resource is determined, where the resource granularity is used to represent a level of the dedicated resource.
In the technical solution provided in the above step S204 of the present invention, after the resource allocation request from the object is obtained, the dedicated resource corresponding to the request may be checked for resource granularity.
In this embodiment, the levels of the proprietary resource may be an account level, a fine grain level, and a single service level, and the maximum level of the proprietary resource may be an account level.
In this embodiment, a resource granularity check may be performed in the database to determine the resource granularity of the dedicated resource.
Step S206, sending a resource allocation request to the server corresponding to the resource granularity to trigger the server to allocate dedicated resources for the object.
In the technical solution provided in the step S206 of the present invention, the server may be a cloud server that provides the back-end resource, for example, a dynamic shared resource server, an account-level dedicated resource server, and an account-fine-grained level dedicated resource server.
In this embodiment, a resource allocation request may be sent to a server corresponding to the resource granularity to trigger the server to allocate the dedicated resource for the object, for example, after determining the resource granularity of the dedicated resource, a resource allocation request may be sent to a back-end resource server corresponding to the resource granularity to trigger the server to allocate the dedicated resource for the object.
Optionally, when the resource granularity of the dedicated resource is determined to be the fine granularity level, sending a resource allocation request to an account fine granularity level dedicated resource server corresponding to the fine granularity level, so as to trigger the account fine granularity level dedicated resource server to allocate the dedicated resource for the object.
Optionally, when determining that the resource granularity of the dedicated resource is the account level, sending a resource allocation request to an account level dedicated resource server corresponding to the account level, so as to trigger the account level dedicated resource server to allocate the dedicated resource for the object.
Optionally, when it is determined that there is no dedicated resource corresponding to the request of the user, a resource allocation request is sent to the dynamic shared resource server, then a corresponding account level dedicated resource is created for the user request, and a resource allocation request is sent to the account level dedicated resource server, so as to trigger the account level dedicated resource server to allocate the dedicated resource for the object.
Alternatively, to meet the user's high isolation requirement, the client may specify the isolation granularity according to the requirement, and the dynamic shared resource may automatically create its resources of the required granularity for the client.
The method comprises the steps S202 to S206 of the application, wherein the resource allocation request is used for requesting to allocate the exclusive resource in the cloud service for the object, the exclusive resource is the exclusive resource of the object, the resource granularity of the exclusive resource is determined, wherein the resource granularity is used for representing the grade of the exclusive resource, the resource allocation request is sent to the server corresponding to the resource granularity, the server is triggered to allocate the exclusive resource for the object, the technical effect of improving the allocation of the effective resource to the object is achieved, and the technical problem that the effective resource is difficult to allocate to the object is solved.
The above-described method of this embodiment is further described below.
As an alternative embodiment, the method further comprises reclaiming the dedicated resources in response to the dedicated resources allocated to the object being in an idle state.
In this embodiment, the dedicated resources may be reclaimed in response to the dedicated resources allocated to the object being in an idle state, e.g., when the dedicated resources allocated to the object are detected to be in an idle state, a signal representing the information is generated, and in response to the signal, the dedicated resources are reclaimed.
Optionally, the disclosure includes a resource idle monitoring and cleaning detector for scanning idle resources and timely reclaiming for cost control, relieving costs and resource pressure from high isolation.
In this embodiment, the dedicated resources that are leased may be scanned, and whether the dedicated resources reach the preset condition for cleaning is determined, and when the preset condition for cleaning is reached, the dedicated resources that reach the preset condition for cleaning are recovered, where the preset condition may be that the dedicated resources allocated to the object are in an idle state.
As an optional implementation mode, the method further comprises the steps of receiving the resource allocation request again, reading the resource information from the database, and sending the resource allocation request to the server corresponding to the resource granularity based on the read resource information to trigger the server to allocate the dedicated resource again.
In this embodiment, since the traffic of Noisy Neighbor has a certain regularity, that is, the probability of becoming Noisy Neighbor again after being Noisy Neighbor once is very high, the Noisy Neighbor problem from the same tenant is easily encountered again after only simply recovering the fine-grained resources.
In this embodiment, the database records information about the fine-grained dedicated resource, and even if the resource itself is reclaimed, a new request is subsequently made, and the dynamic shared resource is reconstructed or restored.
In this embodiment, the resource allocation request may be received again, and the resource information may be read from the database, for example, when the system receives a new resource allocation request from the same user again, the corresponding dedicated resource information may be read from the database.
In this embodiment, a resource allocation request may be sent to a server corresponding to the resource granularity based on the read resource information, so as to trigger the server to allocate the dedicated resource again for the object, for example, when the read resource information is the dedicated resource that has suffered the Noisy Neighbor problem, the potential Noisy Neighbor object may be isolated in advance, and the resource allocation request may be sent to the server corresponding to the resource granularity, so as to trigger the server to allocate the dedicated resource again for the object.
As an optional implementation, step S206, triggering the server to allocate dedicated resources for the object includes triggering the server to allocate dedicated resources for the object in response to the amount of shared resources occupied by the object being greater than a target threshold.
In this embodiment, the server may be triggered to allocate dedicated resources for the object in response to the amount of shared resources occupied by the object being greater than the target threshold, e.g., when the amount of shared resources occupied by the object is detected to be greater than the target threshold, a signal indicative of the information is generated, and in response to the signal, the server is triggered to allocate dedicated resources for the object.
In this embodiment, the shared resource may be a dynamic shared resource, which is mainly used as a capability provider for regenerating the resource of the whole scheme, and is mainly responsible for resource creation and request handling, and does not perform resource execution, so that the creation efficiency of guaranteeing the dedicated resource may be improved. Meanwhile, for the tenant with Noisy Neighbor records which is recovered by the resources, the exclusive resources with fine granularity are timely recovered by reading the database
In this embodiment, for tenants with Noisy Neighbor records that are reclaimed by resources, their fine-grained dedicated resources can be restored in time by reading the database.
As an alternative embodiment, step S204, determining the resource granularity of the dedicated resource includes determining the resource granularity based on the attribute information of the object.
In this embodiment, the attribute information may include a target type of the object, e.g., the object is a new user type.
In this embodiment, the resource granularity may be determined based on the attribute information of the object, e.g., for a resource allocation request of a new user, determining the resource granularity as an account level, and creating account level multi-lease dedicated resources for the new user.
As an alternative embodiment, the resource granularity is determined based on the attribute of the object, and the method comprises determining the resource granularity as a first resource granularity in response to the attribute information indicating the target type of the object, wherein the first resource granularity indicates that the level of the exclusive resource is an account-based use level.
In this embodiment, the resource granularity may be determined to be the first resource granularity in response to the attribute information being used to represent the target type of the object, e.g., when the attribute information is detected to be used to represent the target type of the object, a signal is generated to represent the information, and in response to the signal, the resource granularity is determined to be the first resource granularity.
As an alternative embodiment, a method for sending a resource allocation request to a server corresponding to a resource granularity to trigger the server to allocate an exclusive resource for an object includes sending a resource allocation request to the server corresponding to a first resource granularity to trigger the server to create a first exclusive resource of the object, where the exclusive resource includes the first exclusive resource.
In this embodiment, the server corresponding to the first resource granularity may be a backend corresponding to the user-level dedicated resource, and the first dedicated resource may be an account-level dedicated resource, which may also be referred to as a multi-lease dedicated resource.
In this embodiment, a resource allocation request may be sent to a server corresponding to the first resource granularity to trigger the server to create the first dedicated resource of the object, e.g., to send a resource allocation request to a backend corresponding to the account level dedicated resource to trigger the backend to create the account level dedicated resource of the object.
In this embodiment, the resource with the maximum granularity is the dedicated resource at the account level, and supports the allocation of the dedicated resource with finer granularity, so that the problem of a single account does not affect other accounts, and the technical effect of greatly reducing the explosion radius is achieved.
As an optional implementation, in step S204, determining the resource granularity of the dedicated resource, the method includes determining the resource granularity in the resource allocation request as a second resource granularity, where the second resource granularity is used to indicate that the level of the dedicated resource is less than the level based on the account usage.
In this embodiment, the second resource granularity may be a fine-grained proprietary resource, which may be a proprietary resource having a level of proprietary resources that is less than the account level.
In this embodiment, the resource granularity may be determined to be the second resource granularity in the resource allocation request, e.g., if the client's request has fine-grained dedicated resources, then its request is placed preferentially in the fine-grained dedicated resources.
As an alternative implementation mode, a resource allocation request is sent to a server corresponding to the resource granularity to trigger the server to allocate dedicated resources for the object, and the method comprises the steps of responding to the fact that second dedicated resources of the second resource granularity are recovered, sending the resource allocation request to the server corresponding to the second resource granularity to trigger the server to create the second dedicated resources of the object.
In this embodiment, the resource allocation request may be sent to the server corresponding to the second resource granularity in response to the second proprietary resource of the second resource granularity having been reclaimed, to trigger the server to create the second proprietary resource of the object, e.g., when the second proprietary resource of the second resource granularity is detected to have been reclaimed, a signal representing the information is generated, and in response to the signal, the resource allocation request is sent to the server corresponding to the second resource granularity to trigger the server to create the second proprietary resource of the object.
In this embodiment, for the request of the recovered fine-grained dedicated resource, the fine-grained dedicated resource thereof can be recreated, thereby achieving the technical effect of isolating the potential Noisy Neighbor objects in advance.
As an alternative embodiment, the method further comprises triggering the server to create a first proprietary resource of the object in response to the resource allocation request not including the second resource granularity, wherein the proprietary resource includes the first proprietary resource.
In this embodiment, the server may be triggered to create the first proprietary resource of the object in response to the resource allocation request not including the second resource granularity, e.g., when the resource allocation request is detected not to include the second resource granularity, a signal representing the information is generated, and the server may be triggered to create the first proprietary resource of the object in response to the signal.
In this embodiment, if a client's request does not have fine-grained proprietary resources, the request enters a multi-lease proprietary resource server and creates multi-lease proprietary resources.
As an optional implementation manner, in step S204, the resource granularity of the dedicated resource is determined, and the method includes determining that the resource granularity of the dedicated resource is a third resource granularity, where the third resource granularity is used to indicate that the object is cold-started or is not allocated with the dedicated resource.
In this embodiment, the resource granularity of the dedicated resource may be determined to be the third resource granularity, e.g., when a client request is passed from API SERVER to a backend resource, the resource granularity of the dedicated resource of a client request that is cold-started or has no dedicated resource is determined to be the third resource granularity.
As an alternative implementation mode, a resource allocation request is sent to a server corresponding to the resource granularity to trigger the server to allocate dedicated resources for the object, and the method includes sending the resource allocation request to the server corresponding to the third resource granularity to trigger the server to create a third dedicated resource of the object, wherein the dedicated resource includes the third dedicated resource.
In this embodiment, a resource allocation request may be sent to the server corresponding to the third resource granularity to trigger the server to create the third dedicated resource of the object, e.g., for a cold start or a client without a dedicated resource, the request may be placed on the dynamic shared resource, the creation of the dedicated resource is performed, and the request is carried into the newly created dedicated resource for execution.
In the above-mentioned embodiment of the present disclosure, through the common cooperation of dynamic shared resource, resource idle monitoring and cleaning detector, noisy Neighbor detector and request handling capability, realize the dynamic recovery and regeneration capability of different granularity exclusive resources to maintain the volume of fine granularity exclusive resources in controllable scope, and then use the SERVERLESS system of this scheme can realize the high isolation of resource through the low cost, high stability, provide smooth resource use experience for the customer, and then solved the technical problem that is difficult to allocate effective resource to the object, reached the technological effect that improves to the object and allocate effective resource.
According to the embodiment of the invention, another resource processing method of the cloud service on the object side is also provided.
Fig. 3 is a flowchart of another data processing method of a power system in a man-machine interaction scenario according to an embodiment of the present invention. As shown in fig. 3, the method may include the steps of:
In step S302, a resource allocation request is sent to a server, where the resource allocation request is used to request to allocate an exclusive resource in the cloud service for the object, the exclusive resource is a resource exclusive to the object, and the server corresponds to a resource granularity of the exclusive resource.
In the technical solution provided in the above step S302 of the present invention, a resource allocation request may be sent to a server, and after the server receives the request, the server determines the granularity of the requested resource based on the attribute information of the object, for example, determines that the object is a new user, and determines that the dedicated resource of the request is the dedicated resource of the account level.
Step S304, the exclusive resource returned by the server in response to the resource allocation request is obtained.
In the technical solution provided in the above step S304 of the present invention, the dedicated resource returned by the server in response to the resource allocation request may be obtained, for example, when determining that the dedicated resource of the resource allocation request is the dedicated resource of the account level, the object may obtain the dedicated resource of the account level.
In the above embodiment of the present disclosure, by sending a resource allocation request to a server, where the resource allocation request is used to request to allocate an exclusive resource in a cloud service for an object, the exclusive resource is a resource exclusive to the object, and the server corresponds to a resource granularity of the exclusive resource, and acquiring the exclusive resource returned by the server in response to the resource allocation request, the technical problem that it is difficult to allocate an effective resource to the object is solved, and the technical effect of improving allocation of the effective resource to the object is achieved.
Example 2
Preferred embodiments of the above method of this example are further described below.
In SERVERLESS service domain, customers only need to pay attention to their service logic and code logic, and not to pay too much attention to the management of the underlying resources. Cloud service provider as provider of SERVERLESS services, then the management and scheduling logic to handle customer resources is required. When providing the bottom layer resources for a plurality of clients, the scale and cost of the resources are generally required to be controlled through multi-renting, but the problem of SERVERLESS is necessarily introduced into the multi-renting, so that the use experience of the clients is deteriorated, and even the serious problem of SERVERLESS can cause the damage and stagnation of the application scene services of other clients in the multi-renting resources. Therefore, a certain isolation is required to be introduced to ensure the operation experience of the client, but the isolation without limitation also causes excessive cost and resource waste. The scheme mainly aims at the requirements, and provides a SERVERLESS resource allocation model for dynamically realizing low cost and high isolation.
In the related art, a static multi-leasing scheme is adopted, and cluster-level multi-leasing of resources or account and finer-granularity-level multi-leasing of resources are realized through static states.
However, when the problem of Noisy Neighbor is encountered in the multi-renting of resources at the cluster level, the explosion radius is too large, the number of affected clients is too large, and the multi-renting of resources at the account level or finer granularity can cause expansion of resources along with the increase of clients and finer granularity, and when the number of cold clients increases, great resource waste can be caused.
In the related art, a scheme combining a static multi-lease scheme with a passive allocation of fine-granularity dedicated resources and a recovery mechanism is adopted, specifically, cluster-level multi-lease resources are statically provided, noisy Neighbor is isolated through manual intervention after Noisy Neighbor is met, and fine-granularity isolated resources which are not used for a long time are recovered.
However, when the problem of Noisy Neighbor is encountered in multi-renting of resources at the cluster level, the explosion radius is too large, the affected clients are too much, noisy Neighbor cannot be automatically separated, the influence of Noisy Neighbor on the multi-renting environment cannot be timely relieved, furthermore, the flow of Noisy Neighbor has certain regularity, namely the probability of becoming Noisy Neighbor again after Noisy Neighbor is once, so that the problem of Noisy Neighbor from the same tenant is easily encountered again after only simple recovery of fine-granularity resources.
In order to solve the above problem, through the common cooperation of dynamic shared resource, resource idle monitoring and cleaning detector, noisy Neighbor detector and request handling capacity in this scheme, realize the dynamic recovery and the regeneration ability of the exclusive resource of different granularity to maintain the volume of the exclusive resource of fine granularity in controllable scope, and then use the SERVERLESS system of this scheme can realize the high isolation of resource through the low cost, high stability provides smooth resource use experience for the customer.
FIG. 4 is a schematic diagram of an architecture for implementing a low cost high isolation SERVERLESS resource allocation model by dynamic reclamation and creation in accordance with an embodiment of the present disclosure. As shown in fig. 4, the model includes, but is not limited to, an application program interface server, a dynamic shared resource (non-recoverable), a customer account specific resource (recoverable), an under account service specific resource (recoverable), a resource idle monitoring and cleaning detector, a noise neighbor (Noisy Neighbor) detector.
Wherein the customer account specific resources include customer account #0 specific resources, customer account #1 specific resources. The account number service exclusive resources comprise account number #N service #0 exclusive resources. Service #m under account #n groups #0 exclusive resources. Service #m under account #n grouping #x proprietary resources.
In this embodiment, the application program interface server may create resources and request handling of dynamic shared resources through which the requesting client account specific resources (recoverable), the under account service specific resources (recoverable) may be run.
Fig. 5 is a flowchart of a resource allocation method according to an embodiment of the present disclosure. As shown in FIG. 5, firstly, a request of a client is transmitted to a back-end resource from API SERVER, for a client with cold start or without proprietary resource, the request is placed into a dynamic shared resource, the creation of the proprietary resource is carried out, and the request is carried into the newly created proprietary resource for execution, wherein for the cold start client or the new client, account-level multi-leased proprietary resource is preferentially created, secondly, for the request of the recovered fine-granularity proprietary resource, the fine-granularity proprietary resource is newly created, then, if the request of the client has the fine-granularity proprietary resource, the request of the client is preferentially placed into the fine-granularity proprietary resource, and if the request of the client does not have the fine-granularity proprietary resource, the client can specify isolation granularity according to the requirement, and the dynamic shared resource can automatically create the resource with the required granularity for the client, so as to meet the requirement of high isolation of the client.
In this embodiment, the dynamic shared resource is mainly used as a capability provider for regenerating the resources of the whole scheme, is mainly responsible for resource creation and request handling, does not perform resource execution, and further ensures agile creation of dedicated resources. Meanwhile, for tenants with Noisy Neighbor records, which are recycled by resources, the fine-grained exclusive resources of the tenants are timely recovered by reading the database.
The embodiment of the disclosure also provides a resource idle busy monitoring and cleaning detector which mainly scans idle resources and timely recovers the idle resources so as to control the cost and relieve the cost and the resource pressure caused by high isolation.
Fig. 6 is a schematic diagram of a method for monitoring and cleaning idle resources according to an embodiment of the disclosure. As shown in fig. 6, the method for monitoring and cleaning idle resources may include the following steps:
step S602, all dedicated resources with multiple leases are scanned.
Step S604, judging whether the scanned exclusive resource meets the cleaning standard.
Step S606, clean the dedicated resource.
And if the proprietary resource meets the cleaning standard, cleaning the proprietary resource.
Step S608, the cleaning operation is stopped.
And if no dedicated resource meets the cleaning standard, stopping the cleaning operation.
In the embodiment of the disclosure, all the dedicated resources which are leased are scanned, whether the scanned dedicated resources meet the cleaning standard is judged, the dedicated resources which meet the cleaning standard are cleaned, and the resources are recovered in time, so that the technical effects of cost control and cost and resource pressure caused by high isolation are achieved.
In the embodiment of the disclosure, aiming at the technical problems that when a cluster-level resource is rented more in Noisy Neighbor, the explosion radius is too large, and the affected clients are too many, the scheme is a multi-renting account granularity at the maximum and supports the allocation of exclusive resources with finer granularity, so that the problem of a single account cannot affect other accounts, the explosion radius is greatly reduced, the problem that the account-level or finer granularity resource is rented more can cause the expansion of resources along with the increase of clients and finer granularity, when the number of cold clients is increased, the problem that the great resource waste is caused is introduced, an automatic recovery mechanism is introduced, idle resources are timely processed, the resource idling probability is reduced, the problem that the influence of Noisy Neighbor on the multi-renting environment cannot be automatically separated, noisy Neighbor is timely isolated, and the request of Noisy Neighbor is timely carried, so that the influence of Noisy Neighbor is effectively relieved, the problem that the flow of Noisy Neighbor is a certain degree of Noisy Neighbor is very large again, therefore, the problem that the loss of the exclusive resources is only can be easily recovered from a new fine granularity of the shared, even though the corresponding fine granularity of the shared resources is shared in the same, the same window is recorded, and the corresponding dynamic information is easily, and the shared resources are recovered in advance, and the problem of the shared by the fine granularity is recorded, even though the corresponding request of the fine granularity of the shared resources is dynamically.
Embodiments of the present disclosure provide a schematic diagram of a service grid for secure identification of data using a trusted model.
Fig. 7 is a schematic diagram of a service grid for performing resource processing of cloud services according to an embodiment of the present invention. As shown in FIG. 7, the service grid 700 is primarily used to facilitate secure and reliable communication between a plurality of micro services, which are defined as applications broken down into a plurality of smaller services or instances and run on different clusters/machines.
As shown in fig. 7, the micro-services may include an application service instance a and an application service instance B, which form a functional application layer of the service grid 700. In one embodiment, application service instance A runs in the form of container/process 708 on machine/workload container group 714 (POD) and application service instance B runs in the form of container/process 710 on machine/workload container group 717 (POD).
In one embodiment, application service instance a may be a commodity query service and application service instance B may be a commodity ordering service.
Alternatively, the application service instance a may be a secure identification service of chat messages in a client scenario, and the application service instance B may be an output risk content data service.
As shown in fig. 7, application service instance a and grid agent (sidecar) 703 coexist in machine workload container group 714 and application service instance B and grid agent 705 coexist in machine workload container 714. Grid proxy 703 and grid proxy 705 form a data plane layer (DATA PLANE) of service grid 700. Wherein grid agent 703 and grid agent 705 are each in a container/process 704, container/process 704 may receive a request 712 for conducting a commodity query service, grid agent 707 is running, and two-way communication is possible between grid agent 703 and application service instance a, and two-way communication is possible between grid agent 705 and application service instance B. In addition, two-way communication is also possible between the grid agent 703 and the grid agent 705.
In one embodiment, all traffic for application service instance A is routed through grid proxy 703 to the appropriate destination and all network traffic for application service instance B is routed through grid proxy 705 to the appropriate destination. Note that, the network traffic mentioned herein includes, but is not limited to, forms of hypertext transfer protocol (Hyper Text Transfer Protocol, abbreviated as HTTP), representational STATE TRANSFER (abbreviated as REST), high-performance, general-purpose open-source framework (GRPC), open-source in-memory data structure storage system (dis), and the like.
In one embodiment, the functionality of the extended data plane layer may be implemented by writing custom filters (filters) for agents (envoys) in the service grid 700, which may be configured to enable the service grid to properly proxy service traffic for service interworking and service remediation. The grid agent 703 and the grid agent 705 may be configured to perform at least one of the functions of service discovery (service discovery), health check (HEALTH CHECKING), routing (Routing), load Balancing (Load Balancing), authentication and authorization (authentication and authorization), and observability (observability).
As shown in fig. 7, the service grid 700 also includes a control plane layer. Wherein the control plane layer may be a set of services running in a dedicated namespace, hosted by the hosting control plane component 701 in a machine/workload container set (machine/Pod) 702. As shown in FIG. 7, managed control plane component 701 is in bi-directional communication with grid agent 703 and grid agent 705. Managed control plane component 701 is configured to perform some of the functions of control management. For example, managed control plane component 701 receives telemetry data transmitted by grid agent 703 and grid agent 705, which may be further aggregated. These services, managed control plane component 701 may also provide user-oriented Application Program Interfaces (APIs) to facilitate manipulation of network behavior, as well as providing configuration data to grid agent 703 and grid agent 705, and the like.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a computer readable storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 3
According to an embodiment of the present invention, there is also provided a resource processing device for a cloud service for implementing the resource processing method for a cloud service shown in fig. 2.
Fig. 8 is a schematic diagram of a resource processing device of a cloud service according to an embodiment of the present invention. As shown in fig. 8, the resource processing device 80 of the cloud service may include a first acquisition unit 81, a determination unit 82, and a first transmission unit 83.
The first obtaining unit 81 is configured to obtain a resource allocation request from an object, where the resource allocation request is used to request allocation of an exclusive resource in the cloud service for the object, and the exclusive resource is a resource exclusive to the object.
A determining unit 82, configured to determine a resource granularity of the dedicated resource, where the resource granularity is used to represent a level of the dedicated resource.
The first sending unit 83 is configured to send a resource allocation request to a server corresponding to the resource granularity, so as to trigger the server to allocate dedicated resources for the object.
Optionally, the resource processing device of the cloud service comprises a response unit, wherein the response unit is used for recovering the exclusive resource in response to the exclusive resource allocated to the object being in an idle state.
Optionally, the database is recorded with the resource information of the recovered dedicated resource, and the response unit further comprises a receiving module for receiving the resource allocation request again, reading the resource information from the database, and a sending module for sending the resource allocation request to the server corresponding to the resource granularity based on the read resource information, so as to trigger the server to re-allocate the dedicated resource for the object.
Optionally, the first sending unit 83 includes a response module, configured to trigger the server to allocate dedicated resources for the object in response to the amount of shared resources occupied by the object being greater than the target threshold.
Optionally, the determining unit 82 comprises a first determining module for determining the resource granularity based on the attribute information of the object.
Optionally, the first determining module includes a first response sub-module configured to determine, in response to the attribute information indicating a target type of the object, a resource granularity as a first resource granularity, where the first resource granularity indicates that a level of the dedicated resource is an account usage-based level.
Optionally, the first response submodule comprises a sending subunit, configured to send a resource allocation request to a server corresponding to the first resource granularity, so as to trigger the server to create a first dedicated resource of the object, where the dedicated resource includes the first dedicated resource.
Optionally, the determining unit 82 comprises a second determining module configured to determine, in the resource allocation request, a resource granularity to be a second resource granularity, where the second resource granularity is used to indicate that the level of dedicated resources is less than the level based on account usage.
Optionally, the second determining module includes a second response sub-module, configured to send a resource allocation request to a server corresponding to the second resource granularity to trigger the server to create the second dedicated resource of the object, in response to the second dedicated resource of the second resource granularity having been reclaimed.
Optionally, the second determining module further includes a third response sub-module configured to trigger the server to create a first dedicated resource of the object in response to the resource allocation request not including the second resource granularity, where the dedicated resource includes the first dedicated resource.
Optionally, the determining unit 82 includes a third determining module, configured to determine a resource granularity of the dedicated resource to be a third resource granularity, where the third resource granularity is used to indicate that the object is cold-started or is not allocated with the dedicated resource.
Optionally, the third determining module includes a sending sub-module, configured to send a resource allocation request to a server corresponding to the third resource granularity, to trigger the server to create a third dedicated resource of the object, where the dedicated resource includes the third dedicated resource.
In the above embodiments of the present disclosure, a resource allocation request from an object is acquired through a first acquisition unit, where the resource allocation request is used to request to allocate an exclusive resource in cloud service to the object, the exclusive resource is an exclusive resource of the object, a determination unit determines a resource granularity of the exclusive resource, where the resource granularity is used to represent a level of the exclusive resource, and a first sending unit sends the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource to the object, that is, in the present disclosure, by transmitting the request of the object to a back end, the exclusive resource allocation is supported, so that a problem of a single account does not affect other accounts, greatly reduces an explosion radius, achieves a technical effect of improving allocation of effective resources to the object, and thus solves a technical problem that it is difficult to allocate effective resources to the object.
Here, it should be noted that the first acquiring unit 81, the determining unit 82, and the first transmitting unit 83 described above correspond to steps S202 to S206 in embodiment 1, and the three units are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in embodiment one described above. It should be noted that the above unit may be operated as a part of the apparatus in the system provided in the first embodiment.
According to an embodiment of the present invention, another resource processing device for a cloud service for implementing the resource processing method for a cloud service shown in fig. 3 is provided from an object side.
Fig. 9 is a schematic diagram of a resource processing apparatus of a cloud service provided from an object side according to an embodiment of the present invention. As shown in fig. 9, the resource processing device 90 of the cloud service may include a second transmitting unit 91 and a second acquiring unit 92.
The first sending unit 91 is configured to send a resource allocation request to a server, where the resource allocation request is used to request allocation of an exclusive resource in the cloud service for the object, the exclusive resource is a resource exclusive to the object, and the server corresponds to a resource granularity of the exclusive resource.
The first obtaining unit 92 is configured to obtain a dedicated resource returned by the server in response to the resource allocation request.
Here, it should be noted that the above-mentioned second transmitting unit 91 and second acquiring unit 92 correspond to steps S302 to S304 in embodiment 1, and the two units are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above-mentioned embodiment one. It should be noted that the above unit may be operated as a part of the apparatus in the system provided in the first embodiment.
In the embodiment of the disclosure, a resource allocation request is sent to a server through a first sending unit, wherein the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for an object, the exclusive resource is an exclusive resource of the object, the server corresponds to the resource granularity of the exclusive resource, and the first obtaining unit obtains the exclusive resource returned by the server in response to the resource allocation request, so that the purpose of obtaining the exclusive resource returned by the server in response to the resource allocation request at the object side is achieved, the technical effect of improving the allocation of effective resources to the object is achieved, and the technical problem that the effective resources are difficult to allocate to the object is solved.
Fig. 10 is a schematic diagram of a resource processing system of a cloud service according to an embodiment of the present invention. As shown in fig. 10, the resource processing system 100 of the cloud service may include an interface server 1002 and a server 1004.
The interface server 1002 is configured to obtain a resource allocation request from an object, and determine a resource granularity of an exclusive resource in the cloud service, where the resource allocation request is used to request to allocate the exclusive resource in the cloud service to the object, the exclusive resource is a resource exclusive to the object, and the resource granularity is used to represent a level of the exclusive resource.
The server 1004 corresponds to the resource granularity of the dedicated resource, and receives and responds to the resource allocation request to allocate the dedicated resource for the object.
In the above embodiment of the disclosure, a resource allocation request is sent through an object, where the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for the object, the exclusive resource is an exclusive resource of the object, an interface server obtains the resource allocation request and determines a resource granularity of the exclusive resource, where the resource granularity is used for representing a level of the exclusive resource, and the server corresponds to the resource granularity of the exclusive resource and receives and responds to the resource allocation request to allocate the exclusive resource for the object, thereby achieving the technical effect of improving allocation of effective resources to the object and further solving the technical problem that effective resources are difficult to allocate to the object.
Example 4
The embodiment of the invention can provide a resource processing system of cloud service, which can comprise a computer terminal, wherein the computer terminal can be any one of computer terminal equipment in a computer terminal group. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
In this embodiment, the resource processing system of the cloud service may include a processor and a memory, where the resource processing system of the cloud service may execute program codes of the following steps in the resource processing method of the cloud service of the embodiment of the present invention, where the resource allocation request is used to request to allocate an exclusive resource in the cloud service to the object, the exclusive resource is an exclusive resource of the object, determine a resource granularity of the exclusive resource, where the resource granularity is used to represent a level of the exclusive resource, and send the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource to the object.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for processing resources of cloud services in the embodiments of the present invention, and the processor executes various functional applications and resource processing of cloud services by running the software programs and modules stored in the memory, that is, implements the method for processing resources of cloud services described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located with respect to the processor, which may be connected to the computer terminal (or mobile terminal) via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call information and an application program stored in the memory through the transmission device to execute the following steps of acquiring a resource allocation request from an object, wherein the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for the object, the exclusive resource is an exclusive resource of the object, determining the resource granularity of the exclusive resource, wherein the resource granularity is used for representing the level of the exclusive resource, and sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object.
Optionally, the processor may further execute program code to reclaim the dedicated resources in response to the dedicated resources allocated to the object being in an idle state.
Optionally, the above processor may further execute program code for receiving the resource allocation request again, reading the resource information from the database, and sending the resource allocation request to the server corresponding to the resource granularity based on the read resource information, so as to trigger the server to allocate the dedicated resource again for the object.
Optionally, the processor may further execute program code to trigger the server to allocate dedicated resources for the object in response to the amount of shared resources occupied by the object being greater than the target threshold.
Optionally, the processor may further execute program code to determine the resource granularity based on the attribute information of the object.
Optionally, the processor may further execute program code to determine, in response to the attribute information indicating a target type of the object, a resource granularity to be a first resource granularity, wherein the first resource granularity indicates that the level of the dedicated resource is an account usage-based level.
Optionally, the processor may further execute program code to send a resource allocation request to a server corresponding to the first resource granularity to trigger the server to create a first dedicated resource of the object, where the dedicated resource includes the first dedicated resource.
Optionally, the processor may further execute program code to determine, in the resource allocation request, a resource granularity to be a second resource granularity, wherein the second resource granularity is used to indicate that the level of exclusive resource is less than the level of account-based usage.
Optionally, the processor may further execute program code to send a resource allocation request to a server corresponding to the second resource granularity to trigger the server to create the second dedicated resource of the object in response to the second dedicated resource of the second resource granularity having been reclaimed.
Optionally, the processor may further execute program code to trigger the server to create a first proprietary resource of the object in response to the resource allocation request not including the second resource granularity, wherein the proprietary resource includes the first proprietary resource.
Optionally, the processor may further execute program code to determine a resource granularity of the dedicated resource to be a third resource granularity, where the third resource granularity is used to indicate that the object is cold-started or is not allocated with the dedicated resource.
Optionally, the processor may further execute program code to send a resource allocation request to a server corresponding to the third resource granularity to trigger the server to create a third dedicated resource of the object, where the dedicated resource includes the third dedicated resource.
As an alternative embodiment, the processor may further call the information and the application program stored in the memory through the transmission device, so as to send a resource allocation request to the server, where the resource allocation request is used to request to allocate an exclusive resource in the cloud service for the object, the exclusive resource is a resource exclusive to the object, the server corresponds to a resource granularity of the exclusive resource, and obtain the exclusive resource returned by the server in response to the resource allocation request.
The embodiment of the invention provides a resource processing scheme of cloud service. The method comprises the steps of obtaining a resource allocation request from an object, wherein the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for the object, the exclusive resource is an exclusive resource of the object, determining the resource granularity of the exclusive resource, wherein the resource granularity is used for representing the level of the exclusive resource, sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object, solving the technical problem that effective resources are difficult to allocate for the object, and achieving the technical effect of improving the effective resource allocation for the object.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device related hardware, and the program may be stored in a computer readable storage medium, which may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc.
Embodiments of the present invention also provide a computer-readable storage medium. Alternatively, in this embodiment, the computer readable storage medium may be used to store the program code executed by the data processing method of the power system provided in the first embodiment.
Alternatively, in this embodiment, the above-mentioned computer-readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in this embodiment, the computer readable storage medium is arranged to store program code for obtaining a resource allocation request from the object, wherein the resource allocation request is for requesting allocation of an exclusive resource in the cloud service for the object, the exclusive resource being a resource exclusive to the object, determining a resource granularity of the exclusive resource, wherein the resource granularity is used for representing a level of the exclusive resource, and sending a resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object.
Optionally, the computer readable storage medium is further configured to store program code for reclaiming the dedicated resource in response to the dedicated resource allocated to the object being in an idle state.
Optionally, the computer readable storage medium is further arranged to store program code for receiving the resource allocation request again, reading resource information from the database, and sending the resource allocation request to the server corresponding to the resource granularity based on the read resource information to trigger the server to re-allocate dedicated resources for the object.
Optionally, the computer readable storage medium is further configured to store program code for triggering the server to allocate dedicated resources for the object in response to the amount of shared resources occupied by the object being greater than the target threshold.
Optionally, the computer readable storage medium is further arranged to store program code for determining a resource granularity based on the attribute information of the object.
Optionally, the computer readable storage medium is further arranged to store program code for determining, in response to the attribute information for representing a target type of the object, a resource granularity as a first resource granularity, wherein the first resource granularity is for representing a level of exclusive resource as an account usage based level.
Optionally, the computer readable storage medium is further configured to store program code for sending a resource allocation request to a server corresponding to the first resource granularity to trigger the server to create a first proprietary resource of the object, wherein the proprietary resource comprises the first proprietary resource.
Optionally, the computer readable storage medium is further configured to store program code for determining a resource granularity in the resource allocation request as a second resource granularity, wherein the second resource granularity is used to represent that the level of exclusive resource is less than the level of account-based usage.
Optionally, the computer readable storage medium is further configured to store program code for, in response to the second proprietary resource of the second resource granularity having been reclaimed, sending a resource allocation request to a server corresponding to the second resource granularity to trigger the server to create the second proprietary resource of the object.
Optionally, the computer readable storage medium is further configured to store program code for triggering the server to create a first proprietary resource of the object in response to the resource allocation request not including the second resource granularity, wherein the proprietary resource includes the first proprietary resource.
Optionally, the computer readable storage medium is further arranged to store program code for determining a resource granularity of the dedicated resource as a third resource granularity, wherein the third resource granularity is used to indicate that the object is cold-started or is not allocated the dedicated resource.
Optionally, the computer readable storage medium is further arranged to store program code for sending a resource allocation request to a server corresponding to a third resource granularity to trigger the server to create a third proprietary resource of the object, wherein the proprietary resource comprises the third proprietary resource.
As an alternative to the above embodiment, the computer readable storage medium is further configured to store program code for sending a resource allocation request to a server, wherein the resource allocation request is used for requesting allocation of an exclusive resource in the cloud service for the object, the exclusive resource is a resource exclusive to the object, the server corresponds to a resource granularity of the exclusive resource, and the acquiring server returns the exclusive resource in response to the resource allocation request.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be essentially or a part contributing to the related art or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The computer readable storage medium includes a usb disk, a Read-Only Memory (ROM), a random-access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, etc. which can store the program code.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (14)
1. The resource processing method of the cloud service is characterized by comprising the following steps of:
Acquiring a resource allocation request from an object, wherein the resource allocation request is used for requesting to allocate an exclusive resource in cloud service for the object, and the exclusive resource is a resource exclusive to the object;
Determining a resource granularity of the exclusive resource, wherein the resource granularity is used for representing the level of the exclusive resource;
Sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the exclusive resource for the object;
The method further comprises the steps of reestablishing the fine-granularity exclusive resource by utilizing a dynamic shared resource and carrying a request of the noise neighbor object under the condition that the exclusive resource is the fine-granularity exclusive resource allocated to the noise neighbor object and the fine-granularity exclusive resource is recovered.
2. The method according to claim 1, wherein the method further comprises:
and recovering the exclusive resource allocated to the object in response to the exclusive resource being in an idle state.
3. The method of claim 2, wherein the database has resource information of the recovered dedicated resources recorded therein, the method further comprising:
Receiving the resource allocation request again, and reading the resource information from the database;
And sending the resource allocation request to the server corresponding to the resource granularity based on the read resource information so as to trigger the server to allocate the exclusive resource for the object again.
4. The method of claim 1, wherein triggering the server to allocate the dedicated resource for the object comprises:
And triggering the server to allocate the exclusive resource for the object in response to the amount of shared resources occupied by the object being greater than a target threshold.
5. The method of claim 1, wherein determining the resource granularity of the dedicated resource comprises:
the resource granularity is determined based on attribute information of the object.
6. The method of claim 5, wherein determining the resource granularity based on the attributes of the object comprises:
And determining the resource granularity as a first resource granularity in response to the attribute information being used for representing the target type of the object, wherein the first resource granularity is used for representing that the level of the exclusive resource is an account-use-based level.
7. The method of claim 6, wherein sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the dedicated resource for the object comprises:
And sending the resource allocation request to a server corresponding to the first resource granularity to trigger the server to create a first exclusive resource of the object, wherein the exclusive resource comprises the first exclusive resource.
8. The method of claim 1, wherein determining the resource granularity of the dedicated resource comprises:
And determining the resource granularity as a second resource granularity in the resource allocation request, wherein the second resource granularity is used for indicating that the level of the exclusive resource is smaller than the level based on account use.
9. The method of claim 8, wherein sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the dedicated resource for the object comprises:
And in response to the second exclusive resource of the second resource granularity being recovered, sending the resource allocation request to the server corresponding to the second resource granularity to trigger the server to create the second exclusive resource of the object.
10. The method of claim 8, wherein the method further comprises:
And triggering the server to create a first proprietary resource of the object in response to the resource allocation request not including the second resource granularity, wherein the proprietary resource includes the first proprietary resource.
11. The method of claim 1, wherein determining the resource granularity of the dedicated resource comprises:
And determining the resource granularity of the exclusive resource as a third resource granularity, wherein the third resource granularity is used for indicating that the object is cold started or is not allocated with the exclusive resource.
12. The method of claim 11, wherein sending the resource allocation request to a server corresponding to the resource granularity to trigger the server to allocate the dedicated resource for the object comprises:
And sending the resource allocation request to the server corresponding to the third resource granularity to trigger the server to create a third exclusive resource of the object, wherein the exclusive resource comprises the third exclusive resource.
13. The method according to any one of claims 1 to 12, wherein the object is an account dedicated to receiving the dedicated resource to be allocated.
14. A resource processing system of cloud service is characterized in that,
The cloud service system comprises an interface server, a cloud service server and a cloud service server, wherein the interface server is used for acquiring a resource allocation request from an object and determining the resource granularity of an exclusive resource in the cloud service, the resource allocation request is used for requesting to allocate the exclusive resource for the object, the exclusive resource is a resource exclusive to the object, and the resource granularity is used for representing the level of the exclusive resource;
the server corresponds to the resource granularity of the exclusive resource, receives and responds to the resource allocation request, and allocates the exclusive resource for the object;
The server is further configured to recreate the fine-grained dedicated resource and carry a request of the noise neighbor object when the dedicated resource is the fine-grained dedicated resource allocated to the noise neighbor object and the fine-grained dedicated resource is recovered.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210631717.0A CN115225714B (en) | 2022-06-06 | 2022-06-06 | Resource processing method and system for cloud services |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210631717.0A CN115225714B (en) | 2022-06-06 | 2022-06-06 | Resource processing method and system for cloud services |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115225714A CN115225714A (en) | 2022-10-21 |
| CN115225714B true CN115225714B (en) | 2024-12-10 |
Family
ID=83607431
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210631717.0A Active CN115225714B (en) | 2022-06-06 | 2022-06-06 | Resource processing method and system for cloud services |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115225714B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117971113B (en) * | 2023-11-30 | 2024-12-03 | 中科驭数(北京)科技有限公司 | Dynamic resource allocation method, device, electronic device, and medium for storage array |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106664321A (en) * | 2014-08-08 | 2017-05-10 | 甲骨文国际公司 | Placement policy-based allocation of computing resources |
| CN113890826A (en) * | 2020-07-02 | 2022-01-04 | 瞻博网络公司 | Method for computer network, network device and storage medium |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103377402A (en) * | 2012-04-18 | 2013-10-30 | 国际商业机器公司 | Multi-user analysis system and corresponding apparatus and method |
| US9921866B2 (en) * | 2014-12-22 | 2018-03-20 | Intel Corporation | CPU overprovisioning and cloud compute workload scheduling mechanism |
| CN108279974B (en) * | 2017-01-06 | 2022-07-19 | 阿里巴巴集团控股有限公司 | Cloud resource allocation method and device |
| US10387051B2 (en) * | 2017-08-24 | 2019-08-20 | Hewlett Packard Enterprise Development Lp | Acquisition of IOPS and MBPS limits independently at a scheduler in a scheduler hierarchy |
| US11086646B2 (en) * | 2018-05-18 | 2021-08-10 | Adobe Inc. | Tenant-side detection, classification, and mitigation of noisy-neighbor-induced performance degradation |
| CN111831450B (en) * | 2020-07-20 | 2023-07-28 | 北京百度网讯科技有限公司 | Method, device, electronic device and storage medium for allocating server resources |
| CN113315642B (en) * | 2020-07-27 | 2023-03-24 | 阿里巴巴集团控股有限公司 | Resource metering processing method and device and cloud service system |
| CN112737827A (en) * | 2020-12-23 | 2021-04-30 | 西安万像电子科技有限公司 | Resource allocation method, device and system |
| US12418593B2 (en) * | 2021-09-21 | 2025-09-16 | Intel Corporation | Mechanism to enable a federated onboarding service in an openroaming framework |
| CN114500221B (en) * | 2021-12-28 | 2024-04-26 | 阿里巴巴(中国)有限公司 | Cloud system, public cloud management and control method, public cloud management and control equipment and storage medium |
-
2022
- 2022-06-06 CN CN202210631717.0A patent/CN115225714B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106664321A (en) * | 2014-08-08 | 2017-05-10 | 甲骨文国际公司 | Placement policy-based allocation of computing resources |
| CN113890826A (en) * | 2020-07-02 | 2022-01-04 | 瞻博网络公司 | Method for computer network, network device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115225714A (en) | 2022-10-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12175266B1 (en) | Virtual provisioning with implementation resource boundary awareness | |
| US10255110B2 (en) | Node selection for a new application in a multi-tenant cloud hosting environment | |
| US10749983B2 (en) | Server request management | |
| CN104270417B (en) | A kind of integrated service based on cloud computing provides system and method | |
| US20120084113A1 (en) | Virtual resource cost tracking with dedicated implementation resources | |
| US10296411B1 (en) | Endpoint call backoff in a computing service environment | |
| CN106850549B (en) | Distributed encryption service gateway and implementation method | |
| US11520609B2 (en) | Template-based software discovery and management in virtual desktop infrastructure (VDI) environments | |
| CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
| US20200272526A1 (en) | Methods and systems for automated scaling of computing clusters | |
| US9535749B2 (en) | Methods for managing work load bursts and devices thereof | |
| US20180039516A1 (en) | Heterogeneous auto-scaling using homogeneous auto-scaling groups | |
| CN108810170A (en) | resource allocation method and system | |
| CN114338684A (en) | Energy management system and method | |
| CN109446062B (en) | Method and device for software debugging in cloud computing service | |
| JP6680028B2 (en) | Monitoring system, monitoring method, and monitoring program | |
| US10348814B1 (en) | Efficient storage reclamation for system components managing storage | |
| CN110673950A (en) | Cloud computing task allocation method, device, equipment and storage medium | |
| CN115225714B (en) | Resource processing method and system for cloud services | |
| CN109361675B (en) | Information security protection method, system and related components | |
| CN107819754B (en) | Anti-hijacking method, monitoring server, terminal and system | |
| CN106375372B (en) | big data resource allocation method and device | |
| CN111625375B (en) | Account reservation method and device, storage medium and electronic equipment | |
| CN110049065B (en) | Attack defense method, device, medium and computing equipment of security gateway | |
| CN113794755A (en) | Shared service pushing method and system based on micro-service architecture |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |