Resource determination method and device, medium and program product

By automatically determining the target resource pool from multiple resource pools and creating target resources, the high cost and inefficiency problems caused by manual determination of storage resources and addresses in the prior art are solved, and efficient and automated resource determination and access are achieved.

CN120050332AActive Publication Date: 2025-05-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510526308.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-05-27
Estimated Expiration
2045-04-25

AI Technical Summary

Technical Problem

In the prior art, in an enterprise-level storage environment, it is necessary to manually determine storage resources and addresses in the storage cluster, resulting in high labor costs and low efficiency.

Method used

By receiving resource determination requests from the user side, the target resource pool is automatically determined from multiple resource pools, and the resource pool is controlled to create target resources, and an access link with a preset unified format is generated to send it to the user side.

Benefits of technology

It reduces manual intervention, improves resource determination efficiency, simplifies user operations, and improves user storage experience and storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050332A_ABST
    Figure CN120050332A_ABST
Patent Text Reader

Abstract

The invention discloses a resource determination method and device, a medium and a program product, and relates to the technical field of computers, and the method comprises the steps: receiving a resource determination request sent by a user side, determining a target resource pool from a plurality of resource pools, and controlling the resource pools to create target resources, the target resources belonging to the target resource pool, therefore, the specific target resource is determined for the user, the target resource pool can be intelligently determined, then the target resource is determined, manual intervention is reduced, and efficiency is improved; in addition, the resource pool belongs to different storage cluster types, so that how to determine the target resource in the heterogeneous storage cluster is realized; in addition, due to the fact that the heterogeneous storage clusters are different in type, compatibility is poor, the access link in the preset unified format is generated for the access information, manual adaptation operation of the user due to different types can be reduced, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a resource determination method, device, medium and program product. Background Art

[0002] Currently, an enterprise-level storage environment includes at least one storage cluster. When a user issues a storage demand, a corresponding storage space needs to be determined in the storage cluster.

[0003] In the related art, a management program is used to send the storage space address of the storage requirement to the user end. However, in this process, the corresponding storage resources and their addresses are still determined manually in at least one storage cluster based on the user's storage requirements, and then sent to the user end using the management program. Therefore, the management program only serves as a forwarding function, and the manual determination of the corresponding storage resources and addresses increases labor costs and reduces efficiency. Summary of the invention

[0004] The present application provides a resource determination method, device, medium and program product to at least solve the problem of increasing labor costs and reducing efficiency in related technologies.

[0005] In a first aspect, the present application provides a resource determination method, comprising:

[0006] Receiving a resource determination request sent by a user terminal;

[0007] Determine a target resource pool from multiple resource pools based on the resource determination request; the multiple resource pools belong to different types of storage clusters;

[0008] Control the target resource pool to create the target resource; the target resource belongs to the target resource pool;

[0009] Receive access information of the target resource sent by the storage cluster to which the target resource pool belongs, generate an access link in a preset unified format based on the access information, and send the access link to the user end.

[0010] In a second aspect, the present application further provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any one of the above-mentioned resource determination methods when executing the computer program.

[0011] In a third aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program implements the steps of any of the above-mentioned resource determination methods when executed by a processor.

[0012] In a fourth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned resource determination methods when executed by a processor.

[0013] Through a resource determination method, device, medium and program product provided by the present application, the present solution receives a resource determination request sent by a user end, and then determines a target resource pool from multiple resource pools. Further, the electronic device controls the resource pool to create a target resource, and the target resource belongs to the target resource pool, thereby determining a specific target resource for the user. In the present solution, the target resource pool can be determined intelligently, and then the target resource is determined, reducing manual intervention and improving efficiency; in addition, the resource pool in the present solution belongs to different storage cluster types, and then the present solution implements how to determine the target resource in a heterogeneous storage cluster; in addition, since the heterogeneous storage clusters are of different types, the compatibility is poor, therefore, the present solution generates an access link in a preset unified format for the access information, so that the user end can access the target resource in a preset unified format based on the access link, so that the user can reduce the manual adaptation operation due to different types, making the user's operation more convenient, and then improving the user's storage efficiency and user experience. In addition, the target resource determined from the target resource pool naturally meets the user's needs, so the present application can intelligently determine the target resource that meets the user's needs and fits the user's actual needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. 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 any creative work.

[0015] Figure 1 A schematic diagram of an application scenario provided for this application;

[0016] Figure 2 A schematic diagram of a resource determination method flow chart provided in Example 1;

[0017] Figure 3 A flow chart of a resource determination method provided in Example 6;

[0018] Figure 4 A schematic diagram of a resource determination method flow chart provided in Example 8;

[0019] Figure 5 An interactive schematic diagram provided for this application;

[0020] Figure 6 A resource determination system architecture diagram provided in an embodiment of the present application;

[0021] Figure 7 A schematic diagram of the structure of a resource determination device provided in an embodiment of the present application;

[0022] Figure 8 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION

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

[0024] It should be noted that, in the description of this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0025] The storage space address of the storage requirement is sent to the user end by the management program. However, in this process, the corresponding storage resources and their addresses are still determined manually in at least one storage cluster based on the user's storage requirements, and then sent to the user end by the management program. Therefore, the management program only serves as a forwarding function, and the manual determination of the corresponding storage resources and addresses increases labor costs and reduces efficiency.

[0026] In order to solve the problem of increasing labor costs and reducing efficiency in related technologies, the inventor of this solution has made a series of improvements, specifically: this solution receives a resource determination request sent by a user terminal, and then determines a target resource pool from multiple resource pools. Further, the electronic device controls the resource pool to create a target resource, and the target resource belongs to the target resource pool, thereby determining a specific target resource for the user. In this solution, the target resource pool can be determined intelligently, and then the target resource is determined, reducing manual intervention and improving efficiency; in addition, the resource pools in this solution belong to different storage cluster types, and then this solution implements how to determine the target resource in a heterogeneous storage cluster; in addition, since the heterogeneous storage clusters are of different types, the compatibility is poor. Therefore, this solution generates an access link in a preset unified format for the access information, so that the user terminal can access the target resource in a preset unified format based on the access link, so that the user's manual adaptation operations due to different types can be reduced, making the user's operation easier, thereby improving the user's storage efficiency and user experience. In addition, the target resources determined from the target resource pool naturally meet the user's needs, so the present application can intelligently determine the target resources that meet the user's needs and thus fit the user's actual needs.

[0027] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0028] In conjunction with the specific application environment architecture or the specific hardware architecture on which the execution of the resource determination method depends, the specific application environment architecture or the specific hardware architecture is described herein. Figure 1 , Figure 1 A schematic diagram of an application scenario provided by this application. Figure 1 The system includes an electronic device 101, multiple storage clusters 102 and a user terminal 103.

[0029] The electronic device 101 may be a management device, a coordinating device, and may be a computer, a server, etc., which is not limited here.

