CN117827453A - Storage resource ordering method, device, equipment and storage medium - Google Patents

Storage resource ordering method, device, equipment and storage medium Download PDF

Info

Publication number
CN117827453A
CN117827453A CN202311869484.9A CN202311869484A CN117827453A CN 117827453 A CN117827453 A CN 117827453A CN 202311869484 A CN202311869484 A CN 202311869484A CN 117827453 A CN117827453 A CN 117827453A
Authority
CN
China
Prior art keywords
resource
ordering
storage
item
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311869484.9A
Other languages
Chinese (zh)
Inventor
胡玉晟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baiyu Information Technology Shanghai Co ltd
Original Assignee
Baiyu Information Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baiyu Information Technology Shanghai Co ltd filed Critical Baiyu Information Technology Shanghai Co ltd
Priority to CN202311869484.9A priority Critical patent/CN117827453A/en
Publication of CN117827453A publication Critical patent/CN117827453A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a method, a device, equipment and a storage medium for ordering storage resources, wherein the method comprises the steps of responding to a control instruction of a user for the storage resources, displaying a preset ordering template, responding to ordering operation performed by the user based on the preset ordering template, and generating an ordering order; and distributing storage resources for each resource occupation item according to the ordering order. According to the method and the device, the ordering template is preset, and the storage resource quota is configured for each time period through the preset ordering template, so that resource waste caused by different storage resources required by different time periods of the resource occupation items can be avoided, and on the other hand, the storage resource quota of the important resource occupation item in a specific time period can be ensured through dynamic equipment of the storage resource quota of each resource occupation item, and therefore guarantee can be provided for ensuring the important resource occupation item.

Description

