Resource regulation and control method and device, electronic equipment and storage medium

By receiving new resource requests, determining resource usage prediction data based on time nodes, generating resource allocation strategies, and adjusting resources to the resource pool, the problem of insufficient computing resources on the server side is solved, the efficiency of resource allocation is improved, and resource waste and tension is avoided.

CN120045334AInactive Publication Date: 2025-05-27SHENZHEN MINIPLAY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510512134.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-05-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the Internet field, the computing resources on the server side are insufficient during peak users, which leads to the inability to use the client normally, affects stability, and is wasted resources during idle time, increasing resource costs.

Method used

A resource regulation method is proposed. By receiving new resource addition requests, determining the resource usage prediction data of the resource pool based on time nodes, generating resource allocation strategies, and adjusting the resource pool according to the strategy, and dynamically allocating resources.

Benefits of technology

It improves the efficiency of dynamic allocation of resources, avoids resource waste and tension, reduces resource costs, and ensures the accuracy and efficiency of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045334A_ABST
    Figure CN120045334A_ABST
Patent Text Reader

Abstract

The invention provides a resource regulation and control method and device, electronic equipment and a storage medium. The resource regulation and control method comprises the following steps: receiving a resource adding request, and determining resource use prediction data of a resource pool based on a time node of the resource adding request; according to the resource use prediction data and resource use information corresponding to the resource addition request, generating a resource allocation strategy, the resource allocation strategy being used for performing resource adjustment on the resource pool according to the resource use request; and carrying out resource adjustment on the resource pool based on the resource allocation strategy to obtain a newly-added resource requested by the resource newly-added request. The method is used for improving the dynamic effect of resource allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and particularly to a resource regulation method, device, electronic device and storage medium. Background Art

[0002] In the Internet field, when a client interacts with a server, the server needs to perform some real-time calculations and return the results to the client. During the calculation process, it is necessary to ensure that the computing resources of the server are sufficient to meet the latency requirements of the client request response.

[0003] Generally, the client provider will ensure sufficient server resources. However, at some specific time nodes, a large number of users use the resources, resulting in insufficient computing resources of the server, causing the client to be unable to be used normally and affecting the stability of the client. In this case, the client provider will deploy more computing resources on the server side to meet the needs of the peak user volume, but it will cause resource waste during idle time and increase resource costs. Summary of the Invention

[0004] An object of the present application is to provide a resource regulation method, device, electronic device and storage medium for improving the efficiency of dynamically allocating resources.

[0005] According to an aspect of an embodiment of the present application, a resource regulation method is provided, including: Receiving a resource addition request, and determining resource usage prediction data of a resource pool based on the time node of the resource addition request; Generating a resource allocation strategy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request, where the resource allocation strategy is used to adjust the resources of the resource pool according to the resource usage request; Adjusting the resources of the resource pool based on the resource allocation strategy to obtain the newly added resources requested by the resource addition request.

[0006] According to an aspect of an embodiment of the present application, a resource regulation device is provided, including: A resource prediction module, configured to receive a resource addition request and determine resource usage prediction data of a resource pool based on the time node of the resource addition request; A resource strategy generation module, configured to generate a resource allocation strategy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request, where the resource allocation strategy is used to adjust the resources of the resource pool according to the resource usage request; A resource allocation module, configured to adjust the resources of the resource pool based on the resource allocation strategy to obtain the newly added resources requested by the resource addition request.

[0007] According to one aspect of the embodiments of the present application, an electronic device is provided, including: One or more processors; a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the methods provided in the above various optional implementation manners.

[0008] According to one aspect of the embodiments of the present application, a computer program medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the methods provided in the above various optional implementation manners.

[0009] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above various optional implementation manners.

[0010] In the present application, when a resource addition request is received, resource usage prediction data of a resource pool is determined based on the time node of the resource addition request. According to the resource usage prediction data and the resource usage information of the resource addition request, a resource allocation policy is generated, where the resource allocation policy is used to adjust the resources of the resource pool according to a resource usage request; the resources of the resource pool are adjusted based on the resource allocation policy to obtain the newly added resources requested by the resource addition request. In the present application, according to the time node when the resource addition request is initiated, the resource usage prediction situation of the resource pool is obtained, and the resource usage prediction situation indicates the resource allocable data of the resource pool in a future period. Furthermore, a resource allocation policy can be generated according to the resource usage prediction situation, and the resources of the resource pool are adjusted according to the resource allocation policy to obtain the newly added resources requested by the resource addition request. The usage situation of the resource pool is predicted, and the resource allocation policy generated on this basis conforms to the usage trend of the resource pool, so as to ensure that no resource waste or shortage will occur, and dynamic allocation of resources can be performed while ensuring the accuracy of resource allocation, and the efficiency of dynamic allocation of resources is improved to a certain extent.