[0030] Any storage cluster 102 may be derived from any storage device, and the space included therein may be used to store information. This application scenario includes an A storage cluster 1021 and a B storage cluster 1022 .

[0031] The user terminal 103 may be a computer, a mobile phone or other devices.

[0032] The electronic device 101 is respectively connected to the storage cluster 102 and the user end 103 in communication, and the connection mode may be a wired connection or a wireless connection.

[0033] The user terminal 103 may be connected to the storage cluster 102 for communication, and the connection mode may be a wired connection or a wireless connection.

[0034] In this scenario, specifically, the user can trigger a resource determination request through the user terminal 103, and then the user terminal 103 will send the resource determination request to the electronic device 101, and then the electronic device 101 determines the target resource pool from multiple resource pools based on the resource determination request, and controls the target resource pool to create the target resource. The above multiple resource pools belong to multiple storage clusters 102. Assume that the target resource belongs to storage cluster A 1021.

[0035] Furthermore, the target resource pool in the A storage cluster 1021 creates a target resource and generates access information of the target resource.

[0036] Furthermore, the A storage cluster 1021 sends access information to the electronic device 101 .

[0037] Furthermore, the electronic device 101 generates an access link in a preset unified format from the access information, and sends the access link to the user terminal 103 .

[0038] It is understandable that the embodiments of the present application can be used to address the current scenario where enterprise-level users are faced with the coexistence of storage clusters from multiple vendors, shielding the creation and management differentiation of different resource types from different vendors, and reasonably utilizing the capacity space of the resource pool to reduce costs while meeting user needs. Therefore, the present application proposes a method for intelligently determining the unified management of resources in a heterogeneous storage cluster. In the embodiments of the present application, the user only needs to provide the user's needs, which can include the first type and the capacity to be stored, and are carried in the resource determination request.

[0039] In order to facilitate understanding of the present solution, a specific embodiment is used as a description below.

[0040] Embodiment 1

[0041] The execution subject of the embodiment of the present application is a resource determination device, which can be located in an electronic device.

[0042] Figure 2 A schematic diagram of a resource determination method provided in Example 1. Figure 2 As shown, the following steps are included:

[0043] S201: Receive a resource determination request sent by a user terminal.

[0044] The resource determination request is a request for triggering an electronic device to perform resource determination.

[0045] S202, determining a target resource pool from a plurality of resource pools based on a resource determination request; the plurality of resource pools belong to storage clusters of different types.

[0046] The multiple resource pools belong to at least one storage cluster. Different storage clusters may come from different manufacturers. A storage cluster may include at least one resource pool, and at least one resource pool under it is of the same type as the storage cluster itself.

[0047] It should be noted that the electronic device in the present application can be communicatively connected with multiple storage clusters, the storage cluster in the present application can be a heterogeneous storage cluster, and the storage cluster in the present application can include: at least two of the network-attached storage type (Network-Attached Storage, referred to as NAS), object storage service type (Object Storage Service, referred to as OSS) and storage area network type (Storage Area Network, referred to as SAN).

[0048] It is understandable that if the first type is NAS, the determined type of the target resource pool is also NAS. Similarly, the type of the target resource is consistent with the type of the target resource pool, and the type of the resource pool is consistent with the storage cluster to which it belongs.

[0049] It should be noted that the remaining capacity of the target resource pool is greater than or equal to the capacity to be stored.

[0050] In the embodiment of the present application, the target resource pool meets the user's needs and is the best resource pool.

[0051] S203, controlling the target resource pool to create a target resource; the target resource belongs to the target resource pool.

[0052] Specifically, the electronic device may call the storage cluster to which the target resource pool belongs to create the target resource.

[0053] It can be understood that the target resource is created in the target resource pool, and the target resource meets the user's needs, that is, meets the user's needs for type and capacity.

[0054] S204, receiving access information of the target resource sent by the storage cluster to which the target resource pool belongs, generating an access link in a preset unified format based on the access information, and linking the access link to the user end.

[0055] Specifically, after the target resource pool creates the target resource, it can also generate the address and access parameters corresponding to the target resource under the control of the electronic device calling the storage cluster interface, generate access information based on the target resource address and access parameters, and send the access information to the electronic device. The access parameters include the method or address of accessing the target resource pool, for example, accessing the target resource pool through a certain path.

[0056] Specifically, the electronic device receives the target resource access information sent by the storage cluster to which the target resource pool belongs, performs standard configuration on the access information so that the access information is an access link in a unified preset format, and sends the access link to the user end. The access link includes the target resource access information.

[0057] It should be noted that the access link allows users to access target resources in a preset unified format, thereby improving the compatibility of different storage clusters.

[0058] In this method, since the storage cluster is a heterogeneous storage cluster and various storage clusters have their own characteristics, in order to shield the differentiation of target resources created by different types corresponding to different storage clusters, the access information is further standardized in this method to generate an access link, so that when the user end has content to be stored, the content to be stored is sent to the corresponding target resource or target resource pool through the access link.

[0059] It should be noted that the embodiments of the present application can be applied in a heterogeneous storage cluster, thereby solving the problems of poor compatibility and low resource utilization of a multi-protocol heterogeneous storage cluster.

[0060] In some implementations, after determining the target resource from different storage clusters, the access formats of different storage clusters are inconsistent, and the user needs to manually adapt the access format and underlying configuration, which reduces the user experience. Therefore, in this method, after the user receives the access link in a unified preset format, it can access the target resource in a unified access manner to achieve the purpose of storing the content to be stored in the target resource. Therefore, this application does not require the user to adapt how to access the target resource or target resource pool according to the target resource, thereby reducing the user's operations.

[0061] It should be noted that in some implementations, resource determination relies on manual configuration or fixed strategies, which lacks dynamic optimization capabilities. Then, in the embodiments of the present application, the optimal target resource pool can be intelligently and dynamically selected based on user needs, resource pool attributes, and priorities, and then the target resource pool can be controlled to create target resources. The embodiments of the present application achieve automatic adaptation of user needs and target resources through an intelligent allocation mechanism, and because the resource pool is of heterogeneous type, it can also generate access links in a preset unified format for different types of resource pools, which facilitates user access to target resources or target resource pools.

[0062] The present embodiment provides a resource determination method. In the present embodiment, the electronic device can intelligently determine the target resource pool. The target resource pool in the present application can meet the user's requirements for the target resource type and the capacity to be stored, and control the target resource pool to create a target resource therefrom. The target resource also meets the user's needs. Furthermore, since the resource pools are of different types, in order to facilitate user access, the electronic device will generate an access link in a preset unified format from the received access information, and then the user terminal can access the corresponding target resource based on the access link, so that the user does not need to manually adapt due to the heterogeneity of the resource pool, thereby reducing the user's operations and improving the user experience.

[0063] Embodiment 2

[0064] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the resource determination request includes the first type and the capacity to be stored.