Storage resource ordering method, device, equipment and storage medium
Technical Field
The present invention relates to the technical field of distributed storage systems, and in particular, to a method, an apparatus, a device, and a storage medium for ordering storage resources.
Background
Along with the rapid development of information technology, the improvement of living standard of people is accompanied by the continuous increase of demands for information quantity, the data quantity presents an explosive type growth trend, the data storage demands are continuously expanded, and the storage service also becomes a service demand in cloud computing. For cloud storage services, the value of data is often higher than that of hardware devices, so in order to ensure the availability and reliability of data, the distributed cloud storage needs to have the characteristics of high performance, high reliability and the like.
Currently, in the case of a distributed storage system, it is common to allocate fixed storage resources for services by using the maximum amount of storage resources required for each service. However, in practical applications, a situation that storage resources are idle often occurs, which results in a problem that the storage resource utilization rate is low.
There is thus a need for improvements and improvements in the art.
Disclosure of Invention
The technical problem to be solved by the application is to provide a method, a device, equipment and a storage medium for ordering storage resources aiming at the defects of the prior art.
In order to solve the above technical problems, a first aspect of the present application provides a method for ordering a storage resource, where the method for ordering a storage resource specifically includes:
responding to a control instruction of a user aiming at storage resources, and displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
responding to the order operation of the user based on the preset order template, and generating an order;
and distributing storage resources for each resource occupation item according to the ordering order.
The method for ordering the storage resource, wherein the preset ordering template is generated based on priori knowledge, and the generating process of the preset ordering template specifically comprises the following steps:
pre-constructing an initial subscription template, wherein the initial subscription template comprises a plurality of subscription items, each subscription item in the plurality of subscription items corresponds to a time period, and each subscription item comprises a storage resource quota interval of at least one resource occupation item;
acquiring a resource quota sequence of each resource occupation item in at least one time period, wherein the time period is formed by a time period corresponding to each ordering item;
for each time period, reading the actual resource quota corresponding to each resource occupation item in the resource quota sequence corresponding to each resource occupation item;
according to the actual resource quota, determining an actual resource quota interval of each resource occupation item;
and configuring the actual resource quota interval of each resource occupation item and the storage resource quota interval of each resource occupation item to obtain a preset ordering template.
The method for ordering storage resources, wherein the acquiring the resource quota sequence of each resource occupation item in at least one time period specifically comprises the following steps:
triggering a preset ordering template generation instruction when each time period is terminated;
responding to the generating instruction, acquiring a current actual resource quota sequence of a current time period, which is closest to the response time, of each resource occupation item, and acquiring a first precursor actual resource quota sequence corresponding to a time period to be configured and a second precursor actual resource quota sequence corresponding to the current time period according to a preset time interval, so as to acquire the resource quota sequence corresponding to each resource occupation item.
The method for ordering the storage resources, wherein the allocating the storage resources for each resource occupation according to the ordering order specifically comprises:
acquiring resource pool information of each resource pool in the distributed system and user information corresponding to the order;
selecting a target resource pool corresponding to the order based on the resource pool information and the user information;
and distributing a resource pool for each resource occupation item through the target resource pool.
The method for ordering storage resources, wherein selecting the target resource pool corresponding to the ordering order based on the resource pool information and the user information specifically includes:
selecting a candidate resource pool set according to the user information;
and selecting target resources corresponding to the order from the candidate resource pool according to the use records and the use cost in the resource pool information.
The method for ordering storage resources, wherein the selecting the candidate resource pool set according to the user information specifically comprises:
determining the importance degree of the user according to the user information;
when the importance degree of the user is greater than a preset degree threshold, selecting a resource pool with the residual capacity and the response speed of the storage pool meeting preset conditions so as to obtain a candidate resource pool set;
and when the importance degree of the user is smaller than or equal to a preset degree threshold value, selecting all the resource pools with the residual capacity to obtain a candidate resource pool set.
The method for ordering storage resources, wherein the method further comprises the following steps:
monitoring a setting operation of a storage resource quota based on a user aiming at a resource occupation item in real time, responding to the setting operation, updating the storage resource quota corresponding to the resource occupation item, and distributing storage resources for the resource occupation item according to the updated storage resource quota.
The second aspect of the present application provides a device for ordering storage resources, where the device for ordering storage resources specifically includes:
the display module is used for responding to a control instruction of a user aiming at storage resources and displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
the generation module is used for responding to the ordering operation of the user based on the preset ordering template and generating an ordering order;
and the distribution module is used for distributing storage resources for each resource occupation item according to the ordering order.
A third aspect of the present application provides a computer readable storage medium storing one or more programs executable by one or more processors to implement steps in a method of ordering storage resources as described in any of the above.
A fourth aspect of the present application provides a terminal device, including: a processor and a memory;
the memory has stored thereon a computer readable program executable by the processor;
the processor, when executing the computer readable program, implements the steps in a method of ordering storage resources as described in any of the above.
The beneficial effects are that: compared with the prior art, the application provides a method, a device, equipment and a storage medium for ordering storage resources, wherein the method comprises the steps of responding to a control instruction of a user for the storage resources, displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item; responding to the order operation of the user based on the preset order template, and generating an order; and distributing storage resources for each resource occupation item according to the ordering order. According to the method and the device, the ordering template is preset, and the storage resource quota is configured for each time period through the preset ordering template, so that resource waste caused by different storage resources required by different time periods of the resource occupation items can be avoided, and on the other hand, the storage resource quota of the important resource occupation item in a specific time period can be ensured through dynamic equipment of the storage resource quota of each resource occupation item, and therefore guarantee can be provided for ensuring the important resource occupation item.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for ordering storage resources according to an embodiment of the present application.
Fig. 2 is a flowchart of step S10 of a method for ordering storage resources according to an embodiment of the present application.
Fig. 3 is a flowchart of step S30 of a method for ordering storage resources according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a storage resource ordering device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method, a device, equipment and a storage medium for ordering storage resources, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below by referring to the drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiment of the present application.
According to research, with the rapid development of information technology, the improvement of living standard of people is accompanied with the continuous increase of the demand for information quantity, the data quantity presents an explosive growth trend, the data storage demand is continuously expanded, and the storage service also becomes a service demand in cloud computing. For cloud storage service, the value of data is often higher than the value of hardware equipment, so in order to ensure the availability and reliability of data, the distributed cloud storage needs to have the characteristics of high performance, high reliability and the like.
Currently, in the case of a distributed storage system, it is common to allocate fixed storage resources for services by using the maximum amount of storage resources required for each service. However, in practical applications, a situation that storage resources are idle often occurs, which results in a problem that the storage resource utilization rate is low.
In order to solve the above problem, in an embodiment of the present application, a preset subscription template is displayed in response to a control instruction of a user for a storage resource, where the preset subscription template includes a plurality of subscription items, each subscription item in the plurality of subscription items corresponds to a period of time, and each subscription item includes a storage resource quota interval of at least one resource occupation item; responding to the order operation of the user based on the preset order template, and generating an order; and distributing storage resources for each resource occupation item according to the ordering order. According to the method and the device, the ordering template is preset, and the storage resource quota is configured for each time period through the preset ordering template, so that resource waste caused by different storage resources required by different time periods of the resource occupation items can be avoided, and on the other hand, the storage resource quota of the important resource occupation item in a specific time period can be ensured through dynamic equipment of the storage resource quota of each resource occupation item, and therefore guarantee can be provided for ensuring the important resource occupation item.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The present embodiment provides a method for ordering storage resources, as shown in fig. 1, where the method includes:
s10, responding to a control instruction of a user for the storage resource, and displaying a preset ordering template.
Specifically, the preset subscription template is pre-established and is used for configuring storage resource quota corresponding to each resource occupation item. That is, the user may subscribe to the storage resources for each resource occupation item by presetting a subscription template, so that the server allocates the storage resources according to the user subscribing to the storage resources for each resource occupation item. The preset subscription template may include a plurality of subscription items, each subscription item corresponding to a time period, and the time periods corresponding to all the subscription items constitute a time period. That is, when the preset subscription template is generated, a preset time period may be acquired first, then divided into a plurality of time periods, and finally one subscription item is created for each time period.
In one implementation manner of the embodiment of the present application, time periods corresponding to the subscription items are different from each other, and when the subscription items are arranged according to a time sequence corresponding to the time periods corresponding to the subscription items, time periods corresponding to any two adjacent subscription items are adjacent, and an end time of a previous time period is a start time of a next time period. This allows the resource placements to be allocated to reasonable storage resources at each time. Of course, in practical application, after ordering items are arranged according to the time sequence corresponding to the corresponding time periods, two ordering items can exist, and an interval time exists between the two time periods corresponding to the two ordering items, so that the time required by a user for configuring storage resources can be reduced, and the rationality of storage resource allocation of the preset time period can be ensured.
Further, each subscription item includes a storage resource quota interval of at least one resource occupation item, the storage resource quota interval can be displayed in a sliding interval form, and a user can configure a resource quota for the resource occupation item by sliding on the sliding interval, so that the configuration process of each resource occupation item is simplified. In addition, in practical application, a configuration key can be arranged on a preset ordering template, and when the configuration key is triggered, resource quota is automatically configured for each resource occupation item in each ordering item; and then receiving the correction operation of the user on the resource quota of the resource occupation item, and correcting the resource quota according to the correction operation, so that the user can configure the resource quota for each resource occupation item in a one-key triggering mode, and convenience is brought to the use of the user.
In addition, it should be noted that, since the total number of resources subscribed to by each user is known, when configuring the resource quota for the resource occupation item, for each period of time, it is detected whether the total number of resource quota of all the resource occupation items is greater than the total number of subscribed resources; when the total number of the resources ordered is larger than the total number of the resources ordered, the user is prompted to modify the resource quota of the resource occupation item. Of course, in practical application, in order to avoid a situation that the total number of resources ordered is greater, when a resource quota interval is configured for each resource occupation item, the sum of the upper limit values of the resource quota intervals may be controlled to be smaller than the total number of resources ordered by the user, and so on. In the embodiment of the application, the sum of the upper limit values of the resource quota intervals can be determined according to the total number of the resources subscribed by the user, and the upper limit value of each resource quota interval is larger than the total number of the resources subscribed by the user, so that the utilization rate of storage resources can be ensured. Therefore, in a time period, the upper limit value of the resource quota interval required by all the resource occupation items generally does not exist, so that part of the resource occupation items are not configured to the upper limit value of the resource allocation amount, the upper limit value of each resource quota interval is larger than the total number of resources subscribed by the user, the total number of used storage resources is more approximate to the total number of resources subscribed by the user, and the resources subscribed by the user can be utilized maximally.
In some implementations, the preset subscription template is generated based on priori knowledge, as shown in fig. 2, and the generation process of the preset subscription template specifically includes:
s11, an initial ordering template is pre-constructed, wherein the initial ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
s12, acquiring a resource quota sequence of each resource occupation item in at least one time period, wherein the time period is formed by a time period corresponding to each ordering item;
s13, for each time period, reading the actual resource quota corresponding to each resource occupation item in the resource quota sequence corresponding to each resource occupation item;
s14, determining an actual resource quota interval of each resource occupation item according to the actual resource quota;
s15, configuring an actual resource quota interval of each resource occupation item and a storage resource quota interval of each resource occupation item to obtain a preset ordering template.
Specifically, the initial subscription template is pre-constructed, and the template form of the initial subscription template is the same as that of the preset subscription template, which will not be described herein. The difference between the two is that the storage resource quota interval corresponding to each resource occupation item in each subscription item in the initial subscription template is empty, and the storage resource quota interval corresponding to each resource occupation item in the preset subscription template is configured. The time period is formed by the time periods corresponding to all the subscription items in the initial subscription template, that is, the time period is equal to the time period from the earliest time in the time periods corresponding to all the subscription items to the latest time in the time periods corresponding to all the subscription items. For example, the initial subscription template includes subscription item A, subscription item B, and subscription item C, subscription item A corresponding to points 0-8, subscription item B corresponding to points 9-18, and subscription item C corresponding to points 19-24, then the time period is 24 hours.
Further, the at least one time period may be one time period or may be a plurality of time periods, wherein when the at least one time period is one time period, the time period is a current time period nearest to the generation time of the preset subscription template, and when the at least one time period is a plurality of time periods, the plurality of time periods include a current time period nearest to the generation time of the preset subscription template, wherein the remaining time period may be a continuous time period formed with the current time period or may be a plurality of time periods discontinuous with the current time period.
Based on the above, the acquiring the resource quota sequence of each resource occupation item in at least one time period specifically includes:
triggering a preset ordering template generation instruction when each time period is terminated;
responding to the generating instruction, acquiring a current actual resource quota sequence of a current time period, which is closest to the response time, of each resource occupation item, and acquiring a first precursor actual resource quota sequence corresponding to a time period to be configured and a second precursor actual resource quota sequence corresponding to the current time period according to a preset time interval, so as to acquire the resource quota sequence corresponding to each resource occupation item.
Specifically, the preset time interval is preset, and the preset time interval is a multiple of the time period, for example, the preset time interval is 7 times, 30 times, or the like of the time period. In the embodiment of the present application, the time is one day around, and the preset time interval is 7 days, and then the obtained resource allocation sequence includes a previous day of the date to be allocated, a first previous day 7 days apart from the date to be allocated, and a second previous day 7 days apart from the previous day. For example, the date to be configured is monday, then the plurality of time periods includes at least a last sunday, a last monday, and a last sunday. According to the method and the device for configuring the resource quota interval for the to-be-configured date, the first leading day of a week is acquired, the contemporaneous actual resource quota can be acquired, on one hand, the real-time actual resource quota can be acquired through acquiring the previous day and the second leading day, and on the other hand, the variation of the contemporaneous actual resource quota can be acquired, so that the resource quota interval for the to-be-configured date can be more accurately configured.
The obtained resource allocation sequence comprises a plurality of actual resource quotas, wherein the actual resource quotas are in one-to-one correspondence with the subscription items. Therefore, after at least one resource allocation sequence is acquired for each time period, one actual resource quota can be selected from each resource allocation sequence to obtain at least one actual resource quota corresponding to the time period, the at least one actual resource quota is weighted to obtain a target resource quota, the target resource quota is increased according to a preset adjustment proportion to obtain an upper limit value, and the target resource quota is decreased according to the preset adjustment proportion to obtain a lower limit value, so that an actual resource quota interval is obtained.
In this embodiment of the present application, the resource allocation sequence includes a current actual resource quota sequence of a current time period, a first preamble actual resource quota sequence, and a second preamble actual resource quota sequence, and a determining process of an actual resource quota interval may be: for each resource occupation item in each time period, determining a resource quota change rate according to the current actual resource quota in the current actual resource quota sequence and the second actual resource quota in the second precursor actual resource quota sequence; and determining a target resource quota according to the first actual resource quota and the resource quota change rate in the first preamble actual resource quota sequence, and finally, adjusting the target resource quota to be high according to a preset adjustment ratio to obtain an upper limit value, and adjusting the target resource quota to be low according to the preset adjustment ratio to obtain a lower limit value so as to obtain an actual resource quota interval. Therefore, the prior knowledge of the resource quota can be fully utilized to configure the resource quota interval of each resource occupation item, and the accuracy of the resource quota interval is improved.
S20, responding to the order operation of the user based on the preset order template, and generating an order.
Specifically, the subscription operation is an operation performed by a user on a preset subscription template, and is used for setting resource quota of each resource occupation item in each subscription item, wherein the user can set the resource quota of all the resource occupation items in a one-key configuration mode, can set the resource quota of the resource occupation item by dragging a resource bar on a resource quota interval of each resource occupation item, and can also set the resource quota of the resource occupation item by selecting the resource occupation item and then inputting a resource quota corresponding to the resource occupation item. In addition, after receiving the order operation, the user responds to the order operation based on the preset order template after a preset time interval, so that the operation time can be reserved for the user, and the problem of resource error caused by responding to the order operation under the condition that the user does not complete the order operation is avoided.
S30, distributing storage resources for each resource occupation item according to the order.
Specifically, a subscription order is formed based on a subscription operation for applying for storage resources to the distributed storage system. That is, the client applies for storage resources to the distributed storage system in order formation, the client forms an order by presetting an order template, and then sends the order to the distributed storage system, so that the distributed storage system allocates storage resources for each resource occupation item in the client according to the order. Therefore, the management of the distributed storage system to each client can be facilitated, the resource allocation efficiency of the distributed storage system can be improved, and storage resources can be accurately allocated to each client.
In some implementations, as shown in fig. 3, the allocating storage resources for each resource occupation according to the subscription order specifically includes:
s31, acquiring resource pool information of each resource pool in the distributed system and user information corresponding to the order;
s32, selecting a target resource pool corresponding to the order based on the resource pool information and the user information;
s33, distributing a resource pool for each resource occupation item through the target resource pool.
Specifically, the resource pool information is used to reflect the current state of the resource pool, wherein the resource pool information may include a usage record, a usage cost, a remaining capacity, and the like. The user information is used to reflect the importance of the user, wherein the user information may include a user level, etc. In addition, the importance degree of each resource occupation item in each time period can be obtained, wherein the importance degree of each resource occupation item in each time period can be contained in a subscription order or can be contained in user information.
After the resource pool information and the user information are acquired, a scheduling policy can be determined according to the resource pool information and the user information, and then a target resource pool corresponding to the order is selected according to the scheduling policy, wherein the scheduling policy can be included in a preset scheduling policy set, and after the resource pool information and the user information are acquired, the scheduling policy corresponding to the resource pool information and the user information can be selected in the preset scheduling policy set according to the resource pool information and the user information. In addition, in practical application, a scheduling policy may be automatically generated according to the resource pool information and the user information, and then a target resource pool corresponding to the order may be selected according to the scheduling policy.
In an implementation manner of the embodiment of the present application, the selecting, based on the resource pool information and the user information, the target resource pool corresponding to the order specifically includes:
selecting a candidate resource pool set according to the user information;
and selecting target resources corresponding to the order from the candidate resource pool according to the use records and the use cost in the resource pool information.
Specifically, the candidate resource pool set includes a plurality of candidate resource pools, and each candidate resource pool in the plurality of candidate resource pools satisfies a user-specified resource pool corresponding to the user information, or may be a resource pool satisfying user requirements in all the resource pools. In the embodiment of the application, each candidate resource pool in the plurality of candidate resource pools can be any resource pool in all resource pools in the distributed storage system, and the user requirements corresponding to the user information are met. For example, the user information includes user importance, or user specified resource pool identification, or user demand impact speed, etc.
In one implementation manner, the selecting the candidate resource pool set according to the user information specifically includes:
determining the importance degree of the user according to the user information;
when the importance degree of the user is greater than a preset degree threshold, selecting a resource pool with the residual capacity and the response speed of the storage pool meeting preset conditions so as to obtain a candidate resource pool set;
and when the importance degree of the user is smaller than or equal to a preset degree threshold value, selecting all the resource pools with the residual capacity to obtain a candidate resource pool set.
Specifically, the user importance level may be reflected by the user level, that is, the user level is determined according to the user information to obtain the user importance level. After the importance degree of the user is obtained, the importance degree of the user is compared with a preset degree threshold, and when the importance degree of the user is larger than the preset degree threshold, a resource pool with the residual capacity larger than the preset capacity threshold and the response speed of the storage pool larger than the preset speed threshold is selected to obtain a candidate resource pool set. Otherwise, all resource pools with residual capacity can be used as candidate resource pools.
Further, after the candidate resource pool sets are acquired, the use record and the use cost of each candidate resource pool set can be read, and then the target resource pool is determined according to the use record and the use cost, wherein the target resource pool can be one or a plurality of target resource pools. Specifically, the usage record may include a last usage time and a total usage time, and when determining the target resource pool according to the usage record and the usage cost, the reference resource pool with a small total usage time and an early last usage time is selected according to the last usage time and the total usage time, and then the reference resource pool with a low usage cost is selected from the selected reference resource pools as the target resource pool. For example, a plurality of first reference resource pools are selected according to the order from the small to the large of the total times of use, then a plurality of second reference resource pools are selected according to the order from the early to the late of the latest time of use, and finally a target resource pool is selected according to the order from the small to the large of the cost of use. In addition, it should be noted that, when the target resource pool is selected, the storage space provided by the selected target resource pool is ensured to meet the storage space required by each time period of the order. For example, the storage space provided by the target resource pool may be equal to the maximum of the storage space required for each time period in the order. According to the method and the device for scheduling the resources, the storage pools are selected according to the total use times and the latest use time, so that each resource pool is guaranteed to be used, balanced scheduling of the resources is achieved, the resources can be dynamically adjusted, and the utilization rate of the user resources is improved.
In addition, in practical applications, there may be storage space in the storage pool purchased by the user that does not satisfy the storage space required for a certain period of time in the order. Based on this, in one implementation manner, the preset order template may include priorities of resource occupation items, when an order is generated through the preset order template, the priority of each resource occupation item may be set, and then when a storage space required by a certain time period in the order cannot be satisfied, the resource quota of the resource occupation items is sequentially reduced according to the order of the priority from low to high until the required storage space can be satisfied, so that the read-write speed of the resource occupation item with high priority can be preferentially ensured, and further the response speed of the resource occupation item with high priority can be ensured. In one implementation, when a storage space required for a certain time period in a subscription order cannot be satisfied, a resource quota of each resource occupation item and an actual resource quota of each resource occupation item before a preset interval time can be read, and for the resource occupation item with the resource quota being greater than the actual resource quota, a resource quota average value of the resource quota and the actual resource quota is adopted to adjust the resource quota. After the adjustment is completed, if the storage space required by a certain time period in the ordered order can be met, completing the adjustment operation; if the storage space required by a certain time period in the order can not be met, setting priority for the resource occupation item according to the resource quota, and then sequentially reducing the resource quota of the resource occupation item according to the order of the priority from low to high.
In one implementation manner of the embodiment of the present application, after storage resources are allocated to each resource occupation item, a setting operation based on a storage resource quota of a user for the resource occupation item is monitored in real time, the setting operation is responded, the storage resource quota corresponding to the resource occupation item is updated, and storage resources are allocated to the resource occupation item according to the updated storage resource quota. Therefore, the user can adjust the storage resource quota of each resource occupation item in real time according to actual conditions, and convenience is brought to the use of the user.
In summary, the present embodiment provides a method for ordering a storage resource, including displaying a preset ordering template in response to a control instruction of a user for the storage resource, where the preset ordering template includes a plurality of ordering items, each of the plurality of ordering items corresponds to a period of time, and each of the ordering items includes a storage resource quota interval of at least one resource occupation item; responding to the order operation of the user based on the preset order template, and generating an order; and distributing storage resources for each resource occupation item according to the ordering order. According to the method and the device, the ordering template is preset, and the storage resource quota is configured for each time period through the preset ordering template, so that resource waste caused by different storage resources required by different time periods of the resource occupation items can be avoided, and on the other hand, the storage resource quota of the important resource occupation item in a specific time period can be ensured through dynamic equipment of the storage resource quota of each resource occupation item, and therefore guarantee can be provided for ensuring the important resource occupation item.
Based on the foregoing storage resource ordering method, this embodiment provides a storage resource ordering device, as shown in fig. 4, where the storage resource ordering device specifically includes:
the display module is used for responding to a control instruction of a user aiming at storage resources and displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
the generation module is used for responding to the ordering operation of the user based on the preset ordering template and generating an ordering order;
and the distribution module is used for distributing storage resources for each resource occupation item according to the ordering order.
Based on the above-described method for ordering storage resources, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method for ordering storage resources as described in the above-described embodiment.
Based on the above method for ordering storage resources, the present application further provides a terminal device, as shown in fig. 5, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The method for ordering the storage resource is characterized by comprising the following steps:
responding to a control instruction of a user aiming at storage resources, and displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
responding to the order operation of the user based on the preset order template, and generating an order;
and distributing storage resources for each resource occupation item according to the ordering order.
2. The method for ordering storage resources according to claim 1, wherein the preset ordering template is generated based on priori knowledge, and the generating process of the preset ordering template specifically includes:
pre-constructing an initial subscription template, wherein the initial subscription template comprises a plurality of subscription items, each subscription item in the plurality of subscription items corresponds to a time period, and each subscription item comprises a storage resource quota interval of at least one resource occupation item;
acquiring a resource quota sequence of each resource occupation item in at least one time period, wherein the time period is formed by a time period corresponding to each ordering item;
for each time period, reading the actual resource quota corresponding to each resource occupation item in the resource quota sequence corresponding to each resource occupation item;
according to the actual resource quota, determining an actual resource quota interval of each resource occupation item;
and configuring the actual resource quota interval of each resource occupation item and the storage resource quota interval of each resource occupation item to obtain a preset ordering template.
3. The method for ordering storage resources according to claim 2, wherein the obtaining a resource quota sequence of each resource occupation item in at least one time period specifically includes:
triggering a preset ordering template generation instruction when each time period is terminated;
responding to the generating instruction, acquiring a current actual resource quota sequence of a current time period, which is closest to the response time, of each resource occupation item, and acquiring a first precursor actual resource quota sequence corresponding to a time period to be configured and a second precursor actual resource quota sequence corresponding to the current time period according to a preset time interval, so as to acquire the resource quota sequence corresponding to each resource occupation item.
4. The method for ordering storage resources according to claim 1, wherein the allocating storage resources for each resource occupation according to the order specifically includes:
acquiring resource pool information of each resource pool in the distributed system and user information corresponding to the order;
selecting a target resource pool corresponding to the order based on the resource pool information and the user information;
and distributing a resource pool for each resource occupation item through the target resource pool.
5. The method for ordering storage resources according to claim 4, wherein selecting a target resource pool corresponding to the order based on the resource pool information and the user information specifically includes:
selecting a candidate resource pool set according to the user information;
and selecting target resources corresponding to the order from the candidate resource pool according to the use records and the use cost in the resource pool information.
6. The method for ordering storage resources according to claim 5, wherein selecting the candidate resource pool set according to the user information specifically comprises:
determining the importance degree of the user according to the user information;
when the importance degree of the user is greater than a preset degree threshold, selecting a resource pool with the residual capacity and the response speed of the storage pool meeting preset conditions so as to obtain a candidate resource pool set;
and when the importance degree of the user is smaller than or equal to a preset degree threshold value, selecting all the resource pools with the residual capacity to obtain a candidate resource pool set.
7. The method of ordering storage resources of claim 1, further comprising:
monitoring a setting operation of a storage resource quota based on a user aiming at a resource occupation item in real time, responding to the setting operation, updating the storage resource quota corresponding to the resource occupation item, and distributing storage resources for the resource occupation item according to the updated storage resource quota.
8. The utility model provides a storage resource's ordering device which characterized in that, storage resource's ordering device specifically includes:
the display module is used for responding to a control instruction of a user aiming at storage resources and displaying a preset ordering template, wherein the preset ordering template comprises a plurality of ordering items, each ordering item in the plurality of ordering items corresponds to a time period, and each ordering item comprises a storage resource quota interval of at least one resource occupation item;
the generation module is used for responding to the ordering operation of the user based on the preset ordering template and generating an ordering order;
and the distribution module is used for distributing storage resources for each resource occupation item according to the ordering order.
9. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps in the method of ordering storage resources of any of claims 1-7.
10. A terminal device, comprising: a processor and a memory;
the memory has stored thereon a computer readable program executable by the processor;
the processor, when executing the computer readable program, implements the steps of the method for ordering storage resources according to any of claims 1-7.
CN202311869484.9A 2023-12-29 2023-12-29 Storage resource ordering method, device, equipment and storage medium Pending CN117827453A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311869484.9A CN117827453A (en) 2023-12-29 2023-12-29 Storage resource ordering method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311869484.9A CN117827453A (en) 2023-12-29 2023-12-29 Storage resource ordering method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117827453A true CN117827453A (en) 2024-04-05