[0011] Other features and advantages of the present application will become apparent through the following detailed description, or will be partially learned through the practice of the present application.

[0012] It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other objectives, features, and advantages of the present application will become more apparent by describing its exemplary embodiments in detail with reference to the accompanying drawings.

[0014] Figure 1 The system architecture block diagram showing the application scenario of the resource regulation method provided in this embodiment is presented.

[0015] Figure 2 The flowchart showing the resource regulation method provided in the embodiments of the present application is presented.

[0016] Figure 3 The structural schematic diagram showing the resource regulation device provided in the embodiments of the present application is presented.

[0017] Figure 4 The structural schematic diagram showing the electronic device provided in the embodiments of the present application is presented. Detailed implementation manners

[0018] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these exemplary embodiments are provided so that the present application will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated description will be omitted.

[0019] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more exemplary embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the exemplary embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application can be practiced without one or more of the specific details, or other methods, components, steps, etc. can be adopted. In other cases, well-known structures, methods, implementations, or operations are not shown or described in detail to avoid obscuring the various aspects of the present application.

[0020] Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0021] Figure 1The system architecture block diagram of the application scenario of the resource regulation method provided in this embodiment is shown. System architecture 100 includes a resource regulation system 110, an initiating terminal 120, and a network 130. The resource regulation system includes a resource pool, which consists of independent physical servers, or can be a server cluster or a distributed system composed of multiple physical servers, or can also be a cloud server providing cloud computing services. The initiating terminal is used to initiate a resource addition request to the resource regulation system 110. The initiating terminal 120 can include a smart phone, a tablet computer, a laptop computer, a smart server, or can also be a server cluster or a distributed system composed of multiple physical servers, etc. The network 130 can be a communication medium of various connection types that can provide a communication link between the initiating terminal 120 and the resource regulation system 110, such as a limited communication link or a wireless communication link.

[0022] Figure 2 The flow schematic diagram of the resource regulation method provided in this embodiment is shown. As Figure 2 shown, the method includes the following steps: S100, Receive a resource addition request, and determine the resource usage prediction data of the resource pool based on the time node of the resource addition request.

[0023] Specifically, the resource addition request is a request for the resource requester to add resources.

[0024] The resource pool is a group of computing, storage, or network resources that can be dynamically allocated and managed, and can automatically expand or shrink according to demand.

[0025] The resource usage prediction data is the prediction data of the usage situation of the resource pool in a future period of time, and is used to judge whether the usage rate of the resource pool will increase or decrease in the future time period.

[0026] Specifically, it can be pointed out according to the resource usage prediction data whether the CPU usage rate will exceed 80% within the next 15 minutes; whether the number of online users will increase by 20%, etc.

[0027] Based on the time node of the resource addition request, the current usage situation of the resource pool can be judged, including the part that needs to be recycled and the part that needs to be added.

[0028] According to the part that needs to be recycled and the part that needs to be added, and combined with historical data, the usage situation of the resource pool in the future time is predicted.

[0029] S200, Generate a resource allocation policy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request. The resource allocation policy is used to adjust the resources of the resource pool according to the resource usage request.

[0030] Specifically, the resource addition request specifies the resource usage information to be expanded, including at least the resource type of the newly added resources, etc.

[0031] Generate a resource allocation strategy based on the resource usage situation specified in the resource addition request and the resource usage prediction data.

[0032] The resource allocation strategy determines how to allocate and recycle resources from the resource pool, thereby adjusting the resource pool, and determining how to handle the resource addition request according to the result of the resource adjustment.

[0033] The ways to adjust the resource pool include but are not limited to: recycling resources that are no longer in use or expanding the resource pool.

[0034] And combine the resource usage prediction data to determine whether it is necessary to expand the resource pool to allocate resources to the requester of the resource addition request.

[0035] S300, perform resource adjustment on the resource pool based on the resource allocation strategy to obtain the newly added resources requested by the resource addition request.

[0036] After obtaining the newly added resources, a resource application interface can be generated, and the requester of the resource addition request can access the resource application interface to obtain the configuration method of the newly added resources, and then configure and use the newly added resources.