[0065] The first type is the type of target resource that the electronic device is to determine.

[0066] The capacity to be stored is the minimum threshold of the remaining capacity of the target resource to be determined by the user, and the capacity to be stored is the capacity occupied by the content to be stored.

[0067] This embodiment is an optional method for determining a target resource pool from multiple resource pools based on a resource determination request, and specifically includes the following three steps:

[0068] Step 1: Screening from a plurality of resource pools based on the first type and the capacity to be stored to determine at least one first resource pool.

[0069] First, a first screening step is performed to determine at least one first resource pool from multiple resource pools, and the first resource pool meets the user's requirements for the first type and the capacity to be stored.

[0070] The first resource pool is a resource pool determined based on the first type and the capacity to be stored.

[0071] For example, it is assumed that there are 7 resource pools in total under the electronic device, namely resource pool A to resource pool G, wherein each resource pool may be from a different storage cluster, as shown in Table 1.

[0072] Table 1: An exemplary resource pool-storage cluster relationship table.

[0073]

[0074] Storage cluster 1 includes resource pool A, resource pool B and resource pool C, storage cluster 2 includes resource pool D and resource pool E, and storage cluster 3 includes resource pool F and resource pool G.

[0075] Exemplarily, a first resource pool is determined from the seven resource pools mentioned above.

[0076] This embodiment also includes an optional method of screening from multiple resource pools based on the first type and the capacity to be stored to determine at least one first resource pool, specifically:

[0077] Determine the second type; the second type is the type of the storage cluster to which the corresponding resource pool belongs.

[0078] The resource pool whose second type is consistent with the first type is determined as a resource pool that satisfies the type.

[0079] A plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are screened from resource pools satisfying the type, and the plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are determined as the first resource pool.

[0080] According to the above example, assuming that the second type of resource pool A, resource pool B and resource pool C is NAS, the second type of resource pool D and resource pool E is OSS, the second type of resource pool F and resource pool G is SAN, and the first type is NAS, then it is determined that resource pool A, resource pool B and resource pool C are resource pools that meet the type requirements.

[0081] Further, assuming that the remaining capacities of resource pool A, resource pool B and resource pool C are 80G, 60G and 52G respectively, and the capacity to be stored is 20G, then from the resource pools that meet the type requirements, it is further determined that the resource pools whose remaining capacity is greater than or equal to the capacity to be stored are resource pool A, resource pool B and resource pool C, thereby determining the above three resource pools to be the first resource pool.

[0082] This embodiment provides a resource determination method. In this embodiment, a qualified first resource pool is preliminarily screened out according to the first type and the capacity to be stored. It can be seen that the first resource pool meets the user's requirements for resource type and capacity.

[0083] Step 2: Screening from the first resource pools based on resource parameters of at least one first resource pool in the current marking period to determine at least one second resource pool.

[0084] The resource parameters refer to the basic parameters of the resource pool in the corresponding marking period. For example, they may include the total capacity and remaining capacity of the resource pool in the corresponding marking period. It should be noted that the total capacity and remaining capacity of the resource pool may change in different marking periods, so it is necessary to obtain the total capacity and remaining capacity in the corresponding marking period. The change in total capacity may be due to the expansion of the resource pool, and the change in remaining capacity may be due to the addition or reduction of storage capacity in the resource pool.

[0085] The second resource pool is a resource pool within a valid range (ie, a preset capacity threshold) determined according to the equal distribution priority principle.

[0086] This step is an equal-division priority screening to determine the second resource pool from the first resource pool.

[0087] Step three: Screen at least one second resource pool based on the attribute score of the corresponding second resource pool in the current marking period to determine the target resource pool.

[0088] It should be noted that in different marking cycles, the attribute scores corresponding to the resource pools may be inconsistent. Therefore, the target resource pool needs to be screened out according to the attribute scores of the second resource pools in the current marking cycle.

[0089] The attribute score refers to the score of the second resource pool in terms of attributes, wherein the attributes include capacity, average number of unit operations, latency, etc.

[0090] The present embodiment provides a resource determination method. In the present embodiment, a preliminary screening is first performed, that is, a first resource pool that meets the first type and the capacity to be stored is screened out, and then a second resource pool is screened out according to the resource parameters in the current marking cycle. Furthermore, a target resource pool with a high score is screened out based on the attribute score. It can be seen that the target resource pool in the embodiment of the present application not only meets the user's requirements for type and capacity, but also screens out the optimal resource pool based on resource parameters and attribute scores.

[0091] Embodiment 3

[0092] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the resource parameters include the total allocated capacity, the number of allocated users and the remaining capacity of each first resource pool in the current marking period.

[0093] According to the above exemplary embodiment, it is assumed that the resource parameters of the first resource pool are as shown in Table 2:

[0094] Table 2: Some resource parameters and corresponding attribute scores of the first resource pool in the current marking cycle.

[0095]

[0096] In Table 2, taking resource pool A as an example, the total capacity of resource pool A is 130G, the total allocated capacity is 50G, the remaining capacity is 80G, the number of allocated users is 3, and the corresponding attribute score is 8.

[0097] This embodiment is an optional way of screening at least one second resource pool from the first resource pool based on the resource parameters of at least one first resource pool in the current marking period, specifically including:

[0098] Step 1: In the current marking period, the average capacity of the allocated resources is calculated; the average capacity of the allocated resources is the ratio of the sum of the total allocated capacities of the first resource pools to the sum of the number of allocated users.

[0099] Calculate the average capacity of the allocated resources; the average capacity of the allocated resources is the ratio of the sum of the total allocated capacity of each first resource pool to the sum of the number of allocated users

[0100] According to the above exemplary embodiment, the average capacity of the allocated resources of the first resource pool is specifically: (50+60+40) / (3+5+2)=15.

[0101] Step 2: In the current marking period, calculate the capacity remainder; the capacity remainder is the remainder of the first capacity of the corresponding first resource pool to the average capacity of the allocated resources; the first capacity is the difference between the remaining capacity and the capacity to be stored.

[0102] The capacity remainder of each first resource pool is calculated separately, specifically:

[0103] Resource pool A: The remaining capacity is (80-20)%15=0. 80G is the remaining capacity of resource pool A, and 20G is the capacity to be stored.

[0104] Resource pool B: The remaining capacity is (60-20)%15=10. 60G is the remaining capacity of resource pool B.

[0105] Resource pool C: The remaining capacity is (52-20)%15=2. 52G is the remaining capacity of resource pool B.

[0106] Step 3: Screening the first resource pool based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool.

[0107] This embodiment provides a resource determination method. In this embodiment, the average capacity of the allocated resources in the current marking period is calculated based on the resource parameters. The average capacity is the ratio of the sum of the total allocated capacity of each second resource pool to the sum of the number of allocated users. It can represent the overall average capacity of each second resource pool, that is, the average capacity allocated to a user, and the capacity remainder is calculated, so as to accurately screen out the second resource pool based on the average capacity and the capacity remainder, so that the second resource pool is better and the allocation based on the uniform priority principle is realized.