Family

ID=90505871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311869484.9A Pending CN117827453A (en) 2023-12-29 2023-12-29 Storage resource ordering method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117827453A (en)

Similar Documents

Publication Publication Date Title
US9106589B2 (en) Predicting long-term computing resource usage
US7322034B2 (en) Method and system for dynamically allocating computer system resources
EP3920490B1 (en) Adaptive resource allocation method and apparatus
US20140282520A1 (en) Provisioning virtual machines on a physical infrastructure
US10754706B1 (en) Task scheduling for multiprocessor systems
CN107018091B (en) Resource request scheduling method and device
CN108052384B (en) Task processing method, service platform and electronic equipment
CN111480145A (en) System and method for scheduling workloads according to a credit-based mechanism
EP3293632B1 (en) Dynamically varying processing capacity entitlements
CN110138883B (en) Hybrid cloud resource allocation method and device
CN104301257B (en) A kind of resource allocation methods, device and equipment
CN111078404B (en) Computing resource determining method and device, electronic equipment and medium
CN110599148B (en) Cluster data processing method and device, computer cluster and readable storage medium
WO2021104349A1 (en) Cloud resource management method and apparatus, and electronic device and computer readable storage medium
CN111798113A (en) Resource allocation method, device, storage medium and electronic equipment
US10643193B2 (en) Dynamic workload capping
CN114155026A (en) Resource allocation method, device, server and storage medium
CN108241535B (en) Resource management method and device and server equipment
US10812278B2 (en) Dynamic workload capping
CN113110927A (en) Task scheduling method and device, computer equipment and storage medium
CN109960572B (en) Equipment resource management method and device and intelligent terminal
CN117827453A (en) Storage resource ordering method, device, equipment and storage medium
CN114327918B (en) Method and device for adjusting resource amount, electronic equipment and storage medium
CN114489978A (en) Resource scheduling method, device, equipment and storage medium
CN114154962A (en) Batch processing monitoring method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination