Resource management method and device, computer equipment and storage medium
By predicting the resource utilization and cached resources of the resource pool, and adjusting the storage space, the problem of low resource utilization in traditional technologies is solved, and the resource utilization and overall performance of the resource pool are improved.
Patent Information
- Application Number
- CN202411657146.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-02-18
AI Technical Summary
In traditional technology, resource management methods have the problem of low resource utilization in cache resource pools.
By preset management time per interval, the resource opening and cache resource amount of the resource pool is predicted based on the historical resource activation and historical resource data of the resource pool, and the storage space is adjusted based on these prediction results to adapt to the current storage system. Resource requirements.
The resource utilization rate of the resource pool is improved, the matching degree of cached resources is ensured to the current storage situation, and the overall performance of the resource pool is improved through accurate prediction and adjustment.
Smart Images

Figure CN119473617A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer equipment, and in particular to a resource management method, device, computer equipment and storage medium. Background Art
[0002] In cloud computing platforms, resource pre-occupancy refers to reserving a certain amount of computing resources for users to meet their specific needs. For example, when a user applies for cloud resources, if the cache resource pool is insufficient, it may trigger automatic cancellation of the order, which will bring a bad user experience. Therefore, it is necessary to reserve a certain amount of cache resources for users in the cache resource pool.
[0003] In conventional technologies, cache resources of various specifications are usually reserved for users in a cache resource pool or a cache resource threshold is set for the cache resource pool.
[0004] However, the resource management method for reserved cache resources in the traditional technology has the problem of low resource utilization. Summary of the invention
[0005] Based on this, it is necessary to provide a resource management method, device, computer equipment and storage medium that can improve resource utilization in response to the above technical problems.
[0006] In a first aspect, the present application provides a resource management method, comprising:
[0007] Preset management duration at each interval, and predict resource opening quantity of the resource pool according to historical resource opening quantity of the resource pool and historical resource data of the resource pool;
[0008] Predicting the cache resource amount of the resource pool according to the resource opening amount and the historical cache resource amount of the resource pool;
[0009] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to adapt to the resource demand of the current storage system.
[0010] In one of the embodiments, adjusting the storage space of the resource pool according to the cache resource amount of the resource pool includes:
[0011] If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, reducing the capacity of the cache space to the cache resource amount;
[0012] If the cache space of the cache resource pool in the resource pool is smaller than the cache resource amount, expanding the capacity of the cache space to the cache resource amount;
[0013] If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0014] In one of the embodiments, predicting the cache resource amount of the resource pool according to the resource opening amount of the resource pool and the historical cache resource amount includes:
[0015] Determine the resource pre-occupancy of the resource pool according to the resource opening amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined according to the historical cache resource amount and the cache space of the cache resource pool;
[0016] The cache resource amount is predicted according to the resource pre-occupancy amount, the historical cache resource amount and a preset cache update coefficient.
[0017] In one of the embodiments, determining the resource pre-occupancy amount of the resource pool according to the resource opening amount, the historical cache resource amount and the historical resource hit rate includes:
[0018] Determine a product value of the historical cache resource amount and the historical resource hit rate;
[0019] The difference between the resource activation amount and the product value is determined, and the product of the difference and the preset cache update coefficient is used as the resource pre-occupancy amount.
[0020] In one embodiment, the method further comprises:
[0021] Determine a correction period according to the resource opening amount, a preset correction period and a preset opening amount threshold;
[0022] For each correction cycle, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record;
[0023] The surplus of the resource pool is corrected according to the activation type of each resource, and the correction flag of the resource pool is updated.
[0024] In one of the embodiments, the underlying activation record includes a user identifier, an activation time, an activation specification, and a suffix identifier of each resource; and determining the activation type of each resource in the cache resource according to the underlying activation record includes:
[0025] For each of the resources, according to the user identifier, activation time, activation specification and suffix identifier of each of the resources, and the user identifier, activation time, activation specification and suffix identifier of the specific resource, determine the degree of characteristic difference between the resource and the specific resource;
[0026] If the characteristic difference degree is less than the preset degree threshold, the activation type is determined to be automatic activation; if the characteristic difference degree is not less than the preset degree threshold, the activation type is determined to be manual activation.
[0027] In one embodiment, the method further comprises:
[0028] If the resource occupation amount is greater than a preset occupation threshold, the resource pool is closed.
[0029] In a second aspect, the present application further provides a resource management device, including:
[0030] A first prediction module is used to predict the resource opening amount of the resource pool according to the historical resource opening amount of the resource pool and the historical resource point data at each preset management time interval;
[0031] A second prediction module, configured to predict the cache resource amount of the resource pool according to the resource opening amount of the resource pool and the historical cache resource amount;
[0032] The adjustment module is used to adjust the storage space of the resource pool according to the cache resource amount of the resource pool to adapt to the resource demand of the current storage system.
[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0034] Preset management duration at each interval, and predict resource opening quantity of the resource pool according to historical resource opening quantity of the resource pool and historical resource data of the resource pool;
[0035] Predicting the cache resource amount of the resource pool according to the resource opening amount and the historical cache resource amount of the resource pool;
[0036] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to adapt to the resource demand of the current storage system.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0038] Preset management duration at each interval, and predict resource opening quantity of the resource pool according to historical resource opening quantity of the resource pool and historical resource data of the resource pool;
[0039] Predicting the cache resource amount of the resource pool according to the resource opening amount and the historical cache resource amount of the resource pool;
[0040] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to adapt to the resource demand of the current storage system.
[0041] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0042] Preset management duration at each interval, and predict resource opening quantity of the resource pool according to historical resource opening quantity of the resource pool and historical resource data of the resource pool;
[0043] Predicting the cache resource amount of the resource pool according to the resource opening amount and the historical cache resource amount of the resource pool;
[0044] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to adapt to the resource demand of the current storage system.
[0045] The resource management method, device, computer equipment and storage medium are configured to preset management durations at intervals, and predict the resource activation amount of the resource pool based on the historical resource activation amount and historical resource data of the resource pool; predict the cache resource amount of the resource pool based on the resource activation amount and historical cache resource amount of the resource pool; and adjust the storage space of the resource pool based on the cache resource amount of the resource pool to adapt to the resource demand of the current storage system. The storage space of the resource pool is iteratively updated at intervals of preset management durations, which improves the matching degree between the cache resource amount and the current storage situation, thereby improving the resource utilization of the resource pool, and predicts the cache resource amount of the resource pool based on the historical resource activation amount, historical resource data and historical cache resource amount, thereby ensuring the accuracy of the cache resource amount, and adjusts the storage space of the resource pool based on the cache resource amount, further improving the resource utilization of the resource pool. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0047] FIG1 is an application environment diagram of a resource management method in one embodiment;
[0048] Figure 2 A schematic diagram of a resource management method in one embodiment;
[0049] Figure 3 is a flowchart of a resource management method in another embodiment;
[0050] Figure 4 is a flowchart of a resource management method in another embodiment;
[0051] Figure 5 is a flowchart of a resource management method in another embodiment;
[0052] Figure 6 is a flowchart of a resource management method in another embodiment;
[0053] Figure 7 is a flowchart of a resource management method in another embodiment;
[0054] Figure 8 is a flowchart of a resource management method in another embodiment;
[0055] Fig. 9 is a flowchart of a resource management method in another embodiment;
[0056] Fig.10 FIG. 4 is a structural block diagram of a resource management device in an embodiment. DETAILED DESCRIPTION
[0057] 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.
[0058] In cloud computing platforms, resource pre-occupancy refers to reserving a certain amount of computing resources for users to meet their specific needs. When users apply for cloud resources, if the resource pool is insufficient, it may trigger automatic order cancellation, giving users a bad user experience.
[0059] In the traditional method, you can pre-activate and shut down resources with various specifications, and then directly activate them when users apply. The activation speed is fast, but the activation is not flexible and cannot cover all specifications. In addition, the storage resources are too much and the resource utilization rate is low. Alternatively, you can pre-set a threshold. When the threshold is exceeded, the resources are automatically sold out, which provides a certain buffer for users to activate resources. However, since the threshold is often an empirical value, if the threshold is set too low, there is a risk of card blocking, and excessive resource occupation will generate systemic risks. If the threshold is too high, a large amount of resources need to be reserved, and the resource utilization rate is not high.
[0060] The resource management method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Wherein, the computer device can be a server, and its internal structure diagram can be shown in Figure 1. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Wherein, 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. Wherein, 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 resource management 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 resource management method is implemented.
[0061] Those skilled in the art will understand that the structure shown in FIG. 1 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0062] In one embodiment, Figure 2 As shown, a resource management method is provided, which is described by taking the method applied to the server in FIG1 as an example, including:
[0063] S201, predicting the resource activation amount of the resource pool according to the historical resource activation amount and historical resource data of the resource pool at each preset management time interval.
[0064] The preset management duration may be an empirical value, and the server may set the empirical value input to the server as the preset management duration; or the server may determine the preset management duration based on historical management data. The historical resource data may include the number of historical resource data points and the weight of each historical resource data point. The resource activation amount refers to the amount of resources used in the resource pool at the target time.
[0065] In an embodiment of the present application, the resource pool may include a cache resource pool and a common resource pool. Pre-occupied resources may be provided to users in the cache resource pool. When a user terminal initiates an activation request, activation resources may be provided to the user terminal in the common resource pool. When all resources in the common resource pool are occupied, the cache resource pool may be used to provide activation resources to the user terminal. A preset management duration is set for each interval to obtain historical resource data based on a time series, thereby predicting the resource activation amount of the resource pool at the next moment based on the number of historical resource data points, the weight of each historical resource data point, and the historical resource activation amount. Optionally, the time difference between the current moment and the next moment may be the same as the preset management duration.
[0066] Optionally, the resource opening amount of the resource pool may be predicted based on the number of historical resource data points, the weight of each historical resource data point, the historical resource opening amount, and a preset opening amount relationship. The preset opening amount relationship may be as shown in Formula 1:
[0067] (Formula 1)
[0068] Among them, D(t) represents the predicted resource activation amount at time t; β represents the prediction coefficient, which is used to predict the future resource activation amount based on historical data; D(ti) represents the resource activation amount at time ti in the historical resource data; wi represents the weight of the historical resource data point, and n represents the number of historical resource data points.
[0069] For example, if the historical resource data includes H = {D(−3), D(−2), D(−1)} = {100, 120, 150}, the prediction coefficient β = 0.3, the number of historical resource data points n = 3, and the weight distribution of the historical resource data points is w1 = 0.2, w2 = 0.3, w3 = 0.5, then according to Formula 1, D(t) = 144.3.
[0070] S202: predicting the cache resource amount of the resource pool according to the resource activation amount and the historical cache resource amount of the resource pool.
[0071] The historical cache resource amount indicates the historical capacity of the cache resource pool, and the cache resource amount is the predicted capacity of the cache resource pool at the target time.
[0072] In the embodiment of the present application, the cache resource amount corresponding to the cache resource pool in the resource pool at the target time is predicted based on the predicted resource activation amount and the historical cache resource amount of the resource pool.
[0073] Optionally, the cache resource amount of the resource pool can be predicted based on the resource activation amount, historical cache resource amount and cache resource relationship equation of the resource pool; or, a first corresponding relationship between the resource activation amount and the initial cache resource amount can be established in advance, so as to determine the initial cache resource amount of the resource pool based on the resource activation amount and the first corresponding relationship, and further, adjust the initial cache resource amount based on the historical cache resource amount to obtain the cache resource amount of the resource pool. Exemplarily, the historical cache resource amount and the initial cache resource amount can be substituted into a preset cache resource relationship equation to obtain the cache resource amount corresponding to the cache resource pool.
[0074] S203: adjusting the storage space of the resource pool according to the cache resource amount of the resource pool to meet the resource demand of the current storage system.
[0075] In an embodiment of the present application, storage space is allocated to the cache resource pool in the resource pool according to the cache resource amount of the resource pool. Further, other storage space in the resource pool except the cache resource pool is used as a common resource pool to provide resources for users.
[0076] Optionally, a storage space of the cache resource amount may be re-divided in the resource pool as the cache resource pool; or, the current cache resource pool may be adjusted according to the cache resource amount.
[0077] In the above resource management method, the management duration is preset at each interval, and the resource activation amount of the resource pool is predicted based on the historical resource activation amount and the historical resource data of the resource pool; the cache resource amount of the resource pool is predicted based on the resource activation amount and the historical cache resource amount of the resource pool; and the storage space of the resource pool is adjusted based on the cache resource amount of the resource pool to adapt to the resource demand of the current storage system. The storage space of the resource pool is iteratively updated at each interval of the preset management duration, which improves the matching degree between the cache resource amount and the current storage situation, thereby improving the resource utilization of the resource pool, and the cache resource amount of the resource pool is predicted based on the historical resource activation amount, historical resource data and historical cache resource amount, thereby ensuring the accuracy of the cache resource amount, and the storage space of the resource pool is adjusted based on the cache resource amount, further improving the resource utilization of the resource pool.
[0078] In one embodiment, an implementation of the above S203 is provided, such as Figure 3 As shown, the above “adjusting the storage space of the resource pool according to the cache resource amount of the resource pool” includes:
[0079] S301: If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, the capacity of the cache space is reduced to the cache resource amount.
[0080] In the embodiment of the present application, if the cache space of the cache resource pool in the resource pool is greater than the cache resource amount, it indicates that the user's demand for cache resources at the target time is less than the current cache space. If the current cache space is maintained, more space in the cache space will not be used at the target time, making the resource utilization rate of the resource pool low, so the capacity of the cache space is reduced to the cache resource amount. It should be noted that the target time is after the current time.
[0081] S302: If the cache space of the cache resource pool in the resource pool is less than the cache resource amount, the capacity of the cache space is expanded to the cache resource amount.
[0082] In an embodiment of the present application, if the cache space of the cache resource pool in the resource pool is less than the cache resource amount, it indicates that the user's demand for cache resources at the target time is greater than the current cache space. If the current cache space is maintained, the cache space may have insufficient capacity at the target time, resulting in data caching failure. Therefore, the capacity of the cache space is expanded to the cache resource amount.
[0083] S303: If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0084] In the embodiment of the present application, if the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, it indicates that the user's demand for cache resources at the target time is equal to the current cache space, and there is no need to adjust the cache space.
[0085] In the above application embodiment, the cache space of the current cache resource pool is adjusted according to the cache resource amount, thereby improving the adjustment efficiency, and there is no need to transfer the data stored in the current cache resource pool, thereby further improving the adjustment efficiency of the cache space of the cache resource pool.
[0086] In one embodiment, an implementation of the above S202 is provided, such as Figure 4 As shown, the above “predicting the cache resource amount of the resource pool based on the resource opening amount and the historical cache resource amount of the resource pool” includes:
[0087] S401, determining the resource pre-occupancy of the resource pool according to the resource opening quantity, the historical cache resource quantity and the historical resource hit rate; the historical resource hit rate is determined according to the historical cache resource quantity and the cache space of the cache resource pool.
[0088] In an embodiment of the present application, the historical resource hit rate is determined according to the historical cache resource amount, the cache space of the cache resource pool and a preset hit rate relationship. Optionally, the preset hit rate relationship can be shown as Formula 2:
[0089] (Formula 2)
[0090] Among them, P(t) represents the cache hit rate at time t, C(t) represents the cache resource amount at time t, It is the maximum capacity limit of the cache, that is, the size of the cache pool.
[0091] For example, when C max =1000, C(t)=118.575, P(t)=0.118575.
[0092] In the embodiment of the present application, after determining the historical resource hit rate, the resource pre-occupancy amount can be determined according to the resource opening amount, the historical cache resource amount and the historical resource hit rate. Optionally, the resource opening amount, the historical cache resource amount and the historical resource hit rate can be substituted into the preset pre-occupancy amount relationship formula to obtain the resource pre-occupancy amount; or, the resource array corresponding to the resource pool can be generated according to the resource opening amount, the historical cache resource amount and the historical resource hit rate, and the corresponding relationship between the resource data and the resource pre-occupancy amount can be pre-stored in the server, so as to determine the resource pre-occupancy amount according to the resource array and the corresponding relationship.
[0093] S402: predicting the cache resource amount according to the resource pre-occupancy amount, the historical cache resource amount and the preset cache update coefficient.
[0094] In the embodiment of the present application, the cache resource amount is predicted based on the resource pre-occupancy amount, the historical cache resource amount, the preset cache update coefficient and the preset cache resource relationship. Optionally, the preset cache resource relationship can be shown as Formula 3:
[0095] (Formula 3)
[0096] Among them, C(t+1) is the predicted cache resource amount, C(t) is the historical cache resource amount, R(t) is the resource pre-occupancy amount, and α represents the cache update coefficient.
[0097] Exemplarily, when R(t)=37.15, C(t)=100, and α=0.5, the predicted cache resource amount C(t+1)=118.575 is determined.
[0098] In the above application embodiment, the historical resource hit rate is first determined, and then the resource pre-occupancy of the resource pool is determined based on the resource activation amount, the historical cache resource amount and the historical resource hit rate. Then, the cache resource amount is predicted based on the resource pre-occupancy, the historical cache resource amount and the preset cache update coefficient, so that the predicted cache resource amount is more reliable and accurate.
[0099] In one embodiment, an implementation of the above S401 is provided, such as Figure 5As shown, the above “determining the resource pre-occupancy of the resource pool according to the resource opening quantity, historical cache resource quantity and historical resource hit rate” includes:
[0100] S501, determine the product value of the historical cache resource amount and the historical resource hit rate.
[0101] In the embodiment of the present application, the historical cache resource amount can be expressed as C(t), the historical resource hit rate can be expressed as P(t), and the product value of the historical cache resource amount and the historical resource hit rate is expressed as C(t)·P(t).
[0102] Exemplarily, when C(t)=100 and P(t)=0.7, the product value of the historical cache resource amount and the historical resource hit rate is 70.
[0103] S502: Determine the difference between the resource activation amount and the product value, and use the product of the difference and a preset cache update coefficient as the resource pre-occupancy amount.
[0104] In the embodiment of the present application, the product value is expressed as C(t)·P(t), the resource activation amount can be expressed as D(t), and further, the resource reservation amount R(t) can be expressed as R(t)=α[D(t)-C(t)·P(t)].
[0105] For example, when the product of the historical cache resource amount and the historical resource hit rate is 70, D(t)=144.5, and the preset cache update coefficient is =0.5, the resource reservation is determined to be 37.15.
[0106] In the above application embodiment, the resource reservation amount of the resource pool is determined by step-by-step processing, which is not prone to errors and has simple logic, thereby improving the reliability and accuracy of the resource reservation amount.
[0107] In one embodiment, Figure 6 As shown, the resource management method further includes:
[0108] S204: Determine a correction period according to the resource activation amount, a preset correction period, and a preset activation amount threshold.
[0109] In an embodiment of the present application, resource activation of a resource pool generally includes a user side and an operation and maintenance side. The user side automatically activates resources through a resource management platform, and the operation and maintenance side manually activates resources by using an operation and maintenance tool to perform operation and maintenance operations on the resource pool and the host machine. For the automatic activation of resources on the user side, resources are centrally managed and controlled; for the manual activation on the operation and maintenance side, resources may also be changed to assist users or testers in solving problems in special scenarios, but the server may not be able to count the manually activated resources, thereby affecting the accuracy of the resource balance statistics of the resource pool. Therefore, a variable period automatic correction method is used to correct the balance, and the correction period is dynamically adjusted according to the amount of resources activated in the resource pool within a certain time range. The larger the amount of resource pool activation, the shorter the correction period, and the smaller the amount of resource pool activation, the longer the correction period. Optionally, the determination expression of the correction period can be shown as Formula 4:
[0110] (Formula 4)
[0111] Wherein, T is the correction period; K(t) represents the resource activation amount at time t; M is the maximum correction period; m is the minimum correction period; δ is the activation amount threshold, which is used to determine the adjustment range of the correction period, such as the number of resources activated per minute; θ is the adjustment coefficient, which is used to control the nonlinear relationship between the activation amount and the correction period; and b is the adjustment coefficient.
[0112] For example, if the maximum correction period M = 60 minutes, the minimum correction period m = 10 minutes, the opening amount threshold δ = 100, the adjustment coefficient θ = 50 minutes, and the nonlinear adjustment coefficient α = 0.5, then according to Formula 4, when the resource opening amount K(t) = 50, the correction period T will be close to the maximum value M. When the resource opening amount K(t) = 200, the correction period T will be significantly reduced and closer to the minimum value m.
[0113] S205: For each correction period, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record.
[0114] Among them, the activation types include automatic activation and manual activation.
[0115] In the embodiment of the present application, the activation type of each resource in the cache resource is determined according to the underlying activation record within the correction period, based on the duration corresponding to each interval correction period. Optionally, the degree of difference between the underlying activation record and the preset reference activation record can be determined first, and then whether the resource is an automatically activated resource can be determined according to the degree of difference and the preset difference threshold; or, the underlying activation record can also include an activation identifier, so that the activation identifier in the underlying activation record can be read, and the activation type of each resource in the cache resource can be determined according to the activation identifier.
[0116] S206: Correct the surplus of the resource pool according to the activation type of each resource, and update the correction flag of the resource pool.
[0117] The correction flag of the resource pool is used to indicate whether the resource pool is corrected in the current correction cycle.
[0118] In the embodiment of the present application, it is determined that the resource to be corrected is manually opened, and the total amount of resources corresponding to the resource to be corrected is further determined. According to the current resource margin of the resource pool and the total amount of resources corresponding to the resource to be corrected, the actual margin of the resource pool is determined. For example, the difference between the current resource margin of the resource pool and the total amount of resources corresponding to the resource to be corrected is used as the actual margin of the resource pool. At the same time, the correction flag of the resource pool is updated to corrected.
[0119] Optionally, the resource activation amount of the resource pool may be determined based on the actual remaining capacity of the resource pool and the total capacity of the storage space of the resource pool.
[0120] In the above application embodiment, a variable period automatic correction method is used to perform margin correction, thereby eliminating the impact of non-automatic resource activation under specific underlying circumstances and improving the accuracy of margin space and resource activation in the resource pool.
[0121] In one embodiment, an implementation of the above S205 is provided, where the underlying activation record includes the user ID, activation time, activation specification and suffix ID of each resource; Figure 7 As shown, the above “determining the activation type of each resource in the cache resource according to the underlying activation record” includes:
[0122] S601, for each resource, determine the degree of characteristic difference between each resource and a specific resource based on the user identifier, activation time, activation specification and suffix identifier of each resource, as well as the user identifier, activation time, activation specification and suffix identifier of the specific resource.
[0123] The specific resource may be a known automatically enabled resource.
[0124] In an embodiment of the present application, the expression for determining whether a resource is an automatically activated resource can be: d = sqrt((tag_userId - userId)² + (tag_time - time)² + (tag_spec - spec)² + (tag_suffix - suffix)²), wherein tag_userId identifies the user ID of a specific resource, tag_time indicates the activation time of a specific resource, tag_spec indicates the activation specification of a specific resource, tag_suffix indicates a specific suffix of a specific resource, userId indicates the user ID of the resource, time indicates the activation time of the resource, spec indicates the activation specification of the resource, suffix indicates the specific suffix of the resource, and d represents the degree of characteristic difference between specific resources and resources.
[0125] S602: If the characteristic difference degree is less than the preset degree threshold, determine the activation type as automatic activation; if the characteristic difference degree is not less than the preset degree threshold, determine the activation type as manual activation.
[0126] In an embodiment of the present application, if the feature difference degree is less than a preset degree threshold, then the difference between the resource and the specific resource is small, and it is determined that the activation type of the resource is the same as the activation type of the specific resource, which is automatic activation; if the feature difference degree is not less than the preset degree threshold, then the difference between the resource and the specific resource is large, and it is determined that the activation type of the resource is different from the activation type of the specific resource, which is manual activation.
[0127] In the above application embodiment, feature difference matching and secondary permission verification are used to distinguish non-automatic activation resources, thereby improving the accuracy of determining the activation type of each resource in the cache resources.
[0128] In one embodiment, Figure 8 As shown, the resource management method further includes:
[0129] S403: If the resource occupation amount is greater than a preset occupation threshold, the resource pool is closed.
[0130] In the embodiment of the present application, the server can determine the preset pre-occupancy threshold according to historical data. When the resource pre-occupancy amount is greater than the preset pre-occupancy threshold, the resource pool is closed, and the cloud platform notification mechanism is used to achieve one-click pool closure to prevent the opening or expansion card caused by over-opening. Optionally, the initial value of the pre-occupancy threshold is determined based on historical experience, such as the average opening amount, system reservation amount, expansion speed, etc.
[0131] Optionally, when the resource opening and expansion capacity exceeds a preset pre-occupancy threshold, the resource pool is closed, that is, when the used resources in the cache resource pool are greater than the preset pre-occupancy threshold, the resource pool is closed. For example, the pre-occupancy threshold P of the cloud resource pool is set tomax When the resource opening and expansion capacity exceeds 30%, the pool closure mechanism is triggered. The pool closure method uses API notification and callback-level message queue secondary confirmation to confirm the success of the pool closure. According to the received request, the message "The resource pool is sold out, please change the resource pool and try again" is returned, or the application or expansion button is grayed out in the interface displayed to the user, prompting the user to switch the resource pool and try again.
[0132] Optionally, before closing the resource pool, the correction flag of the scalable buffer pool is queried. If the correction flag is to be corrected, the above S204 to S206 are executed for automatic correction. If the resource pre-occupancy amount is greater than a preset pre-occupancy threshold, the resource pool is closed.
[0133] Optionally, a pool closing message may be sent to a third-party device, and a capacity expansion request may be sent to the third-party device.
[0134] In the above application embodiment, when the resource occupancy amount is greater than the preset occupancy threshold, the resource pool is closed, which can avoid the decline in user experience caused by the activation or expansion of the card due to over-opening of resources, and can provide timely warnings and initiate resource pool expansion.
[0135] In one embodiment, a complete resource management method is provided, such as Fig. 9 As shown, the above method includes:
[0136] S1, preset management duration for each interval, predicting the resource activation amount of the resource pool based on the historical resource activation amount and historical resource data of the resource pool.
[0137] S2, determining the product value of the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined according to the historical cache resource amount and the cache space of the cache resource pool.
[0138] S3, determining the difference between the resource opening amount and the product value, and taking the product of the difference and the preset cache update coefficient as the resource pre-occupancy amount.
[0139] S4, predicting the cache resource amount according to the resource pre-occupancy amount, the historical cache resource amount and the preset cache update coefficient.
[0140] S5, if the cache space of the cache resource pool in the resource pool is greater than the cache resource amount, the capacity of the cache space is reduced to the cache resource amount; if the cache space of the cache resource pool in the resource pool is less than the cache resource amount, the capacity of the cache space is expanded to the cache resource amount; if the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0141] S6, determining a correction period according to the resource activation amount, a preset correction period and a preset activation amount threshold.
[0142] S7, for each correction cycle and for each resource, determine the degree of characteristic difference between the resource and the specific resource based on the user identification, activation time, activation specification and suffix identification of each resource, as well as the user identification, activation time, activation specification and suffix identification of the specific resource.
[0143] S8, if the characteristic difference degree is less than the preset degree threshold, determine the activation type as automatic activation; if the characteristic difference degree is not less than the preset degree threshold, determine the activation type as manual activation.
[0144] S9, make a surplus correction to the resource pool according to the activation type of each resource, and update the correction flag of the resource pool.
[0145] S10: If the resource occupation amount is greater than a preset occupation threshold, the resource pool is closed.
[0146] In the above resource management method, the management duration is preset at each interval, and the resource activation amount of the resource pool is predicted based on the historical resource activation amount and the historical resource data of the resource pool; the cache resource amount of the resource pool is predicted based on the resource activation amount and the historical cache resource amount of the resource pool; and the storage space of the resource pool is adjusted based on the cache resource amount of the resource pool to adapt to the resource demand of the current storage system. The storage space of the resource pool is iteratively updated at each interval of the preset management duration, which improves the matching degree between the cache resource amount and the current storage situation, thereby improving the resource utilization of the resource pool, and the cache resource amount of the resource pool is predicted based on the historical resource activation amount, historical resource data and historical cache resource amount, thereby ensuring the accuracy of the cache resource amount, and the storage space of the resource pool is adjusted based on the cache resource amount, further improving the resource utilization of the resource pool.
[0147] 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.
[0148] Based on the same inventive concept, the embodiment of the present application also provides a resource management device for implementing the resource management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more resource management device embodiments provided below can refer to the limitations on the resource management method above, and will not be repeated here.
[0149] In one embodiment, Fig.10 As shown, a resource management device is provided, comprising: a first prediction module 10, a second prediction module 11 and an adjustment module 12, wherein:
[0150] The first prediction module 10 is used to predict the resource opening quantity of the resource pool according to the historical resource opening quantity and historical resource point data of the resource pool at each preset management time interval.
[0151] The second prediction module 11 is used to predict the cache resource amount of the resource pool according to the resource activation amount and the historical cache resource amount of the resource pool.
[0152] The adjustment module 12 is used to adjust the storage space of the resource pool according to the cache resource amount of the resource pool to adapt to the resource demand of the current storage system.
[0153] In one embodiment, the adjustment module 12 includes: a first adjustment unit, a second adjustment unit and a third adjustment unit, wherein:
[0154] The first adjustment unit is configured to reduce the capacity of the cache space to the cache resource amount if the cache space of the cache resource pool in the resource pool is larger than the cache resource amount.
[0155] The second adjustment unit is configured to expand the capacity of the cache space to the cache resource amount if the cache space of the cache resource pool in the resource pool is less than the cache resource amount.
[0156] The third adjustment unit is configured to maintain a current capacity of the cache space if the cache space of the cache resource pool in the resource pool is equal to the cache resource amount.
[0157] In one embodiment, the second prediction module 11 includes: a first determination unit and a prediction unit, wherein:
[0158] The first determination unit is used to determine the resource pre-occupancy amount of the resource pool according to the resource activation amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined according to the historical cache resource amount and the cache space of the cache resource pool.
[0159] The prediction unit is used to predict the cache resource amount according to the resource pre-occupancy amount, the historical cache resource amount and the preset cache update coefficient.
[0160] In one embodiment, the first determination unit is specifically used to determine the product value of the historical cache resource amount and the historical resource hit rate; determine the difference between the resource activation amount and the product value, and use the product of the difference and the preset cache update coefficient as the resource pre-occupancy amount.
[0161] In one embodiment, the resource management device further includes: a first determination module, a second determination module and an update module, wherein:
[0162] The first determination module is used to determine the correction period according to the resource activation amount, the preset correction period and the preset activation amount threshold.
[0163] The second determination module is used to read the underlying activation record of the cache resource for each correction period, and determine the activation type of each resource in the cache resource according to the underlying activation record.
[0164] The update module is used to make surplus corrections to the resource pool according to the activation type of each resource and to update the correction flag of the resource pool.
[0165] In one embodiment, the second determination module includes: a second determination unit and a third determination unit, wherein:
[0166] The second determination unit is used to determine the degree of characteristic difference between resources and specific resources according to the user identification, activation time, activation specification and suffix identification of each resource and the user identification, activation time, activation specification and suffix identification of the specific resource.
[0167] The third determination unit is used to determine the activation type as automatic activation if the feature difference degree is less than a preset degree threshold; if the feature difference degree is not less than the preset degree threshold, determine the activation type as manual activation.
[0168] In one embodiment, the first determining unit is further configured to close the resource pool if the resource occupation amount is greater than a preset occupation threshold.
[0169] Each module in the resource management 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 operations corresponding to each module.
[0170] In one 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:
[0171] The management duration is preset for each interval, and the resource opening quantity of the resource pool is predicted based on the historical resource opening quantity and historical resource data of the resource pool;
[0172] Predict the cache resource volume of the resource pool based on the resource opening volume and historical cache resource volume of the resource pool;
[0173] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to meet the resource requirements of the current storage system.
[0174] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0175] If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, the capacity of the cache space is reduced to the cache resource amount;
[0176] If the cache space of the cache resource pool in the resource pool is less than the cache resource amount, the capacity of the cache space is expanded to the cache resource amount;
[0177] If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0178] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0179] The resource pre-occupancy of the resource pool is determined based on the resource opening amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined based on the historical cache resource amount and the cache space of the cache resource pool;
[0180] Predict the cache resource amount based on the resource pre-occupancy, historical cache resource amount and preset cache update coefficient.
[0181] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0182] Determine the product value of the historical cache resource amount and the historical resource hit rate;
[0183] The difference between the resource opening amount and the product value is determined, and the product of the difference and the preset cache update coefficient is used as the resource pre-occupancy amount.
[0184] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0185] Determine the correction period according to the resource opening amount, the preset correction period and the preset opening amount threshold;
[0186] For each correction cycle, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record;
[0187] The surplus of the resource pool is corrected according to the activation type of each resource, and the correction flag of the resource pool is updated.
[0188] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0189] For each resource, determine the degree of characteristic difference between the resource and the specific resource based on the user identifier, activation time, activation specification and suffix identifier of each resource, and the user identifier, activation time, activation specification and suffix identifier of the specific resource;
[0190] If the feature difference degree is less than the preset degree threshold, the activation type is determined to be automatic activation; if the feature difference degree is not less than the preset degree threshold, the activation type is determined to be manual activation.
[0191] In one embodiment, when the processor executes the computer program, the following steps are also implemented:
[0192] If the resource occupancy amount is greater than the preset occupancy threshold, the resource pool is closed.
[0193] 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:
[0194] The management duration is preset for each interval, and the resource opening quantity of the resource pool is predicted based on the historical resource opening quantity and historical resource data of the resource pool;
[0195] Predict the cache resource volume of the resource pool based on the resource opening volume and historical cache resource volume of the resource pool;
[0196] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to meet the resource requirements of the current storage system.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, the capacity of the cache space is reduced to the cache resource amount;
[0199] If the cache space of the cache resource pool in the resource pool is less than the cache resource amount, the capacity of the cache space is expanded to the cache resource amount;
[0200] If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0201] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0202] The resource pre-occupancy of the resource pool is determined based on the resource opening amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined based on the historical cache resource amount and the cache space of the cache resource pool;
[0203] Predict the cache resource amount based on the resource pre-occupancy, historical cache resource amount and preset cache update coefficient.
[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0205] Determine the product value of the historical cache resource amount and the historical resource hit rate;
[0206] The difference between the resource opening amount and the product value is determined, and the product of the difference and the preset cache update coefficient is used as the resource pre-occupancy amount.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] Determine the correction period according to the resource opening amount, the preset correction period and the preset opening amount threshold;
[0209] For each correction cycle, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record;
[0210] The surplus of the resource pool is corrected according to the activation type of each resource, and the correction flag of the resource pool is updated.
[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0212] For each resource, determine the degree of characteristic difference between the resource and the specific resource based on the user identifier, activation time, activation specification and suffix identifier of each resource, and the user identifier, activation time, activation specification and suffix identifier of the specific resource;
[0213] If the feature difference degree is less than the preset degree threshold, the activation type is determined to be automatic activation; if the feature difference degree is not less than the preset degree threshold, the activation type is determined to be manual activation.
[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0215] If the resource occupancy amount is greater than the preset occupancy threshold, the resource pool is closed.
[0216] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0217] The management duration is preset for each interval, and the resource opening quantity of the resource pool is predicted based on the historical resource opening quantity and historical resource data of the resource pool;
[0218] Predict the cache resource volume of the resource pool based on the resource opening volume and historical cache resource volume of the resource pool;
[0219] According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to meet the resource requirements of the current storage system.
[0220] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0221] If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, the capacity of the cache space is reduced to the cache resource amount;
[0222] If the cache space of the cache resource pool in the resource pool is less than the cache resource amount, the capacity of the cache space is expanded to the cache resource amount;
[0223] If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
[0224] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0225] The resource pre-occupancy of the resource pool is determined based on the resource opening amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined based on the historical cache resource amount and the cache space of the cache resource pool;
[0226] Predict the cache resource amount based on the resource pre-occupancy, historical cache resource amount and preset cache update coefficient.
[0227] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0228] Determine the product value of the historical cache resource amount and the historical resource hit rate;
[0229] The difference between the resource opening amount and the product value is determined, and the product of the difference and the preset cache update coefficient is used as the resource pre-occupancy amount.
[0230] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0231] Determine the correction period according to the resource opening amount, the preset correction period and the preset opening amount threshold;
[0232] For each correction cycle, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record;
[0233] The surplus of the resource pool is corrected according to the activation type of each resource, and the correction flag of the resource pool is updated.
[0234] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0235] For each resource, determine the degree of characteristic difference between the resource and the specific resource based on the user identifier, activation time, activation specification and suffix identifier of each resource, and the user identifier, activation time, activation specification and suffix identifier of the specific resource;
[0236] If the feature difference degree is less than the preset degree threshold, the activation type is determined to be automatic activation; if the feature difference degree is not less than the preset degree threshold, the activation type is determined to be manual activation.
[0237] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0238] If the resource occupancy amount is greater than the preset occupancy threshold, the resource pool is closed.
[0239] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 the present application can include at least one of non-volatile memory 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), magnetic 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, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0240] The technical features of the above embodiments may be combined arbitrarily. 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 application.
[0241] 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 resource management method, characterized in that: The method comprises: Preset management duration at each interval, and predict resource opening quantity of the resource pool according to historical resource opening quantity of the resource pool and historical resource data of the resource pool; Predicting the cache resource amount of the resource pool according to the resource opening amount and the historical cache resource amount of the resource pool; According to the cache resource amount of the resource pool, the storage space of the resource pool is adjusted to adapt to the resource demand of the current storage system.
2. The method according to claim 1, characterized in that The adjusting the storage space of the resource pool according to the cache resource amount of the resource pool includes: If the cache space of the cache resource pool in the resource pool is larger than the cache resource amount, reducing the capacity of the cache space to the cache resource amount; If the cache space of the cache resource pool in the resource pool is smaller than the cache resource amount, expanding the capacity of the cache space to the cache resource amount; If the cache space of the cache resource pool in the resource pool is equal to the cache resource amount, the current capacity of the cache space is maintained.
3. The method according to claim 1, characterized in that The predicting the cache resource amount of the resource pool according to the resource opening amount of the resource pool and the historical cache resource amount includes: Determine the resource pre-occupancy of the resource pool according to the resource opening amount, the historical cache resource amount and the historical resource hit rate; the historical resource hit rate is determined according to the historical cache resource amount and the cache space of the cache resource pool; The cache resource amount is predicted according to the resource pre-occupancy amount, the historical cache resource amount and a preset cache update coefficient.
4. The method according to claim 3, characterized in that The determining the resource pre-occupancy amount of the resource pool according to the resource opening amount, the historical cache resource amount and the historical resource hit rate includes: Determine a product value of the historical cache resource amount and the historical resource hit rate; The difference between the resource activation amount and the product value is determined, and the product of the difference and the preset cache update coefficient is used as the resource pre-occupancy amount.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Determine a correction period according to the resource opening amount, a preset correction period and a preset opening amount threshold; For each correction cycle, read the underlying activation record of the cache resource, and determine the activation type of each resource in the cache resource according to the underlying activation record; The surplus of the resource pool is corrected according to the activation type of each resource, and the correction flag of the resource pool is updated.
6. The method according to claim 5, characterized in that The bottom layer activation record includes a user identifier, an activation time, an activation specification, and a suffix identifier of each resource; and determining the activation type of each resource in the cache resource according to the bottom layer activation record includes: For each of the resources, according to the user identifier, activation time, activation specification and suffix identifier of each of the resources, and the user identifier, activation time, activation specification and suffix identifier of the specific resource, determine the degree of characteristic difference between the resource and the specific resource; If the characteristic difference degree is less than the preset degree threshold, the activation type is determined to be automatic activation; if the characteristic difference degree is not less than the preset degree threshold, the activation type is determined to be manual activation.
7. The method according to claim 3, characterized in that The method further comprises: If the resource occupation amount is greater than a preset occupation threshold, the resource pool is closed.
8. A resource management device, characterized in that: The device comprises: A first prediction module is used to predict the resource opening amount of the resource pool according to the historical resource opening amount of the resource pool and the historical resource point data at each preset management time interval; A second prediction module, configured to predict the cache resource amount of the resource pool according to the resource opening amount of the resource pool and the historical cache resource amount; The adjustment module is used to adjust the storage space of the resource pool according to the cache resource amount of the resource pool to adapt to the resource demand of the current storage system.
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.