[0108] Embodiment 4

[0109] This embodiment is a further refinement of any of the above embodiments. This embodiment is an optional way of screening from the first resource pool based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool, specifically including:

[0110] A ratio of the capacity remainder to the average capacity of the allocated resources is calculated, and the ratio is determined as a capacity ratio.

[0111] According to the above exemplary embodiment, specifically:

[0112] The capacity ratio of resource pool A is: capacity remainder / average capacity of allocated resources = 0.

[0113] The capacity ratio of resource pool B is: capacity remainder / average capacity of allocated resources = 0.67.

[0114] The capacity ratio of resource pool C is: capacity remainder / average capacity of allocated resources = 0.13.

[0115] A first resource pool whose corresponding capacity ratio is within a preset capacity threshold is screened from at least one first resource pool, and a first resource pool whose capacity ratio is within the preset capacity threshold is determined as a second resource pool; there is at least one second resource pool.

[0116] The preset capacity thresholds may be [0, 0.2] and [0.8, 1].

[0117] According to the above exemplary embodiment, it is determined that resource pool A and resource pool C are within the preset capacity threshold, and thus resource pool A and resource pool C are determined to be the second resource pool.

[0118] This embodiment provides a resource determination method. In this embodiment, allocation based on the uniform priority principle is implemented according to the capacity ratio, thereby determining a more optimal second resource pool.

[0119] Embodiment 5

[0120] This embodiment is a further refinement of any of the above embodiments. In this embodiment, the resource parameters also include the total capacity corresponding to each first resource pool in the current marking period.

[0121] This embodiment is an optional way to determine a target resource pool by screening from at least one second resource pool based on the attribute score of the corresponding second resource pool in the current marking period. Figure 3 A flow chart of a resource determination method provided in Example 6. Figure 3 As shown, specifically including:

[0122] S301, for each second resource pool, the corresponding remaining capacity, total capacity, attribute score and priority of the second resource pool in the current marking cycle are input into a preset comprehensive scoring algorithm to obtain a comprehensive score of the second resource pool; the priority is derived from the basic parameters of the storage cluster to which it belongs.

[0123] The priority is reported to the electronic device when the storage cluster to which the resource pool belongs is connected to the electronic device. The priority can be determined by the manufacturer corresponding to the storage cluster, and the priorities are 1, 2, 3 and 4. The priority can represent the priority of the storage cluster being used, and the storage cluster can be divided according to business and cost needs. The higher the priority, the better the storage cluster status, the lower the cost, and naturally the better the corresponding resource pool. Optionally, the priority of the resource pool is the priority of the storage cluster to which it belongs.

[0124] The preset comprehensive scoring algorithm is a preset algorithm of set capacity, attribute scoring and priority. As shown in (1):

[0125] (1)

[0126] Among them, w1, w2, w3 are capacity weight, attribute weight and priority weight, which can be 0.5, 0.3 and 0.2 respectively, and Score represents the comprehensive score.

[0127] According to the above exemplary embodiment, assuming that the priority of resource pool A is 1 and the priority of resource pool C is 3, the comprehensive scores of the second resource pools are calculated respectively, specifically:

[0128] The comprehensive score of resource pool A: 0.5×80 / 130+0.3×8-0.2×1=2.51.

[0129] The comprehensive score of resource pool C: 0.5×52 / 92+0.3×9-0.2×3=2.38.

[0130] S302: Filter the highest comprehensive score from the comprehensive scores corresponding to at least one second resource pool.

[0131] According to the above exemplary embodiment, the highest comprehensive score is determined to be 2.51.

[0132] S303: Determine the second resource pool corresponding to the highest comprehensive score as the target resource pool.

[0133] According to the above example, resource pool A corresponding to the comprehensive score of 2.51 is determined as the target resource pool.

[0134] The present embodiment provides a resource determination method, which is based on a preset comprehensive scoring algorithm, wherein the preset comprehensive scoring algorithm combines remaining capacity, total capacity, attribute score, priority, etc., so that the comprehensive score is more fair and more factors are considered. Finally, the second resource pool with the highest comprehensive score is selected as the target resource pool, so that the target resource pool is more prominent in terms of capacity, type, attribute and priority.

[0135] Embodiment 6

[0136] This embodiment is a further refinement of any of the above embodiments. This embodiment performs different operations according to different first types of user requirements.

[0137] Method 1:

[0138] This embodiment is an optional method of controlling the target resource pool to create a target resource, including:

[0139] If the first type is a network attached storage type, the storage cluster interface to which the target resource pool belongs is called, and the target resource pool is controlled in the storage cluster to create a file directory according to the capacity to be stored; the file directory is the target resource.

[0140] It should be noted that, under the control of the electronic device, the target resource pool can create a file directory with appropriate capacity according to the capacity to be stored.

[0141] This embodiment also includes:

[0142] Call the storage cluster interface to which it belongs to control the target resource pool to create a file directory address, create a network sharing path and its domain name for external access to the target resource, and control the target resource pool to generate access information based on the file directory address and the network sharing path domain name.

[0143] The network sharing path may be a Network File System (NFS) sharing path that implements communication based on the NFS protocol. Based on the network sharing path, the user end can access the corresponding file directory (ie, target resource) and perform operations as easily as accessing local files.

[0144] Method 2:

[0145] If the first type is an object storage service type, the storage cluster interface to which the target resource pool belongs is called, and the target resource pool is controlled to create a bucket directory in the storage cluster according to the capacity to be stored; the bucket directory is the target resource.

[0146] This embodiment also includes:

[0147] Call the storage cluster interface to control the target resource pool to create or query the bucket directory address and corresponding authentication information of the bucket directory, and control the target resource pool to generate access information based on the bucket directory address and corresponding authentication information.

[0148] Authentication information refers to the credential information used to access and manage buckets. Authentication information can be used to implement verification, authorization, and data protection.

[0149] Method 3:

[0150] The resource determination request also includes the user terminal address.

[0151] The client address may be a host iSCSI address, which is a unique identifier based on a domain name structure and is used to identify an iSCSI node. The client and the storage cluster are connected via this address.

[0152] Control the target resource pool to create target resources, including:

[0153] If the first type is a storage area network type, the storage cluster interface to which the target resource belongs is called, and the target resource pool is controlled in the storage cluster to create a storage volume according to the capacity to be stored; the storage volume is the target resource.

[0154] This embodiment also includes:

[0155] The user end address is obtained from the resource determination request and sent to the target resource pool; the target resource pool is controlled to generate access information based on the user end address and the address of the storage cluster to which the target resource belongs.

