Business processing method and device, computer equipment and storage medium
By determining the actual performance configuration values of each logical volume in the storage system and processing services, the problem of excessive storage pool pressure is solved, the processing performance is improved and the service quality of the logical volume is guaranteed.
Patent Information
- Application Number
- CN202411698327.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-04-22
AI Technical Summary
Existing storage systems can easily lead to excessive pressure on the storage pool during business processing, affecting processing performance.
By obtaining the storage pool performance configuration value of the quality of service policy of the storage pool and the logical volume performance configuration value of the quality of service policy of multiple logical volumes, assigning weights, storage pool performance configuration value and logical volume performance configuration value according to the configuration value of the logical volume, determining the actual performance configuration value of each logical volume under the storage pool processing capacity limit, and processing services based on the actual performance configuration value.
This method can reduce the pressure of the storage pool, improve the processing performance of the storage pool, ensure the service quality of the logical volume, and match the performance of each logical volume with the business processing priority.
Smart Images

Figure CN119861865A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer storage technology, and in particular to a business processing method, apparatus, computer equipment and storage medium. Background Art
[0002] Usually, the storage system abstracts multiple physical disks into a storage pool, creates a logical volume of a certain capacity on the storage pool, and then maps the logical volume to the host. Different types of services on the host are sent to the storage system through different logical volumes.
[0003] In related technologies, different logical volumes are added to different Quality of Service (QoS) policies to prevent interference between host services. Each QoS policy sets different performance configuration values (such as the number of input / output operations per second, bandwidth, etc.) to limit the maximum system resources allowed to be consumed by different services.
[0004] In the related art, when performing business processing, it is easy to cause excessive pressure on the storage pool, affecting the processing performance of the storage pool. Summary of the invention
[0005] Based on this, it is necessary to provide a business processing method, apparatus, computer equipment and storage medium to address the above technical problems, which can reduce the pressure on the storage pool and improve the processing performance of the storage pool.
[0006] In a first aspect, an embodiment of the present application provides a service processing method, including:
[0007] Obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on the processing capacity of the storage pool;
[0008] According to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined;
[0009] Process the storage pool services based on the actual performance configuration value of each logical volume.
[0010] In the business processing method provided in the embodiment of the present application, the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool are obtained, and then the weights, storage pool performance configuration values and each logical volume performance configuration value are allocated according to the configuration values of the multiple logical volumes, and the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined, and then the business of the storage pool is processed according to the actual performance configuration value of each logical volume, wherein the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In the method, when processing business on the storage pool, based on the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of each logical volume in the storage pool, and combining the configuration value of each logical volume to allocate weights, the actual performance configuration value of each logical volume is calculated, and the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In this way, the actual performance configuration value is determined under the processing capacity constraint of the storage pool. Processing business based on the actual performance configuration value can ensure the service quality of the logical volume and improve the processing performance of the storage pool, which is equivalent to creating a service quality policy for the storage pool and setting the storage pool performance configuration value according to the processing capacity that the storage pool can provide. The total performance of all logical volumes in the storage pool can be controlled to avoid excessive pressure on the storage pool and cause service level degradation. At the same time, the actual performance configuration value of each logical volume is determined based on the configuration value allocation weight of each logical volume, so that while ensuring the service quality of the logical volume, the performance of each logical volume is matched with the business processing priority, and the processing performance of the storage pool is further improved.
[0011] In one embodiment, the method further comprises:
[0012] Determine the comprehensive performance configuration value of the service quality policy of each logical volume according to the performance configuration value of each logical volume;
[0013] The ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value is determined as the configuration value allocation weight of each logical volume.
[0014] In the business processing method provided by the embodiment of the present application, the comprehensive performance configuration value of the service quality policy of each logical volume is determined according to the performance configuration value of each logical volume, and then the ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value is determined as the configuration value allocation weight of each logical volume. In this method, the logical volume performance configuration value of the service quality policy of each logical volume represents different business priorities. When the configuration value allocation weight of each logical volume is determined based on the business priority, the configuration value allocation weight of each logical volume can be calculated based on the ratio of the logical volume performance configuration value of the service quality policy of each logical volume, so that the actual performance configuration value of each logical volume matches the corresponding business priority, which improves the accuracy and rationality of the configuration value allocation and provides data support for the allocation of the actual performance configuration value of the logical volume.
[0015] In one embodiment, according to the configuration value allocation weights of the plurality of logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, determining the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool includes:
[0016] Determine the actual performance of the quality of service policy for each logical volume based on the weights assigned to each configuration value and the storage pool performance configuration value;
[0017] According to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, each actual performance configuration value is determined.
[0018] In the business processing method provided by the embodiment of the present application, the actual performance of the service quality policy of each logical volume is determined according to the weights assigned to each configuration value and the storage pool performance configuration value, and then the actual performance configuration value is determined according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume. In this method, firstly, the storage pool performance configuration value is divided by the configuration value assignment weights of each logical volume to obtain the actual performance of the service quality policy of each logical volume, so as to quickly and accurately determine the actual performance allocation value of each logical volume under the processing performance of the storage pool based on the actual performance and the performance configuration value of each logical volume, thereby laying a foundation for the business processing of the storage pool.
[0019] In one embodiment, determining the actual performance of the quality of service policy of each logical volume according to the weights assigned to each configuration value and the storage pool performance configuration value includes:
[0020] For any logical volume's service quality policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's service quality policy.
[0021] In this embodiment, for any logical volume's quality of service policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's quality of service policy. In this method, an optional way to quickly determine the actual performance of each logical volume is provided; after obtaining the configuration value allocation weight of each logical volume, based on the configuration value allocation weight of each logical volume, a corresponding proportion of the storage pool performance configuration value is divided from the storage pool performance configuration value of the storage pool's quality of service policy as the actual performance of the quality of service policy of each logical volume, which is equivalent to, when the total pressure of all logical volumes is greater than the processing capacity of the storage pool, the actual performance is reduced in proportion according to the performance configuration value of each logical volume, so as to avoid excessive pressure on the storage pool and improve the processing performance of the storage pool.
[0022] In one embodiment, determining the actual performance configuration value of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume includes:
[0023] Determine the minimum performance configuration value of the service quality policy of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume;
[0024] According to the minimum performance configuration value of the service quality policy of each logical volume, the actual performance configuration value of each logical volume is determined.
[0025] In the service processing method provided by the embodiment of the present application, the minimum performance configuration value of the service quality policy of each logical volume is determined according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, and then the actual performance configuration value of each logical volume is determined according to the minimum performance configuration value of the service quality policy of each logical volume. In this method, the minimum performance of the service quality policy of each logical volume is guaranteed by determining the minimum performance configuration value that can be allocated to each logical volume from the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, and then the allocated minimum performance configuration value is divided into the logical volumes of each service quality policy, so that each logical volume has a certain ability to process its own business request, and the service quality of each logical volume is guaranteed.
[0026] In one embodiment, determining the actual performance configuration value of each logical volume according to the minimum performance configuration value of the service quality policy of each logical volume includes:
[0027] For any logical volume, obtain the number of logical volumes under the logical volume's quality of service policy;
[0028] The ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes is determined as the actual performance configuration value of the logical volume.
[0029] In the service processing method provided by the embodiment of the present application, for any logical volume, the number of logical volumes under the service quality policy of the logical volume is obtained, and then the ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes is determined as the actual performance configuration value of the logical volume. In this method, the minimum performance configuration value of each service quality policy is divided into the corresponding logical volumes by evenly distributing the minimum performance configuration value, and the actual performance configuration value of each logical volume is obtained, so that the performance of each logical volume is consistent, the scheduling fairness of different logical volumes in the same service quality policy is achieved, and the processing capacity of the storage pool and the storage system is improved.
[0030] In one embodiment, the services of the storage pool are processed according to the actual performance configuration value of each logical volume, including:
[0031] For any logical volume in the storage pool, the actual performance configuration value of the logical volume is converted into the number of logical volume tokens, and the storage pool performance configuration value is converted into the number of storage pool tokens;
[0032] According to the number of logical volume tokens and the number of storage pool tokens, the service requests in the waiting queue corresponding to the logical volume are processed.
[0033] In the business processing method provided by the embodiment of the present application, for any logical volume in the storage pool, the actual performance configuration value of the logical volume is converted into the number of logical volume tokens, and the storage pool performance configuration value is converted into the number of storage pool tokens, and then the business requests in the waiting queue corresponding to the logical volume are processed according to the number of logical volume tokens and the number of storage pool tokens. In this method, the actual performance configuration value of the logical volume and the storage pool performance configuration are both converted into the corresponding number of tokens. When performing business processing, the processing of business requests on each logical volume is completed by consuming the tokens in the token bucket of the storage pool and the tokens in the token bucket of the corresponding logical volume at the same time, so that the number of business requests processed by each logical volume matches the corresponding number of logical volume tokens, thereby improving the service quality of each logical volume.
[0034] In a second aspect, an embodiment of the present application further provides a service processing device, including:
[0035] A configuration value acquisition module, used to acquire a storage pool performance configuration value of a storage pool's service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool's service quality policy; the storage pool performance configuration value is determined based on the storage pool's processing capacity;
[0036] An actual configuration value determination module, used to determine the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool according to the configuration value allocation weights of multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume;
[0037] The business processing module is used to process the business of the storage pool according to the actual performance configuration value of each logical volume.
[0038] In a third aspect, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in any one of the embodiments of the first aspect when executing the computer program.
[0039] In a fourth aspect, the embodiments of the present application further provide a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in any one of the embodiments of the first aspect are implemented.
[0040] In a fifth aspect, the embodiments of the present application further provide a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps in any one of the embodiments in the first aspect are implemented.
[0041] The above-mentioned business processing method, device, computer equipment and storage medium obtain the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool, and then allocate weights, storage pool performance configuration values and each logical volume performance configuration value according to the configuration values of multiple logical volumes, determine the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool, and then process the business of the storage pool according to the actual performance configuration value of each logical volume, wherein the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In the method, when processing business on the storage pool, based on the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of each logical volume in the storage pool, and combining the configuration value of each logical volume to allocate weights, the actual performance configuration value of each logical volume is calculated, and the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In this way, the actual performance configuration value is determined under the processing capacity constraint of the storage pool. Processing business based on the actual performance configuration value can ensure the service quality of the logical volume and improve the processing performance of the storage pool, which is equivalent to creating a service quality policy for the storage pool and setting the storage pool performance configuration value according to the processing capacity that the storage pool can provide. The total performance of all logical volumes in the storage pool can be controlled to avoid excessive pressure on the storage pool and cause service level degradation. At the same time, the actual performance configuration value of each logical volume is determined based on the configuration value allocation weight of each logical volume, so that while ensuring the service quality of the logical volume, the performance of each logical volume is matched with the business processing priority, and the processing performance of the storage pool is further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 An application environment diagram of a business processing method in an embodiment;
[0044] Figure 2 A flowchart of a business processing method in an embodiment;
[0045] Figure 3 is a schematic diagram of a storage system in one embodiment;
[0046] Figure 4 A schematic diagram of a process for obtaining a configuration value and assigning a weight in one embodiment;
[0047] Figure 5A schematic diagram of a process for determining an actual performance configuration value in one embodiment;
[0048] Figure 6 A schematic diagram of a process for determining an actual performance configuration value in another embodiment;
[0049] Figure 7 A schematic diagram of a process for determining an actual performance configuration value in another embodiment;
[0050] Figure 8 A schematic diagram of a business process flow in one embodiment;
[0051] Fig. 9 A schematic diagram of a waiting queue in one embodiment;
[0052] Fig.10 is a flowchart of a business processing method in another embodiment;
[0053] Fig.11 is a schematic diagram of the structure of a service processing device in an embodiment;
[0054] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] The technical background of the embodiments of the present application is first described below.
[0057] The data processing capacity provided by the storage system is limited. When the business pressure reaches the upper limit of the storage system's processing capacity, it is easy for business requests to not be processed in time and response timeouts may occur. As an important technology of the storage system, QoS can help users allocate storage system resources and prevent non-critical businesses from having too much impact on critical businesses. Usually, users can create QoS policies and set different IOPS (Input / Output Operations PerSecond) or bandwidth values to limit the maximum system resources allowed to be consumed by different businesses and prevent excessive disturbance to neighbors.
[0058] Token bucket is a common technology for implementing QoS function. It converts IOPS or bandwidth setting value into token number, periodically adds a certain number of tokens to the token bucket, and always keeps the total number of tokens in the token bucket less than or equal to the QoS setting value. When processing business requests, the corresponding number of tokens are consumed from the token bucket. If there are insufficient tokens in the token bucket, the request is rejected, so as to achieve flow control of business processing.
[0059] Usually, the storage system abstracts multiple physical disks into a storage pool, creates a logical volume of a certain capacity on the storage pool, and then maps the logical volume to the host. Different types of services on the host are sent to the storage system by creating different logical volumes. In related technologies, different logical volumes are added to different QoS policies to prevent mutual interference between host services.
[0060] Among them, the QoS policy is actively created by the user, which can effectively limit the upper limit of the consumption of storage system resources by the logical volumes added thereto. However, there is a lack of coordination between multiple QoS policies, and it is impossible to limit the resource consumption of all logical volumes on the entire storage system. Once the capacity limit of the storage system is reached, the service quality of all logical volumes cannot be guaranteed. Moreover, the QoS technology in related technologies mostly studies how to ensure the limiting effect of a single QoS policy, such as how to make business processing under QoS control more stable, how to make QoS control adapt to distributed storage architecture, etc. However, there is a lack of research on how to solve the problem of the storage system reaching the service capacity limit, and how to coordinate the scheduling between multiple QoS policies to ensure scheduling fairness between QoS policies and between logical volumes within QoS policies.
[0061] Based on this, the embodiment of the present application provides a business processing method. When processing business on a storage pool, based on the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of each logical volume in the storage pool, and in combination with the configuration value of each logical volume, a weight is assigned to calculate the actual performance configuration value of each logical volume. The storage pool performance configuration value is determined based on the processing capacity of the storage pool. In this way, the actual performance configuration value is determined under the processing capacity constraint of the storage pool. Processing business based on the actual performance configuration value can ensure the service quality of the logical volume and improve the processing performance of the storage pool. It is equivalent to creating a service quality policy for the storage pool and setting the storage pool performance configuration value according to the processing capacity that the storage pool can provide. The total performance of all logical volumes in the storage pool can be controlled to avoid excessive pressure on the storage pool and causing service level degradation. At the same time, the actual performance configuration value of each logical volume is determined based on the configuration value of each logical volume. While ensuring the service quality of the logical volume, the performance of each logical volume is matched with the business processing priority, further improving the processing performance of the storage pool.
[0062] It should be noted that the beneficial effects brought about by the embodiments of the present application or the technical problems solved are not limited to this one, but may also include other implicit or related problems. For details, please refer to the description of the following embodiments.
[0063] The application environment of the service processing method provided in the embodiment of the present application is described below. The service processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Optionally, the terminal 102 is used for users to upload relevant data of business requests. For example, if a user requests to store the target data in the storage system, the target data can be uploaded through the terminal 102. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0064] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0065] In an exemplary embodiment, Figure 2 As shown, a business processing method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following steps 201 to 203. Among them:
[0066] S201, obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on a processing capability of the storage pool.
[0067] The storage system abstracts multiple physical disks into a storage pool, creates multiple logical volumes on the storage pool, and maps the multiple logical volumes to the host. Different types of services on the host are sent to the logical volumes through different logical volumes. In order to prevent mutual interference between host services, different logical volumes are added to different QoS policies, such as Figure 3As shown in the figure, the storage system includes a storage pool, which includes four logical volumes, namely logical volume 1, logical volume 2, logical volume 3 and logical volume 4. Logical volume 1 is mapped to host 1, logical volume 2 and logical volume 3 are mapped to host 2, and logical volume 4 is mapped to host 3. Logical volume 1 is added to QoS policy 1, logical volume 2 is added to QoS policy 2, and logical volumes 3 and logical volumes 4 are added to QoS policy 3.
[0068] The QoS policies corresponding to different logical volumes are created by users, and different IOPS or bandwidth values are set for each created QoS policy. The set IOPS or bandwidth value is the performance configuration value of the QoS policy. The performance configuration value of the QoS policy for a logical volume is called the logical volume performance configuration value. The logical volume performance configuration value can limit the maximum system resources that the services on each logical volume are allowed to consume.
[0069] Each QoS policy also corresponds to a token bucket, which converts the logical volume performance configuration value into the number of tokens, and periodically adds tokens of a certain amount of data to the corresponding token bucket, always keeping the total number of tokens in the token bucket less than or equal to the logical volume performance configuration value. When processing a business request for a certain logical volume, the corresponding number of tokens is consumed from the token bucket corresponding to the logical volume. If there are insufficient tokens in the token bucket, the request is rejected to achieve flow control of business processing. For example, the logical volume performance configuration value of the service quality policy of logical volume 1 is converted to 10 tokens, then the logical volume can process 10 business requests.
[0070] In the embodiment of the present application, the business processing of each logical volume will consume the resources of the storage pool. In order to prevent the total pressure of multiple logical volumes from exceeding the total capacity that the storage pool can provide, a corresponding service quality policy is created for the storage pool, and a performance configuration value of the service quality policy of the storage pool is set, which is called the storage pool performance configuration value. The storage pool performance configuration value is determined based on the processing capacity of the storage pool. In one embodiment, the total capacity of the storage pool can be set to the storage pool performance configuration value. The total capacity of the storage pool may include IOPS, bandwidth value, throughput, etc.
[0071] In one embodiment, the storage pool performance configuration value of the quality of service policy of the storage pool and the logical volume performance configuration value of the quality of service policy of multiple logical volumes in the storage pool can be obtained by obtaining them from a policy warehouse. For example, the policy warehouse stores and manages the configuration values of each QoS policy to ensure the correct application and execution of the policy, that is, the policy warehouse stores the performance configuration value of each quality of service policy. When it is necessary to obtain the storage pool performance configuration value of the quality of service policy of the storage pool and the logical volume performance configuration value of the quality of service policy of multiple logical volumes in the storage pool, the corresponding configuration values can be matched from the policy warehouse according to the policy identifier of the quality of service policy of the storage pool and the policy identifier of the quality of service policy of each logical volume, and then the matched configuration values are determined as the storage pool performance configuration value of the quality of service policy of the storage pool and the logical volume performance configuration value of the quality of service policy of each logical volume.
[0072] In another embodiment, the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool can be obtained through a configuration value filling interface. For example, when it is necessary to obtain the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool, the configuration value filling interface is displayed to the user, and the user enters the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of each logical volume in the configuration value filling interface.
[0073] S202, determining the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool according to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume.
[0074] The configuration value allocation weights of multiple logical volumes refer to the configuration value allocation ratios calculated according to the service priorities corresponding to the quality of service policies of each logical volume. In one embodiment, the configuration value allocation weights of each logical volume can be calculated according to the logical volume performance configuration values of the quality of service policies of each logical volume.
[0075] The logical volume performance configuration value of the service quality policy of the logical volume is the value configured when creating the service quality policy of each logical volume, and is not constrained by the processing capacity of the storage pool. If business processing is still performed according to the logical volume performance configuration value, it is easy to cause excessive pressure on the storage pool. Therefore, in the embodiment of the present application, based on the configuration value allocation weight of each logical volume, the storage pool performance configuration value and the performance configuration value of each logical volume, the performance configuration value of each logical volume under the processing capacity constraint of the storage pool is determined, that is, the actual performance configuration value corresponding to each logical volume under the processing capacity constraint of the storage pool.
[0076] Exemplarily, for any logical volume, the product of the configuration value allocation weight of the logical volume and the storage pool performance configuration value of the storage pool's quality of service policy can be calculated to obtain the initial actual performance configuration value of the logical volume, and then the initial actual performance configuration value of the logical volume is compared with the logical volume performance configuration value of the logical volume's quality of service policy. If the initial actual performance configuration value of the logical volume is less than the logical volume performance configuration value of the logical volume's quality of service policy, the initial actual performance configuration value of the logical volume is determined as the actual performance configuration value corresponding to the logical volume under the limitation of the storage pool's processing capacity; otherwise, the logical volume performance configuration value of the logical volume's quality of service policy is determined as the actual performance configuration value corresponding to the logical volume under the limitation of the storage pool's processing capacity.
[0077] It should be added that, when the service quality policy of the logical volume also includes other logical volumes, the above-mentioned initial actual performance configuration value or the logical volume performance configuration value needs to be divided into each logical volume under the service quality policy. In one embodiment, the division can be based on the business priority of each logical volume. Among them, the business priority can be determined based on the number of business requests and business emergency of each logical volume. In another embodiment, the initial actual performance configuration value or the logical volume performance configuration value can be evenly distributed to each logical volume under the service quality policy.
[0078] S203: Processing services of the storage pool according to the actual performance configuration value of each logical volume.
[0079] Based on the actual performance configuration value of each logical volume obtained above, the business of each logical volume in the storage pool is processed.
[0080] As mentioned earlier, tokens need to be consumed when processing business requests. In an embodiment of the present application, the actual performance configuration value of each logical volume can be converted into the number of tokens corresponding to each logical volume, and then the business of each logical volume in the storage pool can be processed based on the token data corresponding to each logical volume.
[0081] In the business processing method provided in the embodiment of the present application, the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool are obtained, and then the weights, storage pool performance configuration values and each logical volume performance configuration value are allocated according to the configuration values of the multiple logical volumes, and the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined, and then the business of the storage pool is processed according to the actual performance configuration value of each logical volume, wherein the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In the method, when processing business on the storage pool, based on the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of each logical volume in the storage pool, and combining the configuration value of each logical volume to allocate weights, the actual performance configuration value of each logical volume is calculated, and the storage pool performance configuration value is determined based on the processing capacity of the storage pool. In this way, the actual performance configuration value is determined under the processing capacity constraint of the storage pool. Processing business based on the actual performance configuration value can ensure the service quality of the logical volume and improve the processing performance of the storage pool, which is equivalent to creating a service quality policy for the storage pool and setting the storage pool performance configuration value according to the processing capacity that the storage pool can provide. The total performance of all logical volumes in the storage pool can be controlled to avoid excessive pressure on the storage pool and cause service level degradation. At the same time, the actual performance configuration value of each logical volume is determined based on the configuration value allocation weight of each logical volume, so that while ensuring the service quality of the logical volume, the performance of each logical volume is matched with the business processing priority, and the processing performance of the storage pool is further improved.
[0082] Based on the above embodiment, an embodiment is provided to illustrate the process of obtaining the configuration value allocation weights of the above multiple logical volumes.
[0083] In an exemplary embodiment, Figure 4 As shown, the method also includes:
[0084] S301, determining a comprehensive performance configuration value of a service quality policy of each logical volume according to the performance configuration value of each logical volume.
[0085] The comprehensive performance configuration value refers to the sum of the service quality policies of each logical volume.
[0086] In an embodiment of the present application, the logical volume performance configuration value of the service quality policy of each logical volume is obtained, and then the sum of the logical volume performance configuration values of the service quality policy of each logical volume is determined as the comprehensive performance configuration value of the service quality policy of each logical volume.
[0087] S302: Determine the ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value as the configuration value allocation weight of each logical volume.
[0088] Based on the comprehensive performance configuration value of the service quality policy of each logical volume and the logical volume performance configuration value of the service quality policy of each logical volume, the configuration value allocation weight of each logical volume is determined.
[0089] Exemplarily, for any logical volume, the ratio of the logical volume performance configuration value of the service quality policy of the logical volume to the comprehensive performance configuration value of the service quality policies of each logical volume is determined as the configuration value allocation weight of the logical volume.
[0090] In the embodiment of the present application, the configuration value allocation weight of each logical volume is determined based on the service priority corresponding to the service quality policy of each logical volume.
[0091] Generally, the lower the performance configuration value of the service quality policy created by the user, the lower the service processing priority is, and the less system resources are expected to be occupied. Conversely, the higher the performance configuration value of the service quality policy is, the higher the service priority is, and the more system resources are expected to be occupied. Based on this, in the embodiment of the present application, the configuration value allocation weight of each logical volume is obtained based on the ratio of the logical volume performance configuration value of the service quality policy of each logical volume.
[0092] In the business processing method provided by the embodiment of the present application, the comprehensive performance configuration value of the service quality policy of each logical volume is determined according to the performance configuration value of each logical volume, and then the ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value is determined as the configuration value allocation weight of each logical volume. In this method, the logical volume performance configuration value of the service quality policy of each logical volume represents different business priorities. When the configuration value allocation weight of each logical volume is determined based on the business priority, the configuration value allocation weight of each logical volume can be calculated based on the ratio of the logical volume performance configuration value of the service quality policy of each logical volume, so that the actual performance configuration value of each logical volume matches the corresponding business priority, which improves the accuracy and rationality of the configuration value allocation and provides data support for the allocation of the actual performance configuration value of the logical volume.
[0093] Based on the above embodiment, an embodiment is provided to illustrate the process of allocating weights, storage pool performance configuration values and each logical volume performance configuration value according to the configuration values of multiple logical volumes, and determining the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool.
[0094] In an exemplary embodiment, Figure 5 As shown, according to the configuration value allocation weights of multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined, including:
[0095] S401, determining the actual performance of the quality of service policy of each logical volume according to the weights allocated to each configuration value and the storage pool performance configuration value.
[0096] The actual performance of the quality of service policy of each logical volume refers to the actual processing capacity of the quality of service policy of each logical volume under the processing capacity constraint of the storage pool.
[0097] In the embodiment of the present application, if the total pressure of all logical volumes exceeds the processing capacity of the storage pool, the performance of the service quality policy of each logical volume needs to be reduced in proportion, and business processing cannot be performed according to the performance configuration value of each logical volume. Therefore, on the basis of the configuration value allocation weight of each logical volume, the corresponding performance configuration value can be divided from the storage pool performance configuration value of the service quality policy of the storage pool as the actual performance of the service quality policy of each logical volume based on the configuration value allocation weight of each logical volume.
[0098] Based on this, in an exemplary embodiment, according to the weights assigned to the configuration values and the storage pool performance configuration value, the actual performance of the quality of service policy of each logical volume is determined, including:
[0099] For any logical volume's service quality policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's service quality policy.
[0100] In an embodiment of the present application, the actual performance of each service quality policy is positively correlated with the performance configuration value of each logical volume. After obtaining the configuration value allocation weight of each logical volume based on the performance configuration value of each logical volume, the product of the configuration value allocation weight of each logical volume and the storage pool performance configuration value of the service quality policy of the storage pool is determined as the actual performance of the service quality policy of each logical volume.
[0101] In this embodiment, for any logical volume's quality of service policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's quality of service policy. In this method, an optional way to quickly determine the actual performance of each logical volume is provided; after obtaining the configuration value allocation weight of each logical volume, based on the configuration value allocation weight of each logical volume, a corresponding proportion of the storage pool performance configuration value is divided from the storage pool performance configuration value of the storage pool's quality of service policy as the actual performance of the quality of service policy of each logical volume, which is equivalent to, when the total pressure of all logical volumes is greater than the processing capacity of the storage pool, the actual performance is reduced in proportion according to the performance configuration value of each logical volume, so as to avoid excessive pressure on the storage pool and improve the processing performance of the storage pool.
[0102] S402: Determine each actual performance configuration value according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume.
[0103] After determining the actual performance of the service quality policy of each logical volume, the actual performance configuration value corresponding to each logical volume under the processing capacity limitation of the storage pool is determined in combination with the logical volume performance configuration value of the service quality policy of each logical volume.
[0104] To further improve the processing performance of the storage pool, a smaller performance configuration value can be determined as the actual performance configuration value of each logical volume. Business processing based on the smaller performance configuration value can prevent the business entering the storage pool and storage system from exceeding the pressure limit.
[0105] Exemplarily, for any logical volume's quality of service policy, the actual performance of the logical volume's quality of service policy is compared with the logical volume performance configuration value of the logical volume's quality of service policy. If the actual performance of the logical volume's quality of service policy is less than the logical volume performance configuration value of the logical volume's quality of service policy, the actual performance of the logical volume's quality of service policy is determined as the actual performance configuration value of the logical volume. Otherwise, the logical volume performance configuration value of the logical volume's quality of service policy is determined as the actual performance configuration value of the logical volume. Similarly, if the logical volume's quality of service policy also includes other logical volumes, it may be necessary to divide the above-mentioned actual performance or logical volume performance configuration value into each logical volume under the quality of service policy. In one embodiment, the division may be performed based on the business priority of each logical volume. Among them, the business priority may be determined based on the number of business requests and business emergency situations of each logical volume. In another embodiment, the actual performance or logical volume performance configuration value may be evenly distributed to each logical volume under the quality of service policy.
[0106] In the business processing method provided by the embodiment of the present application, the actual performance of the service quality policy of each logical volume is determined according to the weights assigned to each configuration value and the storage pool performance configuration value, and then the actual performance configuration value is determined according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume. In this method, firstly, the storage pool performance configuration value is divided by the configuration value assignment weights of each logical volume to obtain the actual performance of the service quality policy of each logical volume, so as to quickly and accurately determine the actual performance allocation value of each logical volume under the processing performance of the storage pool based on the actual performance and the performance configuration value of each logical volume, thereby laying a foundation for the business processing of the storage pool.
[0107] Based on the above embodiment, an embodiment is provided to illustrate the process of determining the actual performance configuration value of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume.
[0108] In an exemplary embodiment, Figure 6 As shown, according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, the actual performance configuration value of each logical volume is determined, including:
[0109] S501, determining the minimum performance configuration value of the service quality policy of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume.
[0110] The minimum performance configuration value of the service quality policy of each logical volume refers to the minimum performance configuration value that can be allocated to each logical volume under the constraint of the processing capacity of the storage pool.
[0111] In an embodiment of the present application, for the service quality policy of any logical volume, the actual performance of the service quality policy of the logical volume is compared with the logical volume performance configuration value of the service quality policy of the logical volume, and the smaller value between the actual performance of the service quality policy of the logical volume and the logical volume performance configuration value of the service quality policy of the logical volume is determined as the minimum performance configuration value of the service quality policy of the logical volume.
[0112] S502: Determine the actual performance configuration value of each logical volume according to the minimum performance configuration value of the service quality policy of each logical volume.
[0113] In the embodiment of the present application, on the basis of obtaining the minimum performance configuration value of the service quality policy of each logical volume, the actual performance configuration value of the corresponding logical volume can be determined based on the minimum performance configuration value.
[0114] In one embodiment, for a service quality policy including a logical volume, the minimum performance configuration value of the service quality policy may be directly determined as the actual performance configuration value of each logical volume.
[0115] In another embodiment, for a plurality of logical volumes under a quality of service policy, the minimum performance configuration value of the quality of service policy can be allocated to each logical volume under the quality of service policy according to the service priority of each logical volume under the quality of service policy. The service priority of each logical volume can be determined according to the number of service requests and the service emergency of each logical volume.
[0116] In the service processing method provided by the embodiment of the present application, the minimum performance configuration value of the service quality policy of each logical volume is determined according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, and then the actual performance configuration value of each logical volume is determined according to the minimum performance configuration value of the service quality policy of each logical volume. In this method, the minimum performance of the service quality policy of each logical volume is guaranteed by determining the minimum performance configuration value that can be allocated to each logical volume from the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, and then the allocated minimum performance configuration value is divided into the logical volumes of each service quality policy, so that each logical volume has a certain ability to process its own business request, and the service quality of each logical volume is guaranteed.
[0117] Based on the above embodiment, an embodiment is provided to illustrate the process of determining the actual performance configuration value of each logical volume according to the minimum performance configuration value of the service quality policy of each logical volume.
[0118] In an exemplary embodiment, Figure 7 As shown, according to the minimum performance configuration value of the service quality policy of each logical volume, the actual performance configuration value of each logical volume is determined, including:
[0119] S601: For any logical volume, obtain the number of logical volumes under the service quality policy of the logical volume.
[0120] In the embodiment of the present application, one logical volume or multiple logical volumes may be added to a quality of service policy. When there are multiple logical volumes under a quality of service policy, the minimum performance configuration value of the quality of service policy needs to be allocated to the multiple logical volumes.
[0121] When determining the actual performance configuration value of any logical volume, first obtain the number of logical volumes under the service quality policy of the logical volume. Exemplarily, it can be obtained based on the mapping relationship between the policy and the logical volume stored in the database. For example, after adding different logical volumes to different service quality policies, the mapping relationship between each logical volume and each service quality policy is stored in the database. When it is necessary to obtain the number of logical volumes under the service quality policy of a certain logical volume, based on the policy identifier of the service quality policy of the logical volume, the logical volume corresponding to the policy identifier can be matched from the above-mentioned mapping relationship in the database, and then the number of logical volumes corresponding to the policy identifier can be summarized to obtain the number of logical volumes under the service quality policy of the logical volume.
[0122] S602: Determine the ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes as the actual performance configuration value of the logical volume.
[0123] In the embodiment of the present application, after obtaining the minimum performance configuration value of the service quality policy of the logical volume, the minimum performance configuration value is evenly distributed to each logical volume to obtain the actual performance configuration value of each logical volume.
[0124] Exemplarily, the minimum performance configuration value of the service quality policy of the logical volume is divided by the number of logical volumes under the service quality policy of the logical volume to obtain the actual performance configuration value of the logical volume. It can be understood that the actual performance configuration values of other logical volumes under the service quality policy of the logical volume are the same as the actual performance configuration value of the logical volume.
[0125] In the service processing method provided by the embodiment of the present application, for any logical volume, the number of logical volumes under the service quality policy of the logical volume is obtained, and then the ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes is determined as the actual performance configuration value of the logical volume. In this method, the minimum performance configuration value of each service quality policy is divided into the corresponding logical volumes by evenly distributing the minimum performance configuration value, and the actual performance configuration value of each logical volume is obtained, so that the performance of each logical volume is consistent, the scheduling fairness of different logical volumes in the same service quality policy is achieved, and the processing capacity of the storage pool and the storage system is improved.
[0126] Based on the above embodiment, an embodiment is provided to illustrate the process of processing the services of the storage pool according to the actual performance configuration value of each logical volume.
[0127] In an exemplary embodiment, Figure 8 As shown in the figure, the services of the storage pool are processed according to the actual performance configuration value of each logical volume, including:
[0128] S701, for any logical volume in a storage pool, convert the actual performance configuration value of the logical volume into the number of logical volume tokens, and convert the storage pool performance configuration value into the number of storage pool tokens.
[0129] As mentioned above, when processing a service request, the performance configuration value needs to be converted into the number of tokens, so that a corresponding number of tokens are consumed from the token bucket to process a corresponding number of service requests.
[0130] In the embodiment of the present application, since the storage pool also creates a service quality policy, when performing business processing, a logical volume not only needs to obtain the token corresponding to the service quality policy of the logical volume, but also needs to obtain the token corresponding to the service quality policy of the storage pool in order to perform actual read and write processing. Otherwise, it is necessary to hang into the waiting queue corresponding to the service quality policy of the logical volume.
[0131] Based on this, in an embodiment of the present application, for any logical volume, it is necessary to convert the actual performance configuration value of the logical volume into the corresponding token number to obtain the logical volume token number, and at the same time, the storage pool performance configuration value is also converted into the corresponding token number to obtain the storage pool token number.
[0132] Exemplarily, a quality of service policy or algorithm may be used to process the actual performance configuration value of the logical volume to obtain the converted token quantity, i.e., the logical volume token quantity. Similarly, a quality of service policy or algorithm may be used to process the storage pool performance configuration value to obtain the converted token quantity, i.e., the storage pool token quantity.
[0133] S702: Process the service requests in the waiting queue corresponding to the logical volume according to the number of logical volume tokens and the number of storage pool tokens.
[0134] Based on the converted logical volume token quantity and storage pool token quantity, the service requests in the waiting queue corresponding to the logical volume are processed.
[0135] Each QoS policy has a waiting queue, and each logical volume under each QoS policy corresponds to a waiting queue, such as Fig. 9 As shown in the figure, QoS policy 1 corresponds to a token bucket, corresponding to a waiting queue of logical volume 1; QoS policy 2 corresponds to a token bucket, corresponding to a waiting queue of logical volume 2; QoS policy 3 corresponds to a token bucket, corresponding to a waiting queue of logical volume 3 and a waiting queue of logical volume 4; the storage pool corresponds to a token bucket. Each waiting queue stores pending service requests of the corresponding logical volume.
[0136] For any logical volume, when processing the service request in the waiting pair corresponding to the logical volume, one service request is processed, one token is consumed from the token bucket of the storage pool, and one token is consumed from the token bucket of the corresponding quality of service policy. In addition, in the embodiment of the present application, a timed triggering dequeueing method is adopted to execute the dequeueing operation of the service requests on all waiting queues.
[0137] It should be noted that if the token bucket of the storage pool's quality of service policy has sufficient tokens, business processing can be performed only according to the logical volume performance configuration value of the quality of service policy of each logical volume. If the token bucket of the storage pool's quality of service policy has insufficient tokens, it is necessary to determine the actual performance configuration value corresponding to each logical volume under the limit value of the storage pool's processing capacity based on the storage pool's performance configuration value, and perform business processing based on the actual performance configuration value of each logical volume.
[0138] In the business processing method provided by the embodiment of the present application, for any logical volume in the storage pool, the actual performance configuration value of the logical volume is converted into the number of logical volume tokens, and the storage pool performance configuration value is converted into the number of storage pool tokens, and then the business requests in the waiting queue corresponding to the logical volume are processed according to the number of logical volume tokens and the number of storage pool tokens. In this method, the actual performance configuration value of the logical volume and the storage pool performance configuration are both converted into the corresponding number of tokens. When performing business processing, the processing of business requests on each logical volume is completed by consuming the tokens in the token bucket of the storage pool and the tokens in the token bucket of the corresponding logical volume at the same time, so that the number of business requests processed by each logical volume matches the corresponding number of logical volume tokens, thereby improving the service quality of each logical volume.
[0139] In addition, in an exemplary embodiment, the present application also provides a business processing method, such as Fig.10 As shown, the following steps may be included:
[0140] S801, obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on the processing capability of the storage pool.
[0141] S802: Determine the comprehensive performance configuration value of the service quality policy of each logical volume according to the performance configuration value of each logical volume.
[0142] S803: Determine the ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value as the configuration value allocation weight of each logical volume.
[0143] S804: Determine the actual performance of the quality of service policy of each logical volume according to the weights allocated to each configuration value and the storage pool performance configuration value.
[0144] Optionally, for any logical volume's quality of service policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's quality of service policy.
[0145] S805: Determine the minimum performance configuration value of the service quality policy of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume.
[0146] S806: Determine the actual performance configuration value of each logical volume according to the minimum performance configuration value of the service quality policy of each logical volume and the number of logical volumes under the service quality policy of each logical volume.
[0147] Optionally, for any logical volume, the number of logical volumes under the service quality policy of the logical volume is obtained; and the ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes is determined as the actual performance configuration value of the logical volume.
[0148] S807, converting the actual performance configuration value of each logical volume into the number of logical volume tokens of each logical volume, and converting the storage pool performance configuration value into the number of storage pool tokens.
[0149] S808: Process the service requests in the waiting queue corresponding to each logical volume according to the number of tokens of each logical volume and the number of tokens of the storage pool.
[0150] Optionally, for any logical volume in the storage pool, the actual performance configuration value of the logical volume is converted into the number of logical volume tokens, and the storage pool performance configuration value is converted into the number of storage pool tokens; based on the number of logical volume tokens and the number of storage pool tokens, the business requests in the waiting queue corresponding to the logical volume are processed.
[0151] The above process of S801-S808 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides a business processing device for implementing the business processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more business processing device embodiments provided below can refer to the limitations on the business processing method above, and will not be repeated here.
[0154] In an exemplary embodiment, Fig.11 As shown, a service processing device 1 is provided, comprising: a configuration value acquisition module 10, an actual configuration value determination module 20 and a service processing module 30, wherein:
[0155] The configuration value acquisition module 10 is used to acquire the storage pool performance configuration value of the service quality policy of the storage pool and the logical volume performance configuration value of the service quality policy of multiple logical volumes in the storage pool; the storage pool performance configuration value is determined based on the processing capacity of the storage pool;
[0156] The actual configuration value determination module 20 is used to determine the actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool according to the configuration value allocation weights of multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume;
[0157] The service processing module 30 is used to process the services of the storage pool according to the actual performance configuration value of each logical volume.
[0158] In one embodiment, the service processing device 1 further includes:
[0159] A comprehensive configuration value determination module, used to determine the comprehensive performance configuration value of the service quality policy of each logical volume according to the performance configuration value of each logical volume;
[0160] The weight determination module is used to determine the ratio of each logical volume performance configuration value to the comprehensive performance configuration value as the configuration value allocation weight of each logical volume.
[0161] In one embodiment, the actual configuration value determination module 20 is further configured to:
[0162] According to the weights allocated to each configuration value and the storage pool performance configuration value, the actual performance of the service quality policy of each logical volume is determined; according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, each actual performance configuration value is determined.
[0163] In one embodiment, the actual configuration value determination module 20 is further configured to:
[0164] For any logical volume's service quality policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's service quality policy.
[0165] In one embodiment, the actual configuration value determination module 20 is further configured to:
[0166] According to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume, the minimum performance configuration value of the service quality policy of each logical volume is determined; according to the minimum performance configuration value of the service quality policy of each logical volume, the actual performance configuration value of each logical volume is determined.
[0167] In one embodiment, the actual configuration value determination module 20 is further configured to:
[0168] For any logical volume, the number of logical volumes under the service quality policy of the logical volume is obtained; and the ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of logical volumes is determined as the actual performance configuration value of the logical volume.
[0169] In one embodiment, the service processing module 30 is further used for:
[0170] For any logical volume in the storage pool, the actual performance configuration value of the logical volume is converted into the number of logical volume tokens, and the storage pool performance configuration value is converted into the number of storage pool tokens; based on the number of logical volume tokens and the number of storage pool tokens, the business requests in the waiting queue corresponding to the logical volume are processed.
[0171] Each module in the above-mentioned business processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0172] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business processing method is implemented.
[0173] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0174] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0175] Obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on the processing capacity of the storage pool;
[0176] According to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined;
[0177] Process the storage pool services based on the actual performance configuration value of each logical volume.
[0178] The implementation principles and technical effects of each step implemented by the processor in the embodiment of the present application are similar to the principles of the above-mentioned business processing method, and will not be repeated here.
[0179] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0180] Obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on the processing capacity of the storage pool;
[0181] According to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined;
[0182] Process the storage pool services based on the actual performance configuration value of each logical volume.
[0183] The implementation principles and technical effects of the steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned business processing method and will not be repeated here.
[0184] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0185] Obtaining a storage pool performance configuration value of a storage pool service quality policy and a logical volume performance configuration value of a plurality of logical volumes in the storage pool service quality policy; the storage pool performance configuration value is determined based on the processing capacity of the storage pool;
[0186] According to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool is determined;
[0187] Process the storage pool services based on the actual performance configuration value of each logical volume.
[0188] The implementation principles and technical effects of the steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned business processing method and will not be repeated here.
[0189] It should be noted that the personnel information (including but not limited to personnel equipment information, personnel 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 personnel or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0190] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0191] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0192] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business processing method, characterized in that: The method comprises: Acquire a storage pool performance configuration value of a service quality policy of a storage pool and a logical volume performance configuration value of a service quality policy of a plurality of logical volumes in the storage pool; the storage pool performance configuration value is determined based on a processing capacity of the storage pool; Determine, according to the configuration value allocation weights of the plurality of logical volumes, the storage pool performance configuration value and the performance configuration value of each logical volume, an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool; The services of the storage pool are processed according to the actual performance configuration value of each of the logical volumes.
2. The method according to claim 1, characterized in that The method further comprises: Determining the comprehensive performance configuration value of the service quality policy of each logical volume according to the performance configuration value of each logical volume; The ratio of the performance configuration value of each logical volume to the comprehensive performance configuration value is determined as the configuration value allocation weight of each logical volume.
3. The method according to claim 1 or 2, characterized in that: The step of allocating weights according to the configuration values of the multiple logical volumes, the storage pool performance configuration value, and the performance configuration values of each logical volume to determine an actual performance configuration value corresponding to each logical volume under the limitation of the processing capacity of the storage pool includes: Determining the actual performance of the quality of service policy of each of the logical volumes according to the weights allocated to each of the configuration values and the storage pool performance configuration value; The actual performance configuration values are determined according to the actual performance of the quality of service policy of each logical volume and the performance configuration value of each logical volume.
4. The method according to claim 3, characterized in that The determining the actual performance of the quality of service policy of each logical volume according to the weight assigned to each configuration value and the storage pool performance configuration value includes: For any logical volume's quality of service policy, the product of the logical volume's configuration value allocation weight and the storage pool performance configuration value is determined as the actual performance of the logical volume's quality of service policy.
5. The method according to claim 3, characterized in that: Determining the actual performance configuration value of each logical volume according to the actual performance of the service quality policy of each logical volume and the performance configuration value of each logical volume includes: Determining the minimum performance configuration value of the quality of service policy of each logical volume according to the actual performance of the quality of service policy of each logical volume and the performance configuration value of each logical volume; The actual performance configuration value of each of the logical volumes is determined according to the minimum performance configuration value of the service quality policy of each of the logical volumes.
6. The method according to claim 5, characterized in that Determining the actual performance configuration value of each logical volume according to the minimum performance configuration value of the service quality policy of each logical volume includes: For any logical volume, obtaining the number of logical volumes under the quality of service policy of the logical volume; The ratio of the minimum performance configuration value of the service quality policy of the logical volume to the number of the logical volumes is determined as the actual performance configuration value of the logical volume.
7. The method according to claim 1 or 2, characterized in that: The processing of the services of the storage pool according to the actual performance configuration value of each of the logical volumes includes: For any logical volume in the storage pool, converting the actual performance configuration value of the logical volume into the number of logical volume tokens, and converting the storage pool performance configuration value into the number of storage pool tokens; The service requests in the waiting queue corresponding to the logical volume are processed according to the number of logical volume tokens and the number of storage pool tokens.
8. A service processing device, characterized in that: The device comprises: A configuration value acquisition module, used to acquire a storage pool performance configuration value of a service quality policy of a storage pool and a logical volume performance configuration value of a service quality policy of a plurality of logical volumes in the storage pool; the storage pool performance configuration value is determined based on the processing capacity of the storage pool; an actual configuration value determination module, configured to determine an actual performance configuration value corresponding to each of the logical volumes under the limitation of the processing capacity of the storage pool according to the configuration value allocation weights of the multiple logical volumes, the storage pool performance configuration value and the performance configuration value of each of the logical volumes; The service processing module is used to process the service of the storage pool according to the actual performance configuration value of each logical volume.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.