Configuration method, access method, computing device, storage medium and program product

By creating resource pools and service quality rules in the network storage system, we can solve the problem of resource competition, realize the rational utilization of resources and traffic control, and improve service quality and system stability.

CN118972458AInactive Publication Date: 2024-11-15ALIBABA CLOUD COMPUTING CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411418499.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When processing user access requests, there is a problem of resource competition in the network storage system, which affects service quality.

Method used

By creating a resource pool and determining the target resource metric quota, quality of service rules are obtained and saved, which are used to detect nodes to collect resource consumption data and notify service nodes for traffic control processing when the target service quality rules are met.

Benefits of technology

Effectively utilize resources, avoid resource competition, ensure access results, improve service quality, prevent performance overload, reduce performance fluctuations, and improve system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972458A_ABST
    Figure CN118972458A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration method, an access method, computing equipment, a storage medium and a program product. The method comprises the steps of creating a resource pool and determining a target resource index quota of the resource pool in response to an acquired resource control request, acquiring at least one service quality rule configured for the resource pool under the constraint of the target resource index quota, and storing the at least one service quality rule corresponding to the resource pool. Wherein the at least one service quality rule can be used by the service node to determine a target service quality rule hit by the access request; the target service quality rule can be used for a detection node to perform collection calculation on resource consumption data corresponding to the target service quality rule sent by at least one service node, and notify the at least one service node to perform flow control processing under the condition that a calculation result meets the target service quality rule. According to the technical scheme provided by the embodiment of the invention, the service quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a configuration method, an access method, a computing device, a storage medium, and a program product. Background Art

[0002] With the development of computer technology and network technology, network storage services are becoming more and more popular, such as object storage services (OSS), file storage services, block storage services, network attached storage (NAS), storage area network (SAN), distributed file systems, content distribution networks (CDN) and hybrid cloud storage services. Users can store data in the network storage system provided by the service provider and access it through the network.

[0003] In the process of processing the user's corresponding access request, the network storage system will consume network resources and computing resources. In actual applications, users may have multiple transactions to access the same data or provide the same data to multiple tenants for access, etc. Therefore, different types of access requests will cause resource contention, thus affecting the service quality. Summary of the invention

[0004] The embodiments of the present application provide a configuration method, an access method, a computing device, a storage medium and a program product to solve the technical problem of resource competition and service quality impact in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a configuration method, including: In response to the acquired resource control request, create a resource pool and determine a target resource indicator quota of the resource pool; Under the constraint of the target resource indicator quota, obtaining at least one quality of service rule configured for the resource pool; The at least one quality of service rule corresponding to the resource pool is saved; the at least one quality of service rule is used by the service node to determine the target quality of service rule hit by the access request to the resource pool; the target quality of service rule is used by the corresponding detection node to aggregate and calculate the resource consumption data sent by at least one service node, and when the calculation result meets the target quality of service rule, notify the at least one service node to perform flow control processing.

[0006] Optionally, obtaining at least one quality of service rule configured for the resource pool under the target resource indicator quota constraint includes: Under the constraint of the target resource indicator quota, the service quality rules configured by the user for different control objects of any control type of the resource pool are obtained; the service quality rules include resource thresholds corresponding to the control objects.

[0007] Optionally, it also includes: Generate a rule identifier of the quality of service rule according to the resource pool identifier corresponding to the quality of service rule and the object identifier of the control object; The storing of the at least one quality of service rule corresponding to the resource pool comprises: The at least one quality of service rule is stored corresponding to the respective rule identifiers; wherein the rule identifier is used to determine the corresponding detection node; wherein the same rule identifier is indexed to the same detection node.

[0008] Optionally, it also includes: Creating an access point corresponding to the resource pool; The access point information corresponding to the access point is returned to the user; wherein the access point information is used to trigger the distribution of the access request initiated based on the access point to the service node in the service cluster corresponding to the access point.

[0009] Optionally, the storing the at least one quality of service rule corresponding to the resource pool includes: The at least one quality of service rule corresponding to the resource pool is saved in a configuration node; the configuration node is used to provide the at least one quality of service rule to the detection node.

[0010] Optionally, it also includes: In response to the acquired association request, establishing an association relationship between the resource pool and at least one storage space; or, In response to the obtained creation request, a storage space associated with the resource pool is created; wherein the access request is sent to any storage space associated with the resource pool.

[0011] In a second aspect, an access method is provided in an embodiment of the present application, which is applied to a detection node, and the method includes: Obtaining resource consumption data sent by at least one service node; the resource consumption data is sent according to the detection node corresponding to the target service quality rule hit by the access request; Aggregating and calculating the resource consumption data sent by the at least one service node; Determining whether the calculation result satisfies the target service quality rule; In a case where the calculation result satisfies the target service quality rule, a control instruction is sent to the at least one service node to notify the at least one service node to perform flow control processing.

[0012] In a third aspect, an access method is provided in an embodiment of the present application, which is applied to a service node, and the method includes: In response to the access request, determining a target quality of service rule hit by the access request; the target quality of service rule is determined from at least one quality of service rule configured by the user under the target resource indicator quota constraint; Determine a detection node corresponding to the target service quality rule; Collecting resource consumption data corresponding to at least one access request that hits the target quality of service rule; Sending the resource consumption data to the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and sending a control instruction to the at least one service node when the calculation result meets the target service quality rule; In response to the control instruction sent by the detection node, flow control processing is performed on the access request that hits the target quality of service rule.

[0013] Optionally, in response to the access request, determining a target quality of service rule hit by the access request includes: In response to the access request, determining the resource pool and the object identifier of the target control object corresponding to the access request; A target quality of service rule corresponding to the object identifier of the target control object is determined from at least one quality of service rule corresponding to the resource pool.

[0014] Optionally, the determining the detection node corresponding to the target service quality rule includes: Determining a rule identifier of the target quality of service rule; According to the rule identifier, a corresponding detection node is determined; wherein the same rule identifier is indexed to the same detection node.

[0015] Optionally, determining the corresponding detection node according to the rule identifier includes: Obtain a node list of multiple detection nodes from the scheduling node; Calculate the hash value of the rule identifier, and calculate the node index value according to the hash value and the size of the node list; A corresponding detection node is determined according to the node index value.

[0016] Optionally, sending the resource consumption data to the detection node includes: The resource consumption data collected within the preset time is sent to the detection node at every preset time interval.

[0017] Optionally, in response to the control instruction sent by the detection node, performing flow control processing on the access request that hits the target quality of service rule includes: In response to the control instruction sent by the detection node, the access request that hits the target quality of service rule is rejected or the processing of the access request is delayed or the transmission frequency of the access request is limited.

[0018] Optionally, it also includes: Acquire an access request distributed by a control node; the control node is used to distribute an access request sent by at least one client based on an access point to a service node in a service cluster corresponding to the access point.

[0019] In a fourth aspect, an embodiment of the present application provides an access method, which is applied to a control node, and the method includes: receiving an access request sent by at least one client based on an access point; Determine a service cluster corresponding to the resource pool corresponding to the access point; The access request is sent to a service node in the service cluster; the service node is used to determine the target service quality rule hit by the access request and the detection node corresponding to the target service quality rule, and collect resource consumption data corresponding to at least one access request that hits the target service quality rule, and send the resource consumption data to the detection node; the detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, send a control instruction to the at least one service node; the control instruction is used to notify the server to perform flow control processing.

[0020] In a fifth aspect, an embodiment of the present application provides a control system, including a scheduling cluster and a service cluster; the scheduling cluster includes a plurality of detection nodes; the service cluster includes a control node and a plurality of service nodes; The control node is configured to receive an access request sent by at least one client based on a resource pool; determine the service cluster corresponding to the resource pool; and send the access request to a corresponding service node in the service cluster; The service node is used to determine, in response to an access request, a target service quality rule hit by the access request; the target service quality rule is determined from at least one service quality rule configured by a user under a target resource indicator quota constraint; determine a detection node corresponding to the target service quality rule; collect resource consumption data corresponding to at least one access request hitting the target service quality rule; send the resource consumption data to the detection node; and perform flow control processing on the access request hitting the target service quality rule in response to a control instruction sent by the detection node; The detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and send the control instruction to the at least one service node when the calculation result meets the target service quality rule.