[0037] In this embodiment, by receiving the resource addition request and determining the resource usage prediction data of the resource pool based on the time node of the resource addition request, and obtaining the usage situation of the resource pool in the future time through the resource usage prediction data, it is possible to ensure the generation of a reasonable resource allocation strategy. Generate a resource allocation strategy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request, and finally perform dynamic allocation of resources according to the resource allocation strategy, without blindly expanding resources, avoiding resource waste, and ensuring the rationality and efficiency of resource allocation.

[0038] Further, S100, determining the resource usage prediction data of the resource pool based on the time node of the resource addition request includes: S110, based on the time node when the resource addition request is initiated, obtain the historical resource usage data of the resource pool in the historical period.

[0039] S120, according to the historical resource usage data, predict the resource usage situation of the resource pool in the preset period after the time node to obtain the resource usage prediction data.

[0040] Specifically, according to the time node when the resource addition request is initiated, taking this time node as a benchmark, obtain the resource usage situation of the resource pool in the historical period based on this time node to obtain the historical resource usage data.

[0041] Historical resource usage data includes various data metrics of the resource pool, including but not limited to CPU usage rate, number of online users, user data growth rate, etc.

[0042] Based on these historical resource usage situations, a prediction model is trained using machine learning algorithms to predict the usage of the resource pool, and then resource usage prediction data is obtained.

[0043] During the training process, the corresponding model can be selected according to the situation of historical resource usage data.

[0044] In the game scenario, the resource pool usage data of the game server has obvious periodicity, and the autoregressive integrated moving average method can be selected for prediction.

[0045] If the usage data has sudden growth, such as traffic fluctuations caused by sudden activities, the long short-term memory network can be selected.

[0046] As an alternative implementation, a prediction model is obtained through training with historical resource usage data, and based on the prediction model, the resource usage situation of the resource pool within a preset time after a time node is predicted to obtain resource usage prediction data.

[0047] Further, in S200, based on the resource usage prediction data and the resource usage information corresponding to the resource addition request, a resource allocation strategy is generated, including: S211, determine the resource type requested by the resource addition request according to the resource usage information corresponding to the resource addition request.

[0048] S213, determine the resource usage situation of the resource type in the resource pool based on the resource type.

[0049] S215, generate a resource allocation strategy according to the resource usage situation and the resource usage prediction data.

[0050] Specifically, based on the resource usage information in the resource addition request, the resource details of the resources to be allocated are obtained, including resource type, resource quantity, resource configuration, etc.

[0051] Among them, the resource type can be the allocation of the resource pool, such as computing resources, storage resources, network resources, etc.

[0052] Or, the resource type can be the resource classification for implementing various functional types in a certain scenario. For example, in the game scenario, resources are allocated corresponding to various gameplay types, such as PVP arena gameplay, dungeon gameplay, and wild world gameplay.

[0053] When a resource type is defined in a resource addition request and a resource addition request is initiated for this resource type, the resource usage of this resource type in the resource pool is determined based on the resource type requested in the resource addition request.

[0054] Among them, determining the resource usage of the resource pool based on this resource type includes the remaining amount of each resource type, ongoing resource allocation tasks, etc. Then, in combination with resource usage prediction data, the usage trend of the resource pool is determined. Based on the resource usage and resource usage prediction data, a resource allocation strategy is generated.

[0055] As an optional implementation manner, the resource allocation strategy is a strategy for resource adjustment generated in response to the resource addition request by combining the current usage situation of the resource pool and the possible future usage situation.

[0056] The resource pool can set global configuration strategies according to different requirements. The global configuration strategy can allocate resources to the resource pool based on different allocation purposes and usage scenarios to ensure the usage experience of the application.

[0057] To ensure the dynamic scaling of the resource pool and achieve the effects of expansion during peak periods and recovery during low-peak periods, when a resource addition request is received, the resources in the existing resource pool are dynamically adjusted to avoid resource waste and can reduce costs to a certain extent.

[0058] As an optional implementation manner, the resource pool includes a first resource pool and a second resource pool. S200. According to the resource usage prediction data and the resource usage information corresponding to the resource addition request, a resource allocation strategy is generated, including: S221. Obtain the resource usage data of the first resource pool, and determine whether to enable the second resource pool according to the comparison result between the resource usage data of the first resource pool and the expansion rule.

[0059] S223. When it is determined to enable the second resource pool, the resources of the second resource pool are adjusted according to the resource usage prediction data and the resource usage information of the resource addition request to obtain the resource allocation strategy.