[0156] It should be noted that if the first type is a storage area network type, the storage cluster to which the target resource pool belongs only needs to use the storage cluster address and the user end address as access information, and the electronic device generates an access link and sends it to the user end. The user end accesses the storage cluster based on the binding information therein, and further, the storage cluster determines the specific storage target resource (i.e., storage volume) of the storage content sent by the user end based on its own user end binding information, and then controls the user end to access the specific target resource. Among them, the binding information includes information such as the storage cluster-user end-target resource pool-target resource (storage volume).

[0157] A storage volume is a storage space that is logically divided in a SAN environment, similar to a partition or logical disk in a local storage. SAN storage volumes can be shared between multiple servers and support sharing through the iSCSI protocol.

[0158] For network-attached storage and object storage service types, the user end can directly access the specific target resources in the storage cluster through the access link. It should be noted that for the above two types, the access link is not bound to the user end, but to the user, supporting the user to send storage content through any device and access the target resource based on the corresponding access link. For the storage area network type, the access link is actually bound to the user end, and only supports the storage content sent by the user end to access the storage cluster through the corresponding access link.

[0159] Furthermore, the electronic device accesses the target resource pool or the target resource through the address of the storage cluster and the interface of the storage cluster according to the storage cluster to which the target resource pool belongs, and then controls it to create the target resource.

[0160] Furthermore, the received access information is configured in a standard manner, i.e., managed in a unified manner.

[0161] It should be noted that in the embodiment of the present application, the remaining capacity of the resource pool and the capacity to be stored are prioritized to ensure that the target resources can be created normally. The equal distribution priority principle is adopted to ensure that the target resources can be efficiently utilized after creation, avoiding fragmentation. At the same time, business weights (i.e., attribute scores and priorities) are taken into account to ultimately determine the target resource pool that best suits the user.

[0162] When the target resource is created, the electronic device is associated with the storage cluster to which the target resource pool belongs, and calls the storage cluster interface (which can be the Representational State Transfer Application Programming Interface, referred to as RestAPI) to control the target resource pool to create resources in itself according to the storage capacity.

[0163] Furthermore, the electronic device will generate an access link in a preset unified format, which includes the target resource type, the target resource access address (ie, the file target directory address, the bucket directory address, and the target resource pool address) and authentication information.

[0164] It should be noted that if the first type is a storage area network type, a supplementary parameter needs to be included in the resource determination request, that is, providing a client address or a host address (specifically, a host iSCSI address). The electronic device performs intelligent matching to maximize the reasonable use of the remaining capacity resources of each storage cluster.

[0165] This embodiment provides a resource determination method. In this embodiment, the storage cluster is a heterogeneous storage cluster, and then according to different types, the target resource and its access parameter are determined in a targeted manner, and then the access information is generated to facilitate the user end to access the corresponding target resource.

[0166] Embodiment 7

[0167] This embodiment is a further refinement of any of the above embodiments, and specifically includes:

[0168] In response to at least one storage cluster access, at least one resource pool is determined from the storage cluster; the second type of the resource pool is consistent with the type of the storage cluster.

[0169] When taking over at least one storage cluster, the electronic device firstly accesses at least one storage cluster, and each storage cluster reports its own basic parameters, such as priority.

[0170] This embodiment also includes: an optional method of determining at least one resource pool from the storage cluster, specifically:

[0171] In response to the storage cluster including at least one storage space, each storage space is determined as a resource pool; the storage space includes a storage pool and / or a file system, and the storage space is matched with the resource pool.

[0172] It should be noted that one storage space corresponds to one resource pool. For example, if a storage cluster includes a storage pool and a file system, the storage pool is determined as a resource pool, and the file system is determined as a resource pool.

[0173] Among them, storage pool is a technology that integrates multiple physical hard disks into a logical storage unit through Redundant Array of Independent Disks (RAID) technology. It can merge multiple hard disks into a large storage space to manage and use storage resources more flexibly.

[0174] Another optional manner of determining at least one resource pool from the storage cluster is also included: in response to the storage cluster not including storage space, determining the storage cluster as a resource pool.

[0175] This method is for the case where the storage cluster has no storage pool concept.

[0176] Specifically, the storage cluster as a whole is used as a resource pool.

[0177] It should be noted that the embodiment of the present application actually abstracts the heterogeneous storage cluster, abstracts the storage clusters of different manufacturers into a unified resource pool, and shields the underlying differences.

[0178] This embodiment provides a resource determination method. In this embodiment, each storage space is determined as a resource pool, or a storage cluster is determined as a resource pool, which can achieve the purpose of shielding the underlying differences.

[0179] Embodiment 8

[0180] This embodiment is a further refinement of any of the above embodiments. This embodiment is an optional method before receiving a resource determination request sent by a user terminal, including:

[0181] The marking task is triggered periodically. In each marking period, the attribute score of at least one resource pool is calculated, and the resource pool is marked in the marking period using the corresponding attribute score.

[0182] Exemplarily, after the electronic device determines at least one resource pool, it needs to periodically mark at least one of the resource pools, that is, update the attribute scores of the at least one resource pool in different marking periods.

[0183] For example, for the above 7 resource pools, the marking task may be triggered regularly every 4 hours, so that the corresponding attribute score is calculated for each marking cycle.

[0184] For example, it is assumed that the current marking period is marked after the attribute score of the current marking period is calculated, and the attribute score of the previous marking period is deleted. At the same time, the type of the resource pool can also be marked, which can represent what type of resources the resource pool can create.

[0185] This embodiment also includes: an optional method of calculating the attribute score of at least one resource pool, Figure 4 A schematic diagram of a resource determination method provided in Example 8. Figure 4 As shown, specifically including:

[0186] S401, obtaining the remaining capacity, total capacity, average unit operation number, average delay and basic parameters of at least one resource pool in a marking period; the basic parameters include the nominal maximum unit operation number and maximum delay.

[0187] The nominal maximum unit operation number is the maximum unit operation number of the corresponding storage cluster, that is, the maximum number of input / output operations per second (IOPS) of the storage cluster per unit time.

[0188] S402: For each resource pool, a capacity score is calculated based on the corresponding remaining capacity and total capacity.

[0189] The capacity score (expressed as Score capacity) is calculated as follows:

[0190] .

[0191] S403: For each resource pool, an operation score is calculated based on the corresponding maximum unit operation number and the average unit operation number.

[0192] The operation score (expressed as Score iops) is calculated as follows:

[0193] .

[0194] S404: For each resource pool, a delay score is calculated based on the corresponding average delay and maximum delay.

[0195] The latency score (expressed as Score latency) is calculated as follows:

[0196] .

[0197] S405: For each resource pool, obtain an attribute score based on the corresponding capacity score, operation number score, and latency score.

[0198] The attribute score (expressed as Score pool) is calculated as follows:

[0199] .