[0021] Optionally, the scheduling cluster further includes a scheduling node; The service node determines the detection node corresponding to the target service quality rule, including: determining the detection node corresponding to the target service quality rule from a node list provided by the scheduling node; The scheduling node is used to provide the service node with a node list of the multiple detection nodes; and in the event of a failure of any detection node, update the node list provided to the service node.

[0022] Optionally, the control node is further configured to receive a resource control request and send the resource control request to a corresponding service node; The service node is also used to create a resource pool and determine the target resource indicator quota of the resource pool in response to the obtained resource control request; obtain at least one service quality rule configured for the resource pool under the constraint of the target resource indicator quota; and save the at least one service quality rule corresponding to the resource pool.

[0023] In the sixth aspect, a computing device is provided in an embodiment of the present application, comprising a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the configuration method as described in the first aspect above or the access method as described in the second aspect above or the access method as described in the third aspect above or the access method as described in the fourth aspect above.

[0024] In the seventh aspect, a computer storage medium is provided in an embodiment of the present application, storing a computer program, which, when executed by a computer, implements the configuration method described in the first aspect above, the access method described in the second aspect above, the access method described in the third aspect above, or the access method described in the fourth aspect above.

[0025] In the eighth aspect, a computer program product is provided in an embodiment of the present application, including a computer program / instructions, which, when executed by a computer, implements the configuration method described in the first aspect above, the access method described in the second aspect above, the access method described in the third aspect above, or the access method described in the fourth aspect above.

[0026] In an embodiment of the present application, in response to the acquired resource control request, a resource pool is created and the target resource indicator quota of the resource pool is determined. Under the constraint of the target resource indicator quota, at least one service quality rule configured for the resource pool is obtained, and at least one service quality rule corresponding to the resource pool is saved. Among them, at least one service quality rule can be used by the service node to determine the target service quality rule hit by the access request; the target service quality rule can be used by the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and notify at least one service node to perform flow control processing when the calculation result meets the target service quality rule. Among them, by configuring at least one service quality rule, resources can be reasonably utilized and resource competition can be avoided. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, resource consumption control is implemented, which can avoid the access request hitting the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0027] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 A schematic diagram of the structure of an embodiment of a control system provided by the present application is shown; Figure 2 A flowchart of an embodiment of a configuration method provided by the present application is shown; Figure 3 A flowchart of an embodiment of another configuration method provided by the present application is shown; Figure 4 A flowchart of an embodiment of an access method provided by the present application is shown; Figure 5 A flowchart of an embodiment of another access method provided by the present application is shown; Figure 6 A flowchart of an embodiment of another access method provided by the present application is shown; Figure 7 A schematic diagram showing the structure of an embodiment of a configuration device provided by the present application is shown; Figure 8 A schematic diagram showing the structure of an embodiment of a configuration device provided by the present application is shown; Fig. 9 A schematic diagram showing the structure of an embodiment of an access device provided by the present application is shown; Fig.10 A schematic diagram showing the structure of an embodiment of an access device provided by the present application is shown; Fig.11 A schematic diagram showing the structure of an embodiment of an access device provided by the present application is shown; Fig.12 A schematic diagram of the structure of an embodiment of a computing device provided by the present application is shown. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0031] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 201, 202, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to different types.

[0032] The technical solution of the embodiment of the present application can be applied to network storage service scenarios, such as cloud storage service scenarios provided by cloud computing. In network storage service scenarios, service providers can provide network storage systems, which can provide storage resources, computing resources, and network resources, etc. Users can apply for storage resources to perform access operations such as data storage, query, modification, or deletion, and in the process of processing these user access requests, computing resources and network resources will also be consumed. Users can purchase resources or pay for the consumed resources, etc., to obtain network storage services.

[0033] Among them, network storage services may refer to cloud storage services, and service providers are also cloud computing providers. Cloud computing is one of the fastest-growing trends in computer technology, which involves providing hosting services over the Internet. Cloud computing providers can provide computing, network, and storage resources as services to users. Cloud computing is a service delivery model that aims to achieve on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provisioned and released with minimal management effort or interaction with service providers.

[0034] In order to facilitate understanding of the technical solution of the present application, the following first explains the technical terms that may be involved in the present application: Object Storage Service (OSS): A network storage service that stores data in the form of objects.

[0035] Storage space: A space or area used to store data, such as a bucket in an object storage service.

[0036] Resource pool: refers to a set of resources available to users, including computing resources, storage resources, and network resources. Through the resource pool, these resources can be centrally managed and dynamically allocated.

[0037] Computing resources: refers to the hardware and software facilities for performing computing tasks. For example, they may include central processing unit (CPU), graphics processing unit (GPU), memory, operating system, etc.

[0038] Storage resources: refers to the hardware and software facilities used to store data, such as hard disk drives (HDDs), solid-state drives (SSDs), etc.

[0039] Network resources: refers to the hardware and software facilities used to support data transmission and communication, such as network equipment, network connections, network protocols, etc.

[0040] Access point: It can be understood as an access point or port for resources, etc., which usually corresponds to a domain name, so that access can be achieved based on the access point domain name. The access point is used to achieve network isolation and access control.

[0041] QoS (Quality of Service) refers to a series of technologies adopted to ensure data transmission quality and system performance. QoS aims to provide better service capabilities by optimizing the use of network resources to ensure that key applications and services can obtain the required bandwidth, delay, and packet loss rate.

[0042] Resource indicators: used to measure resource consumption to evaluate system performance and service quality, etc., such as QPS (Queries Per Second), Throughput, Bandwidth, etc. Among them, QPS refers to the number of requests that the system can process per second. Throughput can refer to the amount of data that can be transmitted per unit time; bandwidth can refer to the maximum rate at which data is transmitted. In addition, other types of resource indicators such as memory utilization, packet loss rate, CPU utilization, etc. may also be included, which are not limited in this application.

[0043] Combined with the description in the background technology, it can be seen that different types of access requests will cause resource contention problems. For example, a user may have multiple transactions accessing the same data, or may provide the same data to multiple tenants, or multiple access requests may access the same storage space, etc., which will affect the final access effect and reduce the service quality.

[0044] In order to avoid the problem of resource contention, to ensure access effect and improve service quality, the inventor has proposed the technical solution of the present application after a series of studies. In the embodiment of the present application, in response to the obtained resource control request, a resource pool is created and the target resource indicator quota of the resource pool is determined; under the constraint of the target resource indicator quota, at least one service quality rule configured for the resource pool is obtained; at least one service quality rule corresponding to the resource pool is saved; at least one service quality rule is used by the service node to determine the target service quality rule hit by the access request; the target service quality rule is used to detect the node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and notify at least one service node to perform flow control processing when the calculation result meets the target service quality rule. Among them, by configuring at least one service quality rule, resources can be reasonably utilized and resource contention can be avoided. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, flow control processing is performed on at least one service node to achieve resource consumption control, which can avoid the access request hitting the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0046] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0047] It should be noted that the technical solution of the embodiment of the present application is applicable to a network virtual environment. The users described generally refer to "virtual users". Real users can register a user account in the server through registration to obtain a user identity in the network environment.

[0048] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.

[0049] The technical solution of the embodiment of the present application can be applied to Figure 1 In the control system shown, the control system may include a service cluster and a scheduling cluster.

[0050] The service cluster may include a control node 101 and multiple service nodes 102 ; the scheduling cluster may include multiple detection nodes 103 .

[0051] The control node 101 may be used to receive an access request sent by at least one client to a resource pool; determine a service cluster corresponding to the resource pool; and distribute the access request to a corresponding service node 102 in the service cluster.

[0052] The service node 102 can determine the target service quality rule hit by the access request in response to the access request; wherein the target service quality rule is determined from at least one service quality rule configured by the user under the target resource indicator quota constraint; determine the detection node corresponding to the target service quality rule; collect resource consumption data corresponding to at least one access request that hits the target service quality rule; send the resource consumption data to the detection node; and perform flow control processing on the access request that hits the target service quality rule in response to the control instruction sent by the detection node.