[0060] Specifically, the resource pool includes a first resource pool and a second resource pool.

[0061] The resource usage data of the first resource pool can be evaluated to determine whether to enable the second resource pool.

[0062] When the usage amount of the first resource pool will decrease in the future period, the remaining resources of the first resource pool can be allocated to respond to the resource addition request.

[0063] Or, when the resource usage situation of the first resource pool has met the expansion rule, it is determined to enable the second resource pool.

[0064] Exemplarily, when the resource type defined in the resource addition request is a computing resource, and the remaining amount of computing resources in the first resource pool is only 30%, when evaluating whether to enable the second resource pool, the historical usage data and current trend analysis of the computing resources in the first resource pool can be referred to for judgment.

[0065] If the usage amount of computing resources will decrease in a future period of time, then resources can be allocated from the existing resources in the first resource pool instead of enabling the second resource pool, which can avoid resource waste. As an alternative implementation, when multiple resource addition requests are received, it further includes: S311, judging the priorities of multiple resource addition requests to generate a priority identifier for each resource addition request.

[0066] S313, allocating a resource allocation policy corresponding to the priority identifier for each resource addition request, where the priority identifier is used to define the importance of the resource addition request.

[0067] Specifically, when multiple resource addition requests are received, a priority identifier for each resource request is generated to match the resource allocation policy allocated according to the priority.

[0068] When multiple resource addition requests are received and the resource types defined by each resource addition request are different, and different types of resource requests need to be allocated resources with different priorities.

[0069] When generating the resource allocation policy, resource adjustment can also be performed according to the priorities of each resource addition request.

[0070] That is, according to the priority identifier, the resource type defined by the resource addition request with the highest priority is determined, and according to this resource type, the resource usage situation of the resource pool is determined to generate a resource allocation policy to ensure that the resource addition request with a higher priority can obtain resources first.

[0071] As an alternative implementation, after it is determined that multiple resource addition requests will be received, multiple resource allocation threads are first started, and each resource allocation thread processes the corresponding resource addition request respectively.

[0072] Meanwhile, according to the historical data, the resource usage situation in the same situation is obtained, and combined with the existing resource usage situation of the resource pool, early expansion is performed.

[0073] When multiple resource addition requests are received, the existing real-time load is optimized and dynamically adjusted at the same time.

[0074] Exemplarily, in scenarios such as some scheduled activities where multiple resource addition requests are known to be received, the resource pool is expanded in advance to avoid crashes caused by sudden traffic.

[0075] Further, in S300, the resources in the resource pool are adjusted based on the resource allocation policy to obtain the additional resources requested by the resource addition request, including: S310, the ways to adjust the resources in the resource pool based on the resource allocation policy include expanding resources or reclaiming resources.

[0076] S320, according to the way of resource adjustment, the expanded resources or reclaimed resources are used as the additional resources allocated to the resource addition request.

[0077] Specifically, when expanding the resources in the resource pool, the corresponding expansion method can be selected according to the server architecture of the resource pool.

[0078] For example, cloud servers can be selected for resource expansion.

[0079] When reclaiming resources from the resource pool, some resources with a current usage rate lower than a predetermined threshold are reclaimed for reallocation according to the resource allocation policy.

[0080] In this embodiment, after obtaining the additional resources according to the resource allocation policy, the resource information (such as port information) of the additional resources is sent to the initiator of the resource addition request, enabling the initiator to quickly access the additional resources.

[0081] As an alternative implementation, after in S300, the resources in the resource pool are adjusted based on the resource allocation policy to obtain the additional resources requested by the resource addition request, the method further includes: S411, monitor the usage of the additional resources.

[0082] S412, when the usage of the additional resources meets the conditions for reconfiguring the additional resources, reconfigure the additional resources.

[0083] Specifically, after adjusting the resources in the resource pool based on the resource addition request, responding to the resource addition request, and providing the additional resources to the initiator, monitor the usage of the additional resources. When the usage rate of the additional resources drops to the threshold at which the additional resources can be reconfigured, it means that the usage of the additional resources meets the conditions for reconfiguring the additional resources. At this time, the additional resources can be reclaimed for reconfiguration to avoid waste or overoccupation of resources and ensure that the resource pool is in an efficient and reasonable operating state.

[0084] Multiple monitoring metrics can be set to determine the usage of the additional resources, including the usage rate, usage duration, and idle amount of the additional resources.