[0200] Among them, the average unit operation number can be the 24-hour average value, and the average delay can be the 24-hour average value; the upper limit of each score range is 10, and 0 is taken if it is lower than 0; the values ​​of each weight parameter (capacity weight parameter α, operation number weight parameter β, delay weight parameter γ) can be defined according to each user's business usage scenario (capacity sensitive, performance priority, low latency). In the general scenario, α is 0.3, β is 0.5, and γ is 0.2; in the high-performance scenario, α is 0.1, β is 0.6, and γ is 0.3.

[0201] For example, the total capacity of a resource pool is 100TB, and the remaining capacity is 30TB. The remaining capacity accounts for 30%, the average unit operation number is 45,000 (the nominal maximum unit operation number is 100,000), and the average latency is 3ms (maximum latency is 10ms). The final attribute score of the resource pool is 5.05.

[0202] It should be noted that the higher the attribute score is, the greater the probability that the resource pool is determined as the target resource pool.

[0203] According to the above embodiment, it can be seen that a multi-dimensional scoring mechanism for resource pools is established, the attribute score is calculated based on the weight parameters, and then the comprehensive score is calculated based on the proportion of the remaining capacity to the total capacity, the attribute score and the priority, and then the comprehensive score of each resource pool is dynamically calculated, so that dynamicization can be achieved.

[0204] It should be noted that the attribute scores and resource parameters in the embodiment of the present application will change over time. In order to be able to more accurately characterize the attribute scores and resource parameters, the embodiment of the present application proposes to periodically trigger the marking task, so as to mark based on the corresponding resource parameters in different marking periods, and obtain the attribute scores in different marking periods. Based on this, the target resource pool that meets user needs can be determined more accurately.

[0205] This application provides an intelligent and determined method for unified management of heterogeneous storage cluster resources, which generally achieves the following three points:

[0206] The first point is resource classification and grading. When a storage cluster is connected to an electronic device, at least one resource pool is determined for different types of storage clusters and basic parameters (such as priority, etc.) provided by the corresponding manufacturer.

[0207] The second point: intelligent determination algorithm, based on user needs, dynamically determines the target resource pool by matching the first type and the capacity to be stored, implementing the uniform priority principle based on resource parameters, attribute scoring, and comprehensive scoring (i.e. the proportion of remaining capacity to total capacity, attribute scoring, and priority).

[0208] The third point: Automatically create target resources. The electronic device calls the storage cluster interface to control the target resource pool to create target resources that meet the user's storage capacity requirements, and generates access links in a preset unified format for access information.

[0209] According to the above embodiments, the embodiments of the present application specifically include the following advantages:

[0210] First, it is determined that the resource pool has been abstracted. The attribute scores are calculated based on different types of storage clusters, resource parameters within the marking cycle, and basic parameters, which provides a strong foundation for subsequent intelligent matching and improves the matching efficiency of the resource pool.

[0211] Second point: Intelligent matching of resource pools is based on user needs provided by the user end, without the need for manual intervention. The optimal target resources are determined by the ratio of remaining capacity to total capacity, attribute score and priority, and costs can be reduced. It is expected that the procurement cost of storage clusters can be reduced by 10-30%.

[0212] The third point: Automated access adaptation. Users do not need to pay attention to the differences in the underlying storage cluster types. Through standard configuration, they can achieve "one-click" target resource acquisition, thereby providing users with a unified target resource access portal (that is, a preset unified format access link), improving the user experience.

[0213] Figure 5 This is an interactive schematic diagram provided by this application. Figure 5 As shown, it includes: a management device, a host and a storage device. Among them, the management device is a kind of electronic device in the embodiment of the present application, the management device is used for intelligent allocation or determination of the target resource pool in the embodiment of the present application, the storage device includes the storage cluster in the embodiment of the present application, that is, the storage cluster corresponding to the target resource pool, and the host is a kind of user end.

[0214] S501, the host sends a resource determination request.

[0215] S502: The management device screens from a plurality of resource pools based on the first type and the capacity to be stored to determine at least one first resource pool.

[0216] S503: The management device screens at least one first resource pool based on resource parameters of at least one first resource pool in a current marking period to determine at least one second resource pool.

[0217] S504, the management device inputs the corresponding remaining capacity, total capacity, attribute score and priority of each second resource pool in the current marking period into a preset comprehensive scoring algorithm to obtain a comprehensive score of the second resource pool.

[0218] S505: The management device selects the highest comprehensive score from the comprehensive scores corresponding to the at least one second resource pool.

[0219] S506: The management device determines the second resource pool corresponding to the highest comprehensive score as the target resource pool.

[0220] S507: The management device controls the target resource pool to create a target resource.

[0221] S508: The storage cluster generates access information of the target resource.

[0222] S509: The storage cluster sends access information to the management device.

[0223] S510: The management device generates an access link in a preset unified format based on the access information.

[0224] S511, the management device sends an access link to the host.

[0225] Figure 6 This is a resource determination system architecture diagram provided in an embodiment of the present application. Figure 6 As shown, it includes: an intelligent allocation device 601, a target user terminal 602, storage clusters 603 corresponding to different manufacturers, and multiple heterogeneous storage resource pools 604 after abstract labeling.

[0226] Among them, the intelligent distribution device 601 is a type of electronic device.

[0227] The intelligent allocation device 601 manages storage clusters 603 corresponding to different manufacturers and communicates with each other. The front end of the intelligent allocation device 601 is the target user end 602, which is communicated with each other. The abstractly marked heterogeneous storage multiple resource pools 604 are communicated with the intelligent allocation device 601, and the connection method can be a wired connection or a wireless connection. The abstractly marked heterogeneous storage multiple resource pools 604 are determined by abstractly marking the storage clusters 603 corresponding to different manufacturers.

[0228] The storage clusters 603 corresponding to different manufacturers include 6031 storage cluster 1 of manufacturer A, 6032 storage cluster 2 of manufacturer B, and 6033 storage cluster 3 of manufacturer C.

[0229] Specifically, the target user terminal 602 triggers a resource determination request to the intelligent allocation device 601. The intelligent allocation device 601 controls the creation of target resources, determines the target resource pool from multiple resource pools 604, and then provides the target resources. Further, an access link in a preset unified format is generated according to the storage cluster type and the target resource.

[0230] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0231] Figure 7 This is a schematic diagram of the structure of the resource determination device provided in the embodiment of the present application. Figure 7 As shown, the embodiment of the present application further provides a resource determination device 700, comprising the following modules:

[0232] The receiving module 701 is used to receive a resource determination request sent by a user terminal;

[0233] A determination module 702 is used to determine a target resource pool from a plurality of resource pools based on a resource determination request; the plurality of resource pools belong to different types of storage clusters;

[0234] Control module 703, used to control the target resource pool to create a target resource; the target resource belongs to the target resource pool;

[0235] The receiving module 701 is further used to receive access information of the target resource sent by the storage cluster to which the target resource pool belongs. The generating module 704 is used to generate an access link in a preset unified format based on the access information and send the access link to the user end.