[0053] The detection node 103 may be used to collect and calculate resource consumption data corresponding to a target service quality rule sent by at least one service node 102, and send a control instruction to at least one service node 102 when the calculation result satisfies the target service quality rule.

[0054] The control node 101 may, for example, adopt a load balancing method such as a polling method to select a corresponding service node from a plurality of service nodes, and send the access request to the currently selected service node.

[0055] Furthermore, in some embodiments, the scheduling cluster may further include a scheduling node 104 .

[0056] The service node 102 may determine the detection node 103 corresponding to the target service quality rule from the node list provided by the scheduling node 104 .

[0057] The scheduling node 104 may be used to provide a node list of multiple detection nodes to the service node.

[0058] In addition, in some embodiments, the scheduling node may also update the node list provided to the service node 102 when any detection node fails, so that the service node 102 can reselect the detection node corresponding to the target service quality rule.

[0059] In addition, in some embodiments, the service node 102 can also be used to obtain a resource control request, and in response to the resource control request, create a resource pool and determine the target resource indicator quota of the resource pool; under the constraint of the target resource indicator quota, obtain at least one service quality rule configured for the resource pool; and save at least one service quality rule corresponding to the resource pool.

[0060] Optionally, the resource control request may also be distributed by the control node 101 to a service node 102. Of course, it may also be directly connected to a service node 102 through the user terminal. Therefore, in some embodiments, the control node 101 may also be used to receive resource control requests and send the resource control requests to the corresponding service node 102.

[0061] In addition, in some embodiments, the service node 102 may also create an access point for the resource pool and feed back access point information corresponding to the access point to the user, so that at least one client may initiate an access request for the resource pool based on the access point.

[0062] Among them, the at least one client described above may include a user end, which may of course be different from the user end. The user end may be an application on the user side responsible for performing configuration operations, and the client may be an application on the user side that performs access operations, etc. In actual applications, the client and the user end can be implemented as a browser, APP (Application), or web application such as H5 (HyperText Markup Language5, Hypertext Markup Language Version 5) application, or light application (also known as mini-program, a lightweight application) or cloud application, etc., which can be deployed in electronic devices and need to rely on the device to run or certain apps in the device to run, etc. This application does not impose any restrictions on this.

[0063] Among them, the above-mentioned service cluster can be the service cluster provided in the network storage system. A storage cluster can also be provided in the network storage system. The storage cluster can be composed of multiple storage structures that provide persistent storage media for users to create storage space and store data, etc. The system architecture of the network storage system is consistent with the traditional method, and this application does not limit this.

[0064] In addition, in some embodiments, the control system may further include a configuration node 105 , and the service node 102 may save at least one quality of service rule corresponding to the resource pool to the configuration node 105 ; and the configuration node 105 may provide at least one quality of service rule to at least one detection node 103 .

[0065] It should be noted that the above-mentioned service nodes, control nodes, detection nodes, scheduling nodes, configuration nodes, etc. can be deployed in one or more computing devices provided by the service provider in actual applications. The computing devices can be physical machines deployed by the service provider. One or more nodes can be deployed in each computing device. The resources consumed in the access request processing process are also the resources provided by the computing device.

[0066] The technical solutions of the embodiments of the present application are described in detail below from the execution perspectives of different nodes.

[0067] Figure 2 A flowchart of an embodiment of a configuration method provided by the present application. The technical solution of this embodiment can be executed by a service node. The service node can refer to any service node connected to the user terminal. Of course, the service node can also be any service node selected by the control node that meets the load balancing requirements. The method may include the following steps: 201: In response to the obtained resource control request, create a resource pool and determine a target resource indicator quota of the resource pool.

[0068] The user may trigger the resource control request through a user terminal, and may trigger the resource control request through an interface interaction method or a code configuration method.

[0069] Optionally, the resource control request generated by the user terminal may be first sent to the control node, which selects any service node that meets the load balancing requirement and sends the resource control request to the service node, and the user terminal may then establish a connection with the service node.

[0070] The target resource indicator may be, for example, QPS (Queries Per Second), throughput, or bandwidth. The target resource indicator quota defines the total amount limit on the target resource indicator. For example, the QPS quota may refer to the total number of requests processed per second. The throughput quota may refer to the total amount of data transmitted per unit time, and the bandwidth quota may refer to the maximum total rate.

[0071] Among them, QPS, throughput or bandwidth can reflect resource consumption. For example, a larger QPS means that more requests need to be processed per unit time, a larger throughput means that more data needs to be processed per unit time, and a larger bandwidth means that more data needs to be processed per unit time. Processing more requests and data per unit time will lead to increased consumption of network resources and computing resources. Setting QPS quotas, throughput quotas and / or bandwidth quotas for resource pools can limit the computing resources and network resources of the resource pool that can be consumed.

[0072] The resource control request may include the target resource indicator quota, that is, the target resource indicator quota may be set by the user. Optionally, the corresponding target resource indicator quotas may be set for different users in advance. At this time, the service node may also feed back the target resource indicator quota to the user, such as sending the target resource indicator quota to the user terminal, which may output and notify the user.

[0073] In an embodiment of the present application, a user may request to create a resource pool, which may represent a resource collection corresponding to the user. After determining a target resource indicator quota for the resource pool, the user may initiate access to the resource pool and be constrained by the target resource indicator quota corresponding to the resource pool.

[0074] 202: Under the target resource indicator quota constraint, obtain at least one service quality rule configured for the resource pool.

[0075] Each service quality rule corresponds to a resource threshold of a target resource indicator, and the resource threshold corresponding to each service quality rule does not exceed the target resource indicator quota.

[0076] Optionally, each quality of service rule may include a control object and a resource threshold corresponding to the control object. Among them, the control object may refer to a specific access object or a specific access source, for example, and the access object may refer to a storage space or an access prefix; the access source may refer to a source network type, a source address, a source network, or a source account, for example. That is, in the embodiment of the present application, resource consumption control can be performed for access objects or access sources. For example, resource consumption control can be performed on access requests requesting access to a certain storage space; resource consumption control can be performed on access requests whose data names requested for access hit the access prefix; resource consumption control can be performed on access requests from a certain network type, a certain address, a certain network, or a certain account, etc., so that flexible resource consumption control can be implemented for access requests of different control types. Among them, the source network type may include, for example, a public network or a private network, the source address may refer to a request sending address, the source network may refer to, for example, a specific VPC (Virtual Private Cloud), and the source account may refer to a request account for sending an access request, etc.

[0077] The user may configure at least one quality of service rule for the resource pool based on the resource indicator quota. Therefore, optionally, at least one quality of service rule configured by the user for the resource pool under the constraint of the target resource indicator quota may be obtained.

[0078] The at least one quality of service rule can be perceived and sent by the user terminal through relevant configuration operations such as interface interaction or code configuration.

[0079] 203: Save at least one quality of service rule corresponding to the resource pool.

[0080] Among them, the at least one service quality rule can be used by the service node to determine the target service quality rule hit by the access request to the resource pool; the target service quality rule is used by the corresponding detection node to aggregate and calculate the resource consumption data sent by at least one service node, and when the calculation result meets the target service quality rule, notify at least one service node to perform traffic control processing.

[0081] Quality of Service (QoS) rules can be used to allocate network resources, computing resources, storage resources, etc.

[0082] The resource consumption data corresponding to the target quality of service rule may refer to, for example, the QPS, throughput or bandwidth corresponding to the access request that hits the target quality of service rule.

[0083] The aggregate calculation of the resource consumption data sent by at least one service node may be to add up the resource consumption data sent by at least one service node to obtain a total resource consumption value.