[0085] When one of the monitoring metrics reaches the monitoring threshold, evaluate the newly added resource to determine whether the use of the newly added resource causes resource waste.

[0086] As an optional implementation, a corresponding monitoring interval period can be set according to the time node of the newly added resource.

[0087] During the period of dull business, set a longer monitoring period, and during the peak business period, appropriately shorten the monitoring period.

[0088] Figure 3 Shows the structural schematic diagram of the resource regulation device provided by this embodiment. As Figure 3 shown, the resource regulation device includes: A resource prediction module 31, configured to receive a resource addition request and determine the predicted resource usage data of the resource pool based on the time node of the resource addition request.

[0089] A resource policy generation module 32, configured to generate a resource allocation policy according to the predicted resource usage data and the resource usage information corresponding to the resource addition request, and the resource allocation policy is used to adjust the resources in the resource pool according to the resource usage request.

[0090] A resource allocation module 33, configured to adjust the resources in the resource pool based on the resource allocation policy to obtain the newly added resources requested by the resource addition request.

[0091] Further, the resource prediction module 31 is configured as: Based on the time node when the resource addition request is initiated, obtain the historical resource usage data of the resource pool in the historical period.

[0092] According to the historical resource usage data, predict the resource usage situation of the resource pool within a preset period after the time node to obtain the predicted resource usage data.

[0093] Further, the resource policy generation module 32 is configured as: According to the resource usage information corresponding to the resource addition request, determine the resource type requested by the resource addition request.

[0094] Based on the resource type, determine the resource usage situation of the resource type in the resource pool.

[0095] Generate a resource allocation policy according to the resource usage situation and the predicted resource usage data.

[0096] Further, the resource policy generation module 32 is also configured as: The resource pool includes a first resource pool and a second resource pool.

[0097] Obtain the resource usage data of the first resource pool, and determine whether to enable the second resource pool according to the comparison result between the resource usage data of the first resource pool and the expansion rule.

[0098] When it is determined to enable the second resource pool, resource adjustment is performed on the second resource pool according to the resource usage prediction data and the resource usage information of the resource addition request, so as to obtain a resource allocation strategy.

[0099] As an optional implementation manner, the resource regulation device further includes the following modules: A priority identifier generation module, configured to, when receiving multiple resource addition requests, determine the priorities of the multiple resource addition requests, so as to generate a priority identifier for each resource addition request.

[0100] An identifier allocation module, configured to allocate a resource allocation strategy corresponding to the priority identifier to each resource addition request, where the priority identifier is used to define the importance degree of the resource addition request.

[0101] Further, the resource allocation module is configured as: The manner of performing resource adjustment on the resource pool based on the resource allocation strategy includes expanding resources or reclaiming resources.

[0102] According to the manner of resource adjustment, expand resources or reclaim resources as the newly added resources allocated to the resource addition request.

[0103] Further, the resource regulation device further includes the following modules: A resource monitoring module, configured to monitor the usage of the newly added resources.

[0104] A resource reconfiguration module, configured to reconfigure the newly added resources when the usage of the newly added resources meets the conditions for reconfiguring the newly added resources.

[0105] Figure 4 Shows a schematic structural diagram of the electronic device provided in this embodiment. The following refers to Figure 4 to describe the electronic device 50 provided in this embodiment. Figure 4 The displayed electronic device 50 is only an example, and should not impose any limitation on the functions and usage scope of the embodiments of the present application.

[0106] As Figure 4 shown, the electronic device 50 is presented in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: at least one of the above-mentioned processing units 510, at least one of the above-mentioned storage units 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).

[0107] Among them, the storage unit stores program code that can be executed by the processing unit 510, enabling the processing unit 510 to execute the steps according to various exemplary embodiments of the present application described in the description part of the above exemplary method of this specification. For example, the processing unit 510 can execute the respective steps as shown in Figure 2 as shown.

[0108] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202, and may further include a read-only storage unit (ROM) 5203.

[0109] The storage unit 520 may further include a program / utilities 5204 having a set (at least one) of program modules 5205. Such program modules 5205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.

[0110] The bus 530 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.

[0111] The electronic device 50 may also communicate with one or more external devices 600 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 50, and / or communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be carried out through an input / output (I / O) interface 550. The input / output (I / O) interface 550 is connected to the display unit 540. Moreover, the electronic device 50 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 560. As shown in the figure, the network adapter 560 communicates with other modules of the electronic device 50 through the bus 530. It should be understood that although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0112] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (such as a personal computer, a mobile terminal, etc.) to execute the resource regulation method according to the embodiments of the present application.