[0236] The determination module 702, when determining a target resource pool from multiple resource pools based on a resource determination request, is specifically configured to:

[0237] Screening from a plurality of resource pools based on the first type and the capacity to be stored to determine at least one first resource pool;

[0238] Screening from the first resource pools based on resource parameters of at least one first resource pool in a current marking period to determine at least one second resource pool;

[0239] At least one second resource pool is screened based on the attribute scores of the corresponding second resource pools in the current marking period to determine a target resource pool.

[0240] The determination module 702 is specifically configured to: when screening from multiple resource pools based on the first type and the capacity to be stored to determine at least one first resource pool:

[0241] Determine a second type; the second type is the type of the storage cluster to which the corresponding resource pool belongs;

[0242] Determine the resource pool whose second type is consistent with the first type as a resource pool whose type satisfies;

[0243] A plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are screened from resource pools satisfying the type, and the plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are determined as the first resource pool.

[0244] The resource parameters include the total allocated capacity, the number of allocated users and the remaining capacity of each first resource pool corresponding to the current marking period;

[0245] The determination module 702 is specifically configured to:

[0246] In the current marking period, the average capacity of the allocated resources is calculated; the average capacity of the allocated resources is the ratio of the sum of the total allocated capacities of the first resource pools to the sum of the number of allocated users;

[0247] In the current marking cycle, the capacity remainder is calculated; the capacity remainder is the remainder of the first capacity of the corresponding first resource pool to the average capacity of the allocated resources; the first capacity is the difference between the remaining capacity and the capacity to be stored;

[0248] The first resource pool is screened based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool.

[0249] The determination module 702, when screening from the first resource pool based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool, is specifically configured to:

[0250] Calculating a ratio of the capacity remainder to an average capacity of the allocated resources, and determining the ratio as a capacity ratio;

[0251] A first resource pool whose corresponding capacity ratio is within a preset capacity threshold is screened from at least one first resource pool, and a first resource pool whose capacity ratio is within the preset capacity threshold is determined as a second resource pool; there is at least one second resource pool.

[0252] The resource parameters also include the total capacity of each first resource pool corresponding to the current marking period;

[0253] The determination module 702, when screening from at least one second resource pool based on the attribute score of the corresponding second resource pool in the current marking period to determine the target resource pool, is specifically used to:

[0254] For each second resource pool, the remaining capacity, total capacity, attribute score and priority of the second resource pool in the current marking period are input into a preset comprehensive scoring algorithm to obtain a comprehensive score of the second resource pool; the priority is derived from the basic parameters of the storage cluster to which it belongs;

[0255] Selecting the highest comprehensive score from the comprehensive scores corresponding to at least one second resource pool;

[0256] The second resource pool corresponding to the highest comprehensive score is determined as the target resource pool.

[0257] The control module 703 is specifically used to control the target resource pool to create the target resource:

[0258] If the first type is a network attached storage type, calling the storage cluster interface to which the target resource pool belongs, and controlling the target resource pool in the storage cluster to create a file directory according to the capacity to be stored; the file directory is the target resource;

[0259] The control module 703 is further used for:

[0260] Call the storage cluster interface to which it belongs to control the target resource pool to create a file directory address, create a network sharing path and its domain name for external access to the target resource, and control the target resource pool to generate access information based on the file directory address and the network sharing path domain name.

[0261] The control module 703 is used to control the target resource pool to create a target resource:

[0262] If the first type is an object storage service type, call the storage cluster interface to which the target resource pool belongs, and control the target resource pool in the storage cluster to create a bucket directory according to the capacity to be stored; the bucket directory is the target resource;

[0263] The control module 703 is further used for:

[0264] Call the storage cluster interface to control the target resource pool to create or query the bucket directory address and corresponding authentication information of the bucket directory, and control the target resource pool to generate access information based on the bucket directory address and corresponding authentication information.

[0265] The resource determination request also includes the user terminal address; the control module 703, when controlling the target resource pool to create the target resource, is used to:

[0266] If the first type is a storage area network type, calling the storage cluster interface to which the target resource belongs, and controlling the target resource pool in the storage cluster to create a storage volume according to the capacity to be stored; the storage volume is the target resource;

[0267] The control module 703 is further used for:

[0268] Obtain the client address from the resource determination request and send it to the target resource pool;

[0269] The target resource pool is controlled to generate access information based on the user terminal address and the address of the storage cluster to which the target resource belongs.

[0270] The determination module 702 is further configured to: in response to at least one storage cluster accessing, determine at least one resource pool from the storage cluster; the second type of the resource pool is consistent with the type of the storage cluster;

[0271] The determination module 702, when determining at least one resource pool from the storage cluster, is specifically configured to:

[0272] In response to the storage cluster including at least one storage space, each storage space is determined as a resource pool; the storage space includes a storage pool and / or a file system;

[0273] Alternatively, in response to the storage cluster not including storage space, the storage cluster is determined as a resource pool.

[0274] The resource determination device provided by this embodiment also includes: a marking module;

[0275] The marking module, before receiving the resource determination request sent by the user end, is used to:

[0276] The marking task is triggered periodically. In each marking period, the attribute scores of multiple resource pools are calculated, and the corresponding attribute scores are used to mark the resource pools in the marking period.

[0277] The tagging module is used to calculate the attribute scores of multiple resource pools:

[0278] Obtain the remaining capacity, total capacity, average unit operation number, average latency and basic parameters of multiple resource pools within the marking period; the basic parameters include the nominal maximum unit operation number and maximum latency;

[0279] For each resource pool, the capacity score is calculated based on the corresponding remaining capacity and total capacity;

[0280] For each resource pool, the operation score is calculated based on the corresponding maximum unit operation number and average unit operation number;

[0281] For each resource pool, the latency score is calculated based on the corresponding average latency and maximum latency.

[0282] For each resource pool, an attribute score is obtained based on the corresponding capacity score, operation number score, and latency score.

[0283] For the description of the features in the embodiment corresponding to the resource determination device, reference may be made to the relevant description of the embodiment corresponding to the resource determination method, which will not be described in detail here.

[0284] Figure 8 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 8 As shown, the electronic device 101 provided in this embodiment includes: at least one processor 801 and a memory 802. Optionally, the electronic device 101 also includes a communication component 803. The processor 801, the memory 802 and the communication component 803 are connected via a bus 804.

[0285] In a specific implementation process, at least one processor 801 executes the computer-executable instructions stored in the memory 802, so that at least one processor 801 executes the above-mentioned resource determination method embodiment.

[0286] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0287] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0288] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0289] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0290] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above-mentioned resource determination method embodiments when running.

[0291] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0292] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the resource determination method embodiments are implemented.

[0293] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned resource determination method embodiments are implemented.