[0084] In this embodiment, in response to the obtained resource control request, a resource pool can be created and the target resource indicator quota of the resource pool can be determined. Under the constraint of the target resource indicator quota, at least one service quality rule configured for the resource pool can be obtained, and at least one service quality rule corresponding to the resource pool can be saved. Among them, at least one service quality rule can be used by the service node to determine the target service quality rule hit by the access request; the target service quality rule can be used by the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and notify at least one service node to perform flow control processing when the calculation result meets the target service quality rule. Among them, by configuring at least one service quality rule, resources can be reasonably utilized and resource competition can be avoided. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, resource consumption control is implemented, which can avoid the access request hitting the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0085] In some embodiments, under the target resource indicator quota constraint, obtaining at least one service quality rule configured for the resource pool may include: under the target resource indicator quota constraint, obtaining service quality rules configured for different control objects of any control type of the resource pool based on the target resource indicator, wherein the service quality rule includes a resource threshold corresponding to the control object.

[0086] Among them, the control type may include an access object or an access source. The access object may include a storage space or an access prefix; the access source may include a source network type, a source address, a source network, or a source account. That is, the control type may include a storage space, an access prefix, a source network type, a source address, a source network, or a source account, and different control objects of the control type may refer to different storage spaces, different access prefixes, different source network types, different source addresses, different source networks, or different source accounts. As can be seen from the foregoing description, each quality of service rule may include a control object and a resource threshold corresponding to the control object. If the calculation result corresponding to the target resource indicator reaches the resource threshold of the quality of service rule, it indicates that the calculation result satisfies the quality of service rule, and traffic control processing is required at this time. The resource threshold in each quality of service rule also defines the maximum limit of the target resource indicator corresponding to the control object.

[0087] In combination with the above description, it can be seen that the service quality rules may include control objects and control conditions corresponding to the control objects, wherein one optional control condition may be that the calculation result corresponding to the control object reaches the resource threshold; of course, the control condition may also be implemented in other ways. In combination with the above description, the calculation result may be the total value of resource consumption. Therefore, for example, the control condition may be that the total value of resource consumption continues to grow within a certain period of time, etc. This application does not limit this.

[0088] In order to facilitate the search for the quality of service rule, in some embodiments, the method may further include: generating a rule identifier of the quality of service rule according to a resource pool identifier corresponding to the quality of service rule and an object identifier of a control object.

[0089] For example, the rule identifier key of the service quality rule based on storage space configuration is resource pool identifier (resource-pool-id) + storage space identifier (bucket-id), and the rule identifier key of the service quality rule based on source account configuration is resource pool identifier (resource-pool-id) + source account identifier (UID).

[0090] The storing of at least one quality of service rule corresponding to the resource pool may include: storing at least one quality of service rule corresponding to respective rule identifiers.

[0091] The access request for the resource pool may include the resource pool identifier of the resource pool and the object identifier of the control object, so that the target service quality rule corresponding to the hit rule identifier can be determined based on the resource pool identifier and the object identifier. When the control object is a storage space, the object identifier is also the storage space identifier, which is used to distinguish different storage spaces; when the control object is an access prefix, the object identifier is also the access prefix; when the control object is a source network type, the object identifier can be a private network type or a public network type; when the control object is a source address, the object identifier is a request address; when the control object is a source network, the object identifier can be a network identifier, which is used to distinguish different networks; when the control object is a source account, the object identifier can be a request account, etc.

[0092] For example, in an object storage service scenario, storage space may refer to a basic container bucket in OSS for storing and managing objects. For example, a bucket identifier may be carried in an access request to access the corresponding bucket, and the access request may hit the service quality rule corresponding to the bucket identifier. An access prefix may refer to a string prefix (prefix), and an access request may carry the prefix to access an object that matches the prefix, and the access request may hit the service quality rule corresponding to the prefix. Source network types may include, for example, public networks and private networks, and source addresses may refer to request sending addresses, and source networks may refer to the IP (Internet Protocol) address of a specific VPC, and source accounts may refer to request accounts that send access requests, such as UID (User Identification). Of course, storage space, access prefix source network type, source address, source network, and source account are not limited to object storage service scenarios, and may also include other types of storage space, access prefix, source network type, source address, source network, and source account, and this application does not limit this.

[0093] Among them, the target resource indicator quota can constrain the resource threshold corresponding to any service quality rule not to exceed the target resource indicator quota, and can also constrain the sum of the resource thresholds corresponding to at least one service quality rule configured with the same control type not to exceed the target resource indicator quota.

[0094] The at least one quality of service rule may refer to one or more quality of service rules configured based on one or more control objects in different storage spaces, different access prefixes, different source network types, different source addresses, different source networks, and different source accounts. One control object may correspond to one quality of service rule.

[0095] For example, the target resource indicator quota of the resource pool can be a throughput of 100Mb / s (megabits per second). For example, at least one service quality rule is assumed to be based on the storage space configuration. The resource pool can be associated with storage space 1, storage space 2 and storage space 3. The service quality rules corresponding to storage space 1, storage space 2 and storage space 3 can be configured as follows: the resource threshold corresponding to storage space 1 is 30Mb / s, the resource threshold corresponding to storage space 2 is 30Mb / s, and the resource threshold corresponding to storage space 3 is 40Mb / s, wherein the sum of the resource thresholds corresponding to storage space 1, storage space 2 and storage space 3 does not exceed the target resource indicator quota. For another example, at least one service quality rule is configured based on the source account. The resource pool can be associated with source account 1, source account 2, source account 3 and source account 4, and the service quality rules corresponding to source account 1, source account 2, source account 3 and source account 4 can be configured respectively: the resource threshold corresponding to source account 1 is 40Mb / s, the resource threshold corresponding to source account 2 is 30Mb / s, the resource threshold corresponding to source account 3 is 20Mb / s, and the resource threshold corresponding to source account 4 is 10Mb / s, among which the sum of the resource thresholds corresponding to source account 1, source account 2, source account 3 and source account 4 respectively does not exceed the target resource indicator quota.

[0096] The calculation result of the resource consumption data corresponding to the target service quality rule satisfies the target service quality rule, which may mean that the calculation result of the resource consumption data corresponding to the target service quality rule reaches the resource threshold of the control object corresponding to the target service quality rule.

[0097] In addition, when the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, at least one service node is notified to perform flow control processing. This may refer to performing flow control processing on access requests that hit the target service quality rule. For example, the access request that hits the target service quality rule is rejected, or the access request is delayed, or the transmission frequency of the access request is limited.

[0098] For example, the calculation result of the resource consumption data corresponding to the service quality rule corresponding to storage space 1, that is, the calculation result of the resource consumption data of all access requests carrying the storage space 1 identifier, if the calculation result reaches 30Mb / s, then the service quality rule that the resource threshold corresponding to storage space 1 is 30Mb / s is met, and flow control is performed, that is, access requests carrying the storage space 1 identifier are restricted, such as rejecting access requests carrying the storage space 1 identifier or delaying the processing of access requests carrying the storage space 1 identifier or limiting the transmission frequency of access requests carrying the storage space 1 identifier.

[0099] Among them, as can be seen from the above description, each quality of service rule can be generated corresponding to a rule identifier. The rule identifier can be used to determine the corresponding detection node, and the same rule identifier can be used to index the same detection node, so that a detection node can correspond to one or more quality of service rules, and is used to perform resource consumption aggregation calculation and detection on one or more quality of service rules, etc. Different detection nodes correspond to different quality of service rules. In actual applications, after the service node receives an access request and determines the target quality of service rule hit by the access request, it can perform a hash operation on the rule identifier of the target quality of service rule, and determine the corresponding detection node in combination with the node list size of multiple detection nodes, so as to ensure that the same rule identifier can be used to index the same detection node. For example, the hash value of the rule identifier can be calculated, and the node list size (that is, the number of nodes) can be modulo operated using the hash value, and the remainder obtained is used as the node index value, that is, the detection node corresponding to the node index value can be obtained from the node list. For example, there are 4 detection nodes in the node list, and the node index value is 3, then the detection node corresponding to the node index value 3 is the third detection node in the node list.

[0100] A detection node can correspond to one or more rule identifiers, and different detection nodes correspond to different rule identifiers. In actual applications, there can be multiple access requests for the same control object in the same resource pool, and multiple access requests will be distributed to different service nodes. Through rule identifiers, it can be ensured that the resource consumption data corresponding to the access requests that hit the same service quality rule are sent to the same detection node, so that the detection node can perform global calculations.