[0113] In an exemplary embodiment of the present application, there is also provided a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the resource regulation method described in the method embodiment part above.

[0114] According to an embodiment of the present application, there is also provided a program product for implementing the method in the above method embodiment. It can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device.

[0115] The program product can adopt any combination of one or more readable media. The readable media can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0116] The computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium can also be any readable medium other than the readable storage medium, and this readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.

[0117] The program code contained on a readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0118] The program code for performing the operations of this application can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages such as JAVA, C++, etc., and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or, alternatively, can be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).

[0119] It should be noted that although several modules or units of a device for action execution are mentioned in the foregoing detailed description, such a division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more of the above-described modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units. In addition, although the steps of the methods in this application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in that specific order, or that all of the steps shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0120] From the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, mobile terminal, etc.) to execute the methods according to the embodiments of this application.

[0121] Other embodiments of the present application will be readily contemplated by those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the appended claims.

Claims

1. A resource control method, characterized in that: include: Receive a request for adding a resource, and determine resource usage prediction data of a resource pool based on a time node of the request for adding a resource; Generate a resource allocation strategy based on the resource usage prediction data and the resource usage information corresponding to the resource addition request, wherein the resource allocation strategy is used to adjust resources of the resource pool according to the resource usage request; The resource pool is adjusted based on the resource allocation strategy to obtain the additional resources requested by the additional resource request.

2. The resource control method according to claim 1, characterized in that: The determining of resource usage prediction data of the resource pool based on the time node of the resource addition request includes: Based on the time point of initiating the resource addition request, obtaining historical resource usage data of the resource pool in a historical period; The resource usage of the resource pool within a preset time period after the time node is predicted based on the historical resource usage data to obtain resource usage prediction data.

3. The resource control method according to claim 1, characterized in that: The generating a resource allocation strategy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request includes: Determining the resource type requested by the resource addition request according to the resource usage information corresponding to the resource addition request; Determining resource usage of the resource type in the resource pool based on the resource type; A resource allocation strategy is generated according to the resource usage situation and the resource usage prediction data.

4. The resource control method according to claim 1, characterized in that: The resource pool includes a first resource pool and a second resource pool, and generating a resource allocation strategy according to the resource usage prediction data and the resource usage information corresponding to the resource addition request includes: Obtain resource usage data of the first resource pool, and determine whether to enable the second resource pool according to a comparison result of the resource usage data of the first resource pool with the expansion rule; When it is determined to enable the second resource pool, resources of the second resource pool are adjusted according to the resource usage prediction data and the resource usage information of the resource addition request to obtain the resource allocation strategy.

5. The resource control method according to claim 1, characterized in that: When a plurality of resource addition requests are received, the method further includes: Determining the priorities of the multiple resource adding requests to generate a priority identifier for each of the resource adding requests; A resource allocation strategy corresponding to the priority identifier is allocated to each of the resource addition requests, and the priority identifier is used to define the importance of the resource addition request.

6. The resource control method according to claim 1, characterized in that: The adjusting the resources of the resource pool based on the resource allocation strategy to obtain the new resources requested by the resource addition request includes: The method of adjusting resources in the resource pool based on the resource allocation strategy includes expanding resources or recovering resources; According to the resource adjustment method, the expanded resources or the recovered resources are used as new resources allocated to the resource addition request.

7. The resource control method according to claim 1, characterized in that: After adjusting the resources of the resource pool based on the resource allocation policy to obtain the new resources requested by the resource addition request, the method further includes: Monitoring usage of the newly added resources; When the usage of the newly added resources meets the conditions for reconfiguring the newly added resources, the newly added resources are reconfigured.

8. A resource control device, characterized in that: The device comprises: A resource prediction module, used to receive a resource addition request and determine resource usage prediction data of a resource pool based on a time node of the resource addition request; A resource policy generation module, configured to generate a resource allocation policy based on the resource usage prediction data and the resource usage information corresponding to the resource addition request, wherein the resource allocation policy is used to adjust resources of the resource pool according to the resource usage request; The resource allocation module is used to adjust the resources of the resource pool based on the resource allocation strategy to obtain the new resources requested by the resource addition request.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the resource control method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the resource control method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Resource control method and device

    CN113760527A

  • Operation resource allocation method and device, computer equipment, readable storage medium and program product

    CN119127469A

  • Resource allocation in data center networks

    US20230133920A1