[0294] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0295] The above is a detailed introduction to a resource determination method provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A resource determination method, characterized in that: include: Receiving a resource determination request sent by a user terminal; Determining a target resource pool from a plurality of resource pools based on the resource determination request; the plurality of resource pools belong to storage clusters of different types; Controlling the target resource pool to create target resources; The target resource belongs to the target resource pool; Receive access information of the target resource sent by the storage cluster to which the target resource pool belongs, generate an access link in a preset unified format based on the access information, and send the access link to the user end.

2. The method according to claim 1, characterized in that The resource determination request includes a first type and a capacity to be stored; The step of determining a target resource pool from a plurality of resource pools based on the resource determination request comprises: Screening from a plurality of resource pools based on the first type and the capacity to be stored to determine at least one first resource pool; Filtering from the first resource pools based on resource parameters of the at least one first resource pool in a current marking period to determine at least one second resource pool; At least one of the second resource pools is screened based on the attribute score of the second resource pool corresponding to the current marking period to determine a target resource pool.

3. The method according to claim 2, characterized in that The screening from a plurality of resource pools based on the first type and the capacity to be stored to determine at least one first resource pool includes: Determine a second type; the second type is a type of a storage cluster to which the corresponding resource pool belongs; Determine the resource pool whose second type is consistent with the first type as a resource pool whose type satisfies; A plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are screened from the resource pools satisfying the type, and the plurality of resource pools whose remaining capacity is greater than or equal to the capacity to be stored are determined as the first resource pool.

4. The method according to claim 2, characterized in that: The resource parameters include the total allocated capacity, the number of allocated users and the remaining capacity of each first resource pool corresponding to the current marking period; The screening from the first resource pools based on the resource parameters of the at least one first resource pool in the current marking period to determine at least one second resource pool includes: In the current marking period, the average capacity of the allocated resources is calculated; the average capacity of the allocated resources is the ratio of the sum of the total allocated capacities of the first resource pools to the sum of the number of allocated users; In the current marking period, a capacity remainder is calculated; the capacity remainder is the remainder of the first capacity of the corresponding first resource pool to the average capacity of the allocated resources; the first capacity is the difference between the remaining capacity and the capacity to be stored; The first resource pool is screened based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool.

5. The method according to claim 4, characterized in that The screening from the first resource pool based on the capacity remainder and the average capacity of the allocated resources to determine at least one second resource pool includes: Calculating a ratio of the capacity remainder to an average capacity of the allocated resources, and determining the ratio as a capacity ratio; A first resource pool whose corresponding capacity ratio is within a preset capacity threshold is screened from at least one first resource pool, and a first resource pool whose capacity ratio is within the preset capacity threshold is determined as a second resource pool; there is at least one second resource pool.

6. The method according to claim 2, characterized in that The resource parameters also include the total capacity of each first resource pool corresponding to the current marking period; The screening from at least one of the second resource pools based on the attribute score of the second resource pool corresponding to the current marking period to determine the target resource pool includes: For each second resource pool, the remaining capacity, total capacity, attribute score and priority of the second resource pool in the current marking period are input into a preset comprehensive scoring algorithm to obtain a comprehensive score of the second resource pool; the priority is derived from the basic parameters of the storage cluster to which it belongs; Selecting the highest comprehensive score from the comprehensive scores corresponding to at least one second resource pool; The second resource pool corresponding to the highest comprehensive score is determined as the target resource pool.

7. The method according to claim 2, characterized in that The controlling the target resource pool to create a target resource includes: If the first type is a network attached storage type, calling the storage cluster interface to which the target resource pool belongs, and controlling the target resource pool to create a file directory in the storage cluster according to the to-be-stored capacity; the file directory is the target resource; The method further comprises: The storage cluster interface is called to control the target resource pool to create a file directory address, and to create a network sharing path and its domain name for external access to the target resource, and to control the target resource pool to generate the access information based on the file directory address and the network sharing path domain name.

8. The method according to claim 2, characterized in that: The controlling the target resource pool to create a target resource includes: If the first type is an object storage service type, calling the storage cluster interface to which the target resource pool belongs, and controlling the target resource pool to create a bucket directory in the storage cluster according to the capacity to be stored; the bucket directory is the target resource; The method further comprises: The storage cluster interface is called to control the target resource pool to create or query the bucket directory address and corresponding authentication information of the bucket directory, and control the target resource pool to generate the access information based on the bucket directory address and corresponding authentication information.

9. The method according to claim 2, characterized in that: The resource determination request also includes a user terminal address; The controlling the target resource pool to create a target resource includes: If the first type is a storage area network type, calling the storage cluster interface to which the target resource belongs, and controlling the target resource pool in the storage cluster to create a storage volume according to the capacity to be stored; the storage volume is the target resource; The method further comprises: Obtaining a user terminal address from the resource determination request and sending it to a target resource pool; The target resource pool is controlled to generate the access information based on the user-side address and the address of the storage cluster to which the target resource belongs.

10. The method according to claim 1, characterized in that The method further comprises: In response to at least one storage cluster accessing, determining at least one resource pool from the storage cluster; the second type of the resource pool is consistent with the type of the storage cluster; The determining at least one resource pool from the storage cluster includes: In response to the storage cluster including at least one storage space, each of the storage spaces is determined as a resource pool; the storage space includes a storage pool and / or a file system; Alternatively, in response to the storage cluster not including storage space, the storage cluster is determined as a resource pool.

11. The method according to claim 1, characterized in that: Before receiving the resource determination request sent by the user terminal, the method further includes: The marking task is triggered periodically, and in each marking period, the attribute score of at least one resource pool is calculated, and the resource pool is marked in the marking period using the corresponding attribute score.

12. The method according to claim 11, characterized in that Calculate the attribute score of at least one resource pool, including: Obtaining the remaining capacity, total capacity, average unit operation number, average delay and basic parameters of the resource pool of at least one resource pool in the marking period; the basic parameters include the nominal maximum unit operation number and the maximum delay; For each resource pool, the capacity score is calculated based on the corresponding remaining capacity and total capacity; For each resource pool, the operation score is calculated based on the corresponding maximum unit operation number and average unit operation number; For each resource pool, the latency score is calculated based on the corresponding average latency and maximum latency. For each resource pool, the attribute score is obtained based on the corresponding capacity score, operation number score, and latency score.

13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the resource determination method according to any one of claims 1 to 12 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the resource determination method according to any one of claims 1 to 12.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the resource determination method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Heterogeneous storage management system and method oriented to cloud computing

    CN104156216A

  • Heterogeneous object storage cluster access method, device and equipment and storage medium

    CN112052222A

  • Heterogeneous storage global management scheduling method and system, electronic equipment and storage medium

    CN116781787A

  • Resource scheduling method and device, computer equipment, storage medium and program product

    CN117539587A

  • Multivariate heterogeneous storage cluster management method and storage medium

    CN119743484A