[0101] In some embodiments, in order to keep the user's resource group and traffic aggregated in the cluster unit, it is convenient for configuration and management. The method may also include: creating an access point corresponding to the resource pool; returning access point information corresponding to the access point to the user; wherein the access point information is used to trigger the distribution of the access request initiated based on the access point to the service node in the service cluster corresponding to the access point.

[0102] Through the one-to-one correspondence between the resource pool and the access point, an access request for the resource pool can be initiated based on the access point. Each access point can correspond to a domain name, and the access point information corresponding to the access point can specifically be the access point domain name. The user can initiate an access request based on the access point. In the case where the user provides the resource pool to multiple tenants for access, the user can feedback the access point domain name to the multiple tenants, etc.

[0103] In some embodiments, saving at least one quality of service rule corresponding to the resource pool may include: saving at least one quality of service rule corresponding to the resource pool to a configuration node; and the configuration node is used to provide the at least one quality of service rule to multiple detection nodes.

[0104] Among them, at least one service quality rule is saved in the configuration node, so that the detection node focuses on detection without paying attention to configuration-related information, making detection and configuration independent. When the service quality rule needs to be updated, only the information in the configuration node needs to be updated without affecting the detection node, thereby reducing the possibility of errors and improving the flexibility of the control system.

[0105] Furthermore, in some embodiments, the method may further include: updating at least one quality of service rule in response to an update request for the resource pool.

[0106] For example, at least one quality of service rule may be updated by adding, deleting and / or modifying, and the configuration node may save the at least one quality of service rule after the update.

[0107] In some embodiments, the method may further include: establishing an association relationship between the resource pool and at least one storage space in response to an obtained association request; or, creating a storage space associated with the resource pool in response to an obtained creation request; wherein the access request is sent to any storage space associated with the resource pool.

[0108] In response to the obtained association request, an association relationship between the resource pool and at least one existing storage space can be established. In response to the obtained creation request, a new storage space associated with the resource pool is created. After the storage space is associated with the resource pool, any storage space associated with the resource pool can be accessed to send an access request.

[0109] The user may trigger the association request through the user terminal, and may trigger the association request through an interface interaction method or a code configuration method. Optionally, the association request generated by the user terminal may first be sent to the control node, and the control node selects any service node that meets the load balancing requirements and sends the association request to the service node, and the user terminal may establish a connection with the service node.

[0110] The user may trigger the creation request through the user terminal, and may trigger the creation request through interface interaction or code configuration. Optionally, the creation request generated by the user terminal may first be sent to the control node, which selects any service node that meets the load balancing requirements and sends the creation request to the service node, so that the user terminal can establish a connection with the service node.

[0111] In an actual application, for example, in an object storage service scenario, a user may create a resource pool, establish an association relationship between the resource pool and at least one storage space, and create a storage space associated with the resource pool. When the user provides the resource pool to multiple tenants for access, the user or different tenants may send an access request to any storage space associated with the resource pool. For example, at least one quality of service rule may configure corresponding quality of service rules for different tenants based on the source accounts of different tenants, so as to reasonably allocate resources to different tenants, isolate resources of different tenants, and avoid competition for resources among different tenants.

[0112] Figure 3 This is a flowchart of another embodiment of a configuration method provided by the present application. The technical solution of this embodiment can be executed by a user end, wherein the user end can be the same as or different from the client end that subsequently initiates an access request. The method can include the following steps: 301: Detect resource control operations triggered by users and generate resource control requests.

[0113] The resource control request may be used to trigger the service node to create a resource pool and determine the target resource indicator quota of the resource pool.

[0114] 302: In response to a rule configuration operation by a user, determine at least one quality of service rule configured for a resource pool.

[0115] 303: Send at least one quality of service rule to a service node.

[0116] Among them, the service node can save at least one service quality rule corresponding to the resource pool; at least one service quality rule is used by the service node to determine the target service quality rule hit by the access request to the resource pool; the target service quality rule is used by the corresponding detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, notify at least one service node to perform traffic control processing.

[0117] In this embodiment, the user end can detect the resource control operation triggered by the user and generate a resource control request. Among them, the resource control request can be used to trigger the service node to create a resource pool and determine the target resource indicator quota of the resource pool. The user end can determine at least one service quality rule configured for the resource pool in response to the user's rule configuration operation. By configuring at least one service quality rule, resources can be reasonably utilized and resource competition can be avoided. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, resource consumption control is implemented, which can avoid the access request that hits the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0118] Figure 4 This is a flowchart of an embodiment of an access method provided by the present application. The technical solution of this embodiment can be executed by a service node. The method may include the following steps: 401: In response to an access request, determine a target quality of service rule hit by the access request.

[0119] The target service quality rule may be determined from at least one service quality rule configured by the user under the target resource indicator quota constraint. The configuration of at least one service quality rule may be performed by the service node. For the specific configuration process, please refer to the above Figure 1 The embodiments shown will not be described in detail here.

[0120] At least one quality of service rule may be saved to the configuration node, and the service node may determine a target quality of service rule hit by the access request from the configuration node.

[0121] The access request may be distributed and obtained by the control node.

[0122] 402: Determine a detection node corresponding to the target quality of service rule.

[0123] One detection node may correspond to one or more quality of service rules, and different detection nodes may correspond to different quality of service rules.

[0124] In practical applications, for example, the detection node corresponding to each quality of service rule may be preset. Of course, as described above, the detection node corresponding to the target quality of service rule may also be determined in real time in combination with the rule identifier.

[0125] 403: Collect resource consumption data corresponding to at least one access request that hits the target service quality rule.

[0126] 404: Send the resource consumption data to the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and send a control instruction to at least one service node when the calculation result meets the target service quality rule.

[0127] 405: In response to the control instruction sent by the detection node, flow control processing is performed on the access request that hits the target service quality rule.

[0128] In this embodiment, at least one service quality rule is configured to make reasonable use of resources and avoid resource competition. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, a control instruction is sent to at least one service node to implement resource consumption control for the access request that hits the target service quality rule, which can avoid the access request that hits the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0129] In some embodiments, in response to an access request, determining a target quality rule hit by the access request may include: determining, in response to the access request, an object identifier of a resource pool and a target control object corresponding to the access request; and determining a target service quality rule corresponding to the target object identifier from at least one service quality rule corresponding to the resource pool.

[0130] In combination with the foregoing description, it can be known that the control type may include storage space, access prefix, source network type, source address, source network, or source account, and different control objects of the control type may refer to different storage spaces, different access prefixes, different source network types, different source addresses, different source networks, or different source accounts. The quality of service rules may be configured separately according to different resource thresholds corresponding to different control objects. The target control object may refer to the target storage space, target access prefix, target network type, target address, target source network, or target account. Since the quality of service rules may be configured separately according to different control objects, the target quality of service rules may be determined according to the target control object corresponding to the object identifier of the target control object.

[0131] In some embodiments, determining the detection node corresponding to the target quality rule may include: determining a rule identifier of the target quality rule; and determining the corresponding detection node according to the rule identifier; wherein the same rule identifier is indexed to the same detection node.

[0132] The rule identifier may be generated according to the resource pool identifier corresponding to the quality of service rule and the object identifier of the control object.

[0133] Among them, determining the corresponding detection node according to the rule identifier may include: obtaining a node list of multiple detection nodes from the scheduling node; calculating the hash value of the rule identifier, and calculating the node index value according to the hash value and the node list size; determining the corresponding detection node according to the node index value.

[0134] For example, the hash value of the calculation rule identifier can be used to perform a modulo operation on the size of the node list (that is, the number of nodes). The remainder obtained is used as the node index value, that is, the detection node corresponding to the node index value can be obtained from the node list. For example, there are 4 detection nodes in the node list, and the detection node corresponding to the node index value 3 is the third detection node in the node list.

[0135] By calculating the hash value of the rule identifier of the service quality rule and distributing the service quality rule to different detection nodes, it can be ensured that the resource consumption data of the access request hitting different service quality rules is evenly sent to multiple detection nodes to avoid overloading any detection node.

[0136] In some embodiments, sending the resource consumption data to the detection node may include: sending the resource consumption data collected within a preset time to the detection node at a preset interval. This implementation method can periodically send resource consumption data to the detection node to avoid frequent interactions with the detection node, reduce resource consumption caused by frequent interactions, reduce performance interference, and improve stability.

[0137] There are multiple implementation methods for performing flow control processing on access requests. As an optional implementation method, in response to the control instruction sent by the detection node, performing flow control processing on access requests that hit the target service quality rule may include: in response to the control instruction sent by the detection node, rejecting the access request that hits the target service quality rule As another optional implementation, in response to a control instruction sent by the detection node, performing flow control processing on access requests that hit the target service quality rule may include: in response to the control instruction sent by the detection node, delaying processing of the access requests that hit the target service quality rule.

[0138] As another optional implementation, in response to a control instruction sent by the detection node, performing flow control processing on access requests that hit the target service quality rules may include: in response to a control instruction sent by the detection node, limiting the transmission rate of access requests that hit the target service quality rules.

[0139] This embodiment implements resource consumption control when the calculation result of the resource consumption data corresponding to the target service quality rule satisfies the target service quality rule. This can prevent the access request that hits the target service quality rule from consuming too many resources and affecting the access request that hits other service quality rules. Therefore, it can ensure the access effect, improve the service quality, prevent performance overload, reduce performance fluctuations, and improve stability.

[0140] In some embodiments, the method may further include: obtaining an access request distributed by a control node; the control node is used to distribute the access request sent by at least one client based on the access point to a service node in a service cluster corresponding to the access point. Through the control node, load balancing of distributing access requests to service nodes can be achieved to avoid overloading of any service node. Through the access point, the user's resource group and traffic can be kept aggregated on the cluster unit.

[0141] Figure 5 This is a flowchart of another embodiment of an access method provided by the present application. The technical solution of this embodiment can be executed by a detection node. The method may include the following steps: 501: Obtain resource consumption data sent by at least one service node.

[0142] The resource consumption data is sent according to the detection node corresponding to the target service quality rule hit by the access request.

[0143] 502: Gather and calculate resource consumption data sent by at least one service node.

[0144] Optionally, the resource consumption data sent by at least one service node may be aggregated and calculated at every specified time interval.

[0145] 503: Determine whether the calculation result meets the target service quality rule.

[0146] The calculation result may refer to the sum of resource consumption data sent by at least one service node within a specified time.

[0147] 504: When the calculation result satisfies the target service quality rule, a control instruction is sent to at least one service node to notify the at least one service node to perform flow control processing.

[0148] As can be seen from the previous description, the target service quality rules can include the resource threshold of the target resource indicator. If the calculation result reaches the resource threshold, it can be considered that the calculation result meets the target service quality rules. At this time, traffic control processing can be performed to avoid a certain type of control access request occupying too many resources and affecting other access requests.

[0149] In this embodiment, resource consumption data sent by at least one service node is obtained, wherein the resource consumption data is sent according to the detection node corresponding to the target service quality rule hit by the access request, the resource consumption data sent by at least one service node is calculated, and it is determined whether the calculation result meets the target service quality rule. If the calculation result meets the target service quality rule, a control instruction is sent to at least one service node to notify at least one service node to perform flow control processing. Wherein, if the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, flow control processing is performed on at least one service node to implement resource consumption control, so as to avoid the access request hitting the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0150] Figure 6 This is a flowchart of another embodiment of an access method provided by the present application. The technical solution of this embodiment can be executed by a control node. The method may include the following steps: 601: Receive an access request sent by at least one client based on an access point.

[0151] 602: Determine a service cluster corresponding to the resource pool corresponding to the access point.

[0152] 603: Send the access request to the service node in the service cluster.

[0153] Among them, the service node is used to determine the target service quality rule hit by the access request and the detection node corresponding to the target service quality rule, and collect resource consumption data corresponding to at least one access request that hits the target service quality rule, and send the resource consumption data to the detection node; the detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, send a control instruction to at least one service node; the control instruction is used to notify the server to perform traffic control processing.

[0154] Among them, the resource pool can be created in response to the obtained resource control request, the access point can be created for the resource pool, the access point corresponds to the resource pool one by one, and an access request for the resource pool can be initiated based on the access point. Through the access point, the user's resource group and traffic can be kept clustered in the cluster unit, thereby facilitating information aggregation, calculation and processing, etc.

[0155] In this embodiment, an access request sent by at least one client based on an access point is received; a service cluster corresponding to a resource pool corresponding to the access point is determined; the access request is sent to a service node in the service cluster; wherein the service node is used to determine the target service quality rule hit by the access request and the detection node corresponding to the target service quality rule, and collect resource consumption data corresponding to at least one access request that hits the target service quality rule, and send the resource consumption data to the detection node; the detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and send a control instruction to at least one service node when the calculation result meets the target service quality rule; the control instruction is used to notify the server to perform flow control processing. wherein, the access point corresponds to the service cluster, so that the user's resource group and flow can be kept aggregated on the cluster unit, which is convenient for configuration and management, and by configuring at least one service quality rule, resources can be reasonably utilized to avoid resource competition. When the calculation result of the resource consumption data corresponding to the target service quality rule meets the target service quality rule, flow control processing is performed on at least one service node to implement resource consumption control. This can prevent access requests that hit the target service quality rule from consuming too many resources and affecting other access requests. Therefore, the access effect can be guaranteed, the service quality can be improved, and performance overload can be prevented, performance fluctuations can be reduced, and the stability of the system can be improved.

[0156] Figure 7 A schematic diagram of a configuration device according to an embodiment of the present application is provided, wherein the method device comprises: The creation module 701 is used to create a resource pool and determine a target resource indicator quota of the resource pool in response to the acquired resource control request.

[0157] The first acquisition module 702 is used to acquire at least one quality of service rule configured for the resource pool under the constraint of the target resource indicator quota.

[0158] The saving module 703 is used to save at least one quality of service rule corresponding to the resource pool.

[0159] Among them, the at least one service quality rule can be used by the service node to determine the target service quality rule hit by the access request to the resource pool; the target service quality rule is used by the corresponding detection node to aggregate and calculate the resource consumption data sent by at least one service node, and when the calculation result meets the target service quality rule, notify at least one service node to perform traffic control processing.

[0160] In some embodiments, the first acquisition module acquires at least one service quality rule configured for the resource pool under the target resource indicator quota constraint, which may include: acquiring service quality rules configured by the user for different control objects of any control type of the resource pool based on the target resource indicator under the target resource indicator quota constraint. The service quality rule includes a resource threshold corresponding to the control object.

[0161] In some embodiments, the control type may include an access object or an access source; the access object may include a storage space or an access prefix; the access source may include a source network type, a source address, a source network, or a source account.

[0162] In order to facilitate the search for the quality of service rule, in some embodiments, the apparatus may also be used to: generate a rule identifier of the quality of service rule according to a resource pool identifier corresponding to the quality of service rule and an object identifier of a control object.

[0163] The storing module storing at least one quality of service rule corresponding to the resource pool may include: storing at least one quality of service rule corresponding to respective rule identifiers.

[0164] In some embodiments, in order to keep the user's resource group and traffic aggregated in the cluster unit, it is convenient for configuration and management. The device can also be used to: create an access point corresponding to the resource pool; return the access point information corresponding to the access point to the user; wherein the access point information is used to trigger the distribution of the access request initiated based on the access point to the service node in the service cluster corresponding to the access point.

[0165] In some embodiments, the saving module saving at least one quality of service rule corresponding to the resource pool may include: saving at least one quality of service rule corresponding to the resource pool to a configuration node; and the configuration node is used to provide the at least one quality of service rule to multiple detection nodes.

[0166] Furthermore, in some embodiments, the apparatus may also be configured to: update at least one quality of service rule in response to an update request for a resource pool.

[0167] In some embodiments, the device can also be used to: establish an association relationship between a resource pool and at least one storage space in response to an obtained association request; or, create a storage space associated with the resource pool in response to an obtained creation request; wherein the access request is sent to any storage space associated with the resource pool.

[0168] Figure 7 The configuration device can execute Figure 2The implementation principle and technical effect of the configuration method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0169] Figure 8 A schematic diagram of a configuration device according to an embodiment of the present application is provided, wherein the method device comprises: The detection module 801 is used to detect the resource control operation triggered by the user and generate a resource control request.

[0170] The first determination module 802 is configured to determine at least one quality of service rule configured for a resource pool in response to a rule configuration operation by a user.

[0171] The first sending module 803 is configured to send at least one quality of service rule to a service node.

[0172] The resource control request may be used to trigger the service node to create a resource pool and determine the target resource indicator quota of the resource pool.

[0173] Among them, the service node can save at least one service quality rule corresponding to the resource pool; at least one service quality rule is used by the service node to determine the target service quality rule hit by the access request to the resource pool; the target service quality rule is used by the corresponding detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, notify at least one service node to perform traffic control processing.

[0174] Figure 8 The configuration device can execute Figure 3 The implementation principle and technical effect of the configuration method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the configuration device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0175] Fig. 9 A schematic diagram of a structure of an embodiment of an access device provided in an embodiment of the present application, wherein the method device comprises: The second determination module 901 is used to determine, in response to an access request, a target quality of service rule hit by the access request.

[0176] The third determination module 902 is used to determine the detection node corresponding to the target service quality rule.

[0177] The collecting module 903 is used to collect resource consumption data corresponding to at least one access request that hits a target quality of service rule.

[0178] The second sending module 904 is used to send the resource consumption data to the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and send a control instruction to at least one service node when the calculation result meets the target service quality rule.

[0179] The first control module 905 is used to perform flow control processing on the access request that hits the target quality of service rule in response to the control instruction sent by the detection node.

[0180] In some embodiments, the second determination module determines, in response to the access request, the target quality rule hit by the access request, which may include: determining, in response to the access request, the resource pool and the object identifier of the target control object corresponding to the access request; and determining, from at least one service quality rule corresponding to the resource pool, the target service quality rule corresponding to the target object identifier.

[0181] In some embodiments, the third determination module determining the detection node corresponding to the target quality rule may include: determining a rule identifier of the target quality rule; determining the corresponding detection node according to the rule identifier; wherein the same rule identifier indexes the same detection node.

[0182] The rule identifier may be generated according to the resource pool identifier corresponding to the quality of service rule and the object identifier of the control object.

[0183] Among them, determining the corresponding detection node according to the rule identifier may include: obtaining a node list of multiple detection nodes from the scheduling node; calculating the hash value of the rule identifier, and calculating the node index value according to the hash value and the node list size; determining the corresponding detection node according to the node index value.

[0184] In some embodiments, the second sending module sending the resource consumption data to the detection node may include: sending the resource consumption data collected within a preset time to the detection node at every preset time interval.

[0185] Among them, the first control module can perform flow control processing on the access request in multiple ways. As an optional implementation method, the first control module responds to the control instruction sent by the detection node, and the flow control processing on the access request that hits the target service quality rule may include: responding to the control instruction sent by the detection node, rejecting the access request that hits the target service quality rule As another optional implementation, the first control module performs flow control processing on access requests that hit target service quality rules in response to control instructions sent by the detection node, which may include: delaying processing of access requests that hit target service quality rules in response to control instructions sent by the detection node.

[0186] As another optional implementation method, the first control module may perform flow control processing on access requests that hit the target service quality rules in response to the control instructions sent by the detection node, which may include: limiting the transmission rate of access requests that hit the target service quality rules in response to the control instructions sent by the detection node.

[0187] In some embodiments, the device may also be used to: obtain an access request distributed by a control node; the control node is used to distribute the access request sent by at least one client based on the access point to a service node in a service cluster corresponding to the access point.

[0188] Fig. 9 The access device can execute Figure 4 The implementation principle and technical effect of the access method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the access device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0189] Fig.10 A schematic diagram of a structure of an embodiment of an access device provided in an embodiment of the present application, wherein the method device comprises: The second acquisition module 1001 is used to acquire resource consumption data sent by at least one service node.

[0190] The resource consumption data is sent according to the detection node corresponding to the target service quality rule hit by the access request.

[0191] The aggregation and calculation module 1002 is used to aggregate and calculate the resource consumption data sent by at least one service node.

[0192] The fourth determination module 1003 is used to determine whether the calculation result meets the target service quality rule.

[0193] The second control module 1004 is used to send a control instruction to at least one service node to notify the at least one service node to perform flow control processing when the calculation result meets the target service quality rule.

[0194] Among them, the target service quality rule can include the resource threshold of the target resource indicator. If the calculation result reaches the resource threshold, it can be considered that the calculation result meets the target service quality rule. At this time, traffic control processing can be performed to avoid a certain type of control access request occupying too many resources and affecting other access requests.

[0195] Fig.10 The access device can execute Figure 5The implementation principle and technical effect of the access method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the access device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0196] Fig.11 A schematic diagram of a structure of an embodiment of an access device provided in an embodiment of the present application, wherein the method device comprises: The receiving module 1101 is configured to receive an access request sent by at least one client based on an access point.

[0197] The fifth determining module 1102 is configured to determine a service cluster corresponding to a resource pool corresponding to an access point.

[0198] The third sending module 1103 sends the access request to a service node in the service cluster.

[0199] Among them, the service node is used to determine the target service quality rule hit by the access request and the detection node corresponding to the target service quality rule, and collect resource consumption data corresponding to at least one access request that hits the target service quality rule, and send the resource consumption data to the detection node; the detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, send a control instruction to at least one service node; the control instruction is used to notify the server to perform traffic control processing.

[0200] Among them, the resource pool can be created in response to the obtained resource control request, the access point can be created for the resource pool, the access point corresponds to the resource pool one by one, and an access request for the resource pool can be initiated based on the access point. Through the access point, the user's resource group and traffic can be kept clustered in the cluster unit, thereby facilitating information aggregation, calculation and processing, etc.

[0201] Fig.11 The access device can execute Figure 6 The implementation principle and technical effect of the access method described in the illustrated embodiment will not be described in detail. The specific manner in which each module and unit performs operations in the access device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0202] The present application also provides a computing device, such as Fig.12 As shown, the device may include a storage component 1201 and a processing component 1202; The storage component 1201 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component to implement the following Figure 2 The configuration method described in the embodiment shown or Figure 3 The configuration method described in the embodiment shown or Figure 4 The access method described in the embodiment shown or Figure 5 The access method described in the embodiment shown or Figure 6 The access method described in the illustrated embodiment.

[0203] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.

[0204] The processing component 1202 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0205] The storage component 1201 is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0206] The display component may be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0207] It should be noted that the above computing device is implemented as follows Figure 2 The configuration method described in the embodiment shown or Figure 4 The access method described in the embodiment shown or Figure 5 The access method described in the embodiment shown or Figure 6 In the case of the access method described in the embodiment shown, it can be a physical device or an elastic computing host provided by a cloud computing platform. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. The above computing device is implemented as follows Figure 3In the case of the configuration method described in the illustrated embodiment, it can be specifically implemented as an electronic device. The electronic device can refer to a device used by a user and having the computing, Internet access, communication and other functions required by the user, such as a mobile phone, tablet computer, personal computer, wearable device, etc.

[0208] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a computer, the above-mentioned Figure 2 The configuration method described in the embodiment shown or Figure 3 The configuration method described in the embodiment shown or Figure 4 The access method described in the embodiment shown or Figure 5 The access method described in the embodiment shown or Figure 6 The access method described in the illustrated embodiment. The computer-readable medium may be included in the electronic device described in the above embodiment; or it may exist independently without being assembled into the electronic device.

[0209] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium. When the computer program is executed by a computer, the computer program can achieve the above-mentioned Figure 2 The configuration method described in the embodiment shown or Figure 3 The configuration method described in the embodiment shown or Figure 4 The access method described in the embodiment shown or Figure 5 The access method described in the embodiment shown or Figure 6 The access method described in the illustrated embodiment. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the system of the present application are executed.

[0210] In the above corresponding embodiments, the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0211] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0212] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0213] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0214] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A configuration method, It is characterized in that include: In response to the acquired resource control request, create a resource pool and determine a target resource indicator quota of the resource pool; Under the constraint of the target resource indicator quota, obtaining at least one quality of service rule configured for the resource pool; The at least one quality of service rule corresponding to the resource pool is saved; the at least one quality of service rule is used by the service node to determine the target quality of service rule hit by the access request to the resource pool; the target quality of service rule is used by the corresponding detection node to aggregate and calculate the resource consumption data sent by at least one service node, and when the calculation result meets the target quality of service rule, notify the at least one service node to perform flow control processing.

2. The method according to claim 1, It is characterized in that The acquiring of at least one quality of service rule configured for the resource pool under the target resource indicator quota constraint includes: Under the constraint of the target resource indicator quota, quality of service rules respectively configured for different control objects of any control type of the resource pool are obtained; the quality of service rules include resource thresholds corresponding to the control objects.

3. The method according to claim 2, It is characterized in that Also includes: Generate a rule identifier of the quality of service rule according to the resource pool identifier corresponding to the quality of service rule and the object identifier of the control object; The storing of the at least one quality of service rule corresponding to the resource pool comprises: The at least one quality of service rule is stored corresponding to the respective rule identifiers; wherein the rule identifier is used to determine the corresponding detection node; wherein the same rule identifier is indexed to the same detection node.

4. The method according to claim 1, It is characterized in that Also includes: Creating an access point corresponding to the resource pool; The access point information corresponding to the access point is returned to the user; wherein the access point information is used to trigger the distribution of the access request initiated based on the access point to the service node in the service cluster corresponding to the access point.

5. The method according to claim 1, It is characterized in that The storing of the at least one quality of service rule corresponding to the resource pool comprises: The at least one quality of service rule corresponding to the resource pool is saved in a configuration node; the configuration node is used to provide the at least one quality of service rule to the detection node.

6. The method according to claim 1, It is characterized in that Also includes: In response to the acquired association request, establishing an association relationship between the resource pool and at least one storage space; or, In response to the obtained creation request, a storage space associated with the resource pool is created; wherein the access request is sent to any storage space associated with the resource pool.

7. A method of accessing It is characterized in that Applied to a detection node, the method comprises: Obtaining resource consumption data sent by at least one service node; the resource consumption data is sent according to the detection node corresponding to the target service quality rule hit by the access request; Aggregating and calculating the resource consumption data sent by the at least one service node; Determining whether the calculation result satisfies the target service quality rule; In a case where the calculation result satisfies the target service quality rule, a control instruction is sent to the at least one service node to notify the at least one service node to perform flow control processing.

8. A method of accessing It is characterized in that Applied to a service node, the method comprises: In response to the access request, determining a target quality of service rule hit by the access request; the target quality of service rule is determined from at least one quality of service rule configured by the user under the target resource indicator quota constraint; Determine a detection node corresponding to the target service quality rule; Collecting resource consumption data corresponding to at least one access request that hits the target quality of service rule; Sending the resource consumption data to the detection node to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and sending a control instruction to the at least one service node when the calculation result meets the target service quality rule; In response to the control instruction sent by the detection node, flow control processing is performed on the access request that hits the target quality of service rule.

9. The method according to claim 8, It is characterized in that In response to the access request, determining a target quality of service rule hit by the access request includes: In response to the access request, determining the resource pool and the object identifier of the target control object corresponding to the access request; A target quality of service rule corresponding to the object identifier of the target control object is determined from at least one quality of service rule corresponding to the resource pool.

10. The method according to claim 8, It is characterized in that The determining of the detection node corresponding to the target service quality rule comprises: Determining a rule identifier of the target quality of service rule; According to the rule identifier, a corresponding detection node is determined; wherein the same rule identifier is indexed to the same detection node.

11. The method according to claim 10, It is characterized in that The determining, according to the rule identifier, a corresponding detection node comprises: Obtain a node list of multiple detection nodes from the scheduling node; Calculate the hash value of the rule identifier, and calculate the node index value according to the hash value and the size of the node list; A corresponding detection node is determined according to the node index value.

12. The method according to claim 8, It is characterized in that The sending the resource consumption data to the detection node comprises: The resource consumption data collected within the preset time is sent to the detection node at every preset time interval.

13. The method according to claim 8, It is characterized in that The performing flow control processing on the access request that hits the target quality of service rule in response to the control instruction sent by the detection node comprises: In response to the control instruction sent by the detection node, the access request that hits the target quality of service rule is rejected or the processing of the access request is delayed or the transmission frequency of the access request is limited.

14. The method according to claim 8, It is characterized in that Also includes: Obtain access requests distributed by the control node; The control node is used to distribute the access request sent by at least one client based on the access point to the service node in the service cluster corresponding to the access point.

15. A method of accessing It is characterized in that Applied to a control node, the method comprises: receiving an access request sent by at least one client based on an access point; Determine a service cluster corresponding to the resource pool corresponding to the access point; The access request is sent to a service node in the service cluster; the service node is used to determine the target service quality rule hit by the access request and the detection node corresponding to the target service quality rule, and collect resource consumption data corresponding to at least one access request that hits the target service quality rule, and send the resource consumption data to the detection node; the detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and when the calculation result meets the target service quality rule, send a control instruction to the at least one service node; the control instruction is used to notify the server to perform flow control processing.

16. A control system, It is characterized in that It includes a scheduling cluster and a service cluster; the scheduling cluster includes multiple detection nodes; the service cluster includes a control node and multiple service nodes; The control node is used to receive an access request sent by at least one client based on the resource pool; Determining the service cluster corresponding to the resource pool; Sending the access request to a corresponding service node in the service cluster; The service node is used to determine, in response to an access request, a target service quality rule hit by the access request; the target service quality rule is determined from at least one service quality rule configured by a user under a target resource indicator quota constraint; and determine a detection node corresponding to the target service quality rule; Collecting resource consumption data corresponding to at least one access request that hits the target quality of service rule; sending the resource consumption data to the detection node; In response to the control instruction sent by the detection node, performing flow control processing on the access request that hits the target quality of service rule; The detection node is used to collect and calculate the resource consumption data corresponding to the target service quality rule sent by at least one service node, and send the control instruction to the at least one service node when the calculation result meets the target service quality rule.

17. The system according to claim 16, It is characterized in that The scheduling cluster also includes a scheduling node; The service node determines the detection node corresponding to the target service quality rule, including: determining the detection node corresponding to the target service quality rule from a node list provided by the scheduling node; The scheduling node is used to provide the service node with a node list of the multiple detection nodes; and in the event of a failure of any detection node, update the node list provided to the service node.

18. The system according to claim 16, It is characterized in that The control node is further configured to receive a resource control request and send the resource control request to a corresponding service node; The service node is also used to create a resource pool and determine the target resource indicator quota of the resource pool in response to the obtained resource control request; obtain at least one service quality rule configured for the resource pool under the constraint of the target resource indicator quota; and save the at least one service quality rule corresponding to the resource pool.

19. A computing device, It is characterized in that It comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the configuration method as described in any one of claims 1 to 6 or the access method as described in claim 7 or the access method as described in any one of claims 8 to 14 or the access method as described in claim 15.

20. A computer storage medium, It is characterized in that A computer program is stored, and when the computer program is executed by a computer, the configuration method according to any one of claims 1 to 6 or the access method according to claim 7 or the access method according to any one of claims 8 to 14 or the access method according to claim 15 is implemented.

21. A computer program product, It is characterized in that It includes a computer program / instruction, which, when executed by a computer, implements the configuration method according to any one of claims 1 to 6, the access method according to claim 7, the access method according to any one of claims 8 to 14, or the access method according to claim 15.

Citation Information

Patent Citations

  • Flow control method and system, server and storage medium

    CN110198275A

  • Flow control method and system

    CN113285884A

  • Flow control system, method and device

    CN117014346A

  • Automatic account resource and policy decommissioning

    US10567388B1