Resource allocation method and device, equipment and medium

By obtaining the user ID and historical score of bank transaction requests, generating a load ID, and rationally allocating resource pools, the resource preemption problem caused by high-load transactions in the banking business system is solved, and resource allocation efficiency and business security are improved.

CN120803741APending Publication Date: 2025-10-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511253271.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-03
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

When current banking systems are under high-load transactions, resource preemption causes a sharp drop in database throughput and response delays, affecting customer service experience. Conventional server expansion methods are inefficient and costly.

Method used

By obtaining resource occupancy requests, determining user IDs and historical and current occupancy category scores, generating load IDs, and allocating them to target resource pools to meet resource occupancy requests under preset conditions, reasonable resource allocation is achieved.

Benefits of technology

It improves resource allocation efficiency, ensures the security and stability of banking services, and avoids the interference of high-load requests on ordinary requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803741A_ABST
    Figure CN120803741A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a resource allocation method and device, equipment and a medium, and the method comprises the steps: obtaining a resource occupation request, and determining resource occupation information and a user identifier of an occupation initiator according to the request content of the resource occupation request; determining a historical occupancy category score according to the user identifier; determining a current occupancy category score according to the resource occupancy information and the user identifier; determining a load identifier of the resource occupancy request according to the historical occupancy category score and the current occupancy category score; a target resource pool is determined according to the resource occupation information and the load identifier, and resources in the target resource pool are used for responding to a resource occupation request with the load identifier meeting a preset condition. According to the technical scheme provided by the invention, the load identifier of the resource occupation request can be accurately determined in combination with the information of the historical occupation task and the current occupation task, resource allocation is performed according to the load identifier, and the efficiency and accuracy of resource allocation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of resource allocation, and in particular to a resource allocation method, device, equipment and medium. BACKGROUND

[0002] With the acceleration of the digital transformation of banking business, the daily processing capacity of core transaction systems grows exponentially, and scenarios such as high-frequency transfer, batch delivery, and real-time clearing continue to rise in concurrent use of database resources. Currently, some high-load transactions are prone to centralized occupation of CPU, memory, and I / O resources during runtime, resulting in a sharp decline in overall database throughput, delays in conventional transaction responses exceeding thresholds or even interruptions, and serious impacts on customer service experience and business continuity.

[0003] The current main solution is to expand server capacity and quantity to provide more resources, but this method is inefficient and costly. SUMMARY

[0004] The present application provides a resource allocation method, device, equipment and medium, which can improve the efficiency of resource allocation and ensure the security of banking business.

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

[0006] obtaining a resource occupation request, determining resource occupation information and a user identifier of an occupation initiator according to the request content of the resource occupation request;

[0007] determining a historical occupation category score according to the user identifier, and determining a current occupation category score according to the resource occupation information and the user identifier;

[0008] determining a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score;

[0009] determining a target resource pool according to the resource occupation information and the load identifier, wherein the resources in the target resource pool are used to respond to resource occupation requests whose load identifiers meet a preset condition.

[0010] In a second aspect, the present application provides a resource allocation device, comprising:

[0011] an obtaining module configured to obtain a resource occupation request, and determine resource occupation information and a user identifier of an occupation initiator according to the request content of the resource occupation request;

[0012] a scoring module configured to determine a historical occupation category score according to the user identifier, and determine a current occupation category score according to the resource occupation information and the user identifier;

[0013] identify a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score;

[0014] determine a target resource pool according to the resource occupation information and the load identifier, wherein resources in the target resource pool are used to respond to the resource occupation request whose load identifier satisfies a preset condition.

[0015] In a third aspect, an electronic device is provided, and the electronic device includes:

[0016] at least one processor; and

[0017] a memory connected with the at least one processor in communication; wherein

[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the resource allocation method in any of the embodiments of the present application.

[0019] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer instructions for enabling a processor to implement the resource allocation method in any of the embodiments of the present application when executed.

[0020] The embodiments of the present application provide a resource allocation method, device, equipment and medium, and the method includes: obtaining a resource occupation request, determining resource occupation information and a user identifier of an occupation initiator according to request content of the resource occupation request; determining a historical occupation category score according to the user identifier; determining a current occupation category score according to the resource occupation information and the user identifier; determining a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score; and determining a target resource pool according to the resource occupation information and the load identifier, wherein resources in the target resource pool are used to respond to the resource occupation request whose load identifier satisfies a preset condition. Specifically, the load identifier of the resource occupation request can be determined through the historical occupation category score and the current occupation category score, and then the resource occupation request is determined to be a high-load request or a normal-load request, and then the target resource pool corresponding to the resource occupation request is determined through the resource occupation information and the load identifier, so as to ensure reasonable allocation of resources, improve the resource allocation efficiency, and ensure the safety of the service. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to make the technical solution in the embodiments of the present application clearer, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0022] Figure 1 A flow chart of a resource allocation method provided for the first embodiment of the present application is shown in FIG. 1.

[0023] Figure 2 A flow chart of a resource allocation method provided for the second embodiment of the present application is shown in FIG. 2.

[0024] Figure 3 A resource allocation schematic diagram provided for the embodiments of the present application is shown in FIG. 3.

[0025] Figure 4 A structural schematic diagram of a resource allocation device provided for the third embodiment of the present application is shown in FIG. 4.

[0026] Figure 5 A structural schematic diagram of an electronic device provided for the fourth embodiment of the present application is shown in FIG. 5. DETAILED DESCRIPTION

[0027] In order to make the technical solution in the embodiments of the present application clearer, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0028] It should be noted that the terms "first", "second", and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] It should be noted that the collection, storage, use, processing, transmission, provision and disclosure of user personal information in the technical solutions of the present disclosure comply with relevant laws and regulations and do not violate public order and good customs.

[0030] Embodiment one

[0031] Figure 1 A resource allocation method is provided for the first embodiment of the present application. The method is suitable for the field of resource allocation and can also be suitable for the field of financial technology, specifically for determining whether a business request is a high-load request and then determining the resource pool that can be occupied by the business request. The method can be executed by a resource allocation device, which can be composed of software and / or hardware and configured in a computer or server.

[0032] As shown in Figure 1 , it includes:

[0033] Step 110, obtaining a resource occupation request, determining resource occupation information and a user identifier of an occupation initiator according to the request content of the resource occupation request.

[0034] Among them, the resource occupation request is a formal request initiated by the client in the bank transaction business, which requires the system to allocate or lock specific computing / storage / network resources, which is used to trigger the subsequent resource allocation process and serves as the starting point of load control and resource scheduling. The request content is the complete data packet carried in the resource occupation request, which includes the required resource type, quantity, business scenario, and the identity of the occupation initiator and the user identifier. The resource occupation information is a structured description of the required resources in the parsed request content, which is used to clearly specify the resource specifications such as CPU, memory, database connection and network bandwidth to be occupied in this transaction, specifically the resource occupation category and resource occupation amount. The user identifier is the unique identity code of the occupation initiator in the bank system, which can be a customer number, a teller number or an application system identifier, etc.

[0035] Step 120, determining a historical occupation category score according to the user identifier; determining a current occupation category score according to the resource occupation information and the user identifier.

[0036] Specifically, one of the core purposes of the present application is to accurately distinguish the resource occupation request as a "high resource occupation request" or a "normal resource occupation request". Among them, the high resource occupation request (high load category) will squeeze a large number of resources in the resource pool at the moment, which is easy to cause resource pool to be stuck and affect the normal operation of other businesses; therefore, the system must identify the category of the resource occupation request first, and then perform different operations according to different categories. In summary, the occupation category is clearly divided into "high load category" and "normal load category". At the same time, whether the resource occupation request belongs to the high load category needs to be determined by first performing a retrospective analysis according to the historical resource task corresponding to the user identifier, and then comprehensively determining the actual resource occupation information this time. Therefore, the historical occupation category score gives a score on the "historical occupation level" for the current occupation task, and the current occupation category score gives a score on the "current occupation level" for the current occupation task.

[0037] Step 130, determining the load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score.

[0038] Specifically, the historical occupation category score and the current occupation category score can be weighted and summed to determine the category total score, and when the category total score is greater than a preset threshold, the resource occupation request is determined to be a high load request, and the load identifier is high load.

[0039] Step 140, determining a target resource pool according to the resource occupation information and the load identifier, wherein the resources in the target resource pool are used to respond to the resource occupation request whose load identifier meets a preset condition.

[0040] The load identifier is a label or a level value generated by comprehensively scoring the historical occupation category score and the current occupation category score, and is used to divide the resource occupation request into different load levels such as high, medium and low.

[0041] Specifically, the resource occupation information includes the amount of resources required by the current occupation task and the type of resources, and the resource library is divided into multiple resource pools, and different resource pools are used to execute different resource occupation requests of resource accumulation and load identifier. Therefore, the target resource pool for executing the current request needs to be determined according to the resource occupation information and the load identifier. Among them, the resources in the target resource pool are used to respond to the resource occupation request whose load identifier meets a preset condition, and the preset condition is whether the load identifier is high load.

[0042] Optionally, the target resource pool is determined according to the resource occupation information and the load identifier, comprising:

[0043] determining the resource pool corresponding to the resource occupation category as a candidate resource pool;

[0044] According to the current resource remaining, the load identification and the resource occupation amount of the candidate resource pool, a target resource pool is determined.

[0045] Specifically, the resource occupation information includes a resource occupation category, and the resource occupation category is a type of resource required to be occupied by the current resource occupation task, such as a memory resource or a CPU resource or an interface resource. Further, the resource pool corresponding to the resource occupation category can be determined as a candidate resource pool, and the resource pool in which the current remaining resource is greater than the resource occupation amount and the load identification satisfies the preset condition of the candidate resource pool is determined as the target resource pool. Optionally, if the current remaining resource of any candidate resource pool cannot satisfy the resource occupation amount, the current remaining resource can be proportionally allocated or uniformly allocated according to the quantity of the current remaining resource, and further, the target resource pool can be ensured to be able to respond to the resource request of the corresponding category and to satisfy the resource supply capability under the current load condition, thereby improving the pertinence of resource allocation.

[0046] Optionally, after the target resource pool is determined, the method further includes:

[0047] The resource occupation request is added to an execution queue of the target resource pool, so that the target resource pool executes the resource occupation request.

[0048] Specifically, the resource occupation request can be added to the execution queue of the target resource pool or a shared memory accessible by the target resource pool, and the target resource pool will respond to the resource occupation request in the execution queue or the shared memory in turn. By actually adding the determined resource occupation request to the execution queue of the target resource pool, the closed-loop process from "load identification" to "resource scheduling" is completed, it is ensured that the resource request with the high load identification satisfying the preset condition can be processed in time by the target resource pool, and the request stagnation or allocation omission is avoided, and the integrity and executability of the resource allocation method are improved.

[0049] The embodiment of the present application provides a resource allocation method, which comprises the following steps: obtaining a resource occupation request, determining resource occupation information and a user identifier of an occupation initiator according to request content of the resource occupation request; determining a historical occupation category score according to the user identifier; determining a current occupation category score according to the resource occupation information and the user identifier; determining a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score; and determining a target resource pool according to the resource occupation information and the load identifier, wherein the resources in the target resource pool are used to respond to the resource occupation request whose load identifier satisfies a preset condition. Specifically, the load identifier of the resource occupation request can be determined through the historical occupation category score and the current occupation category score, and then the resource occupation request is determined to be a high-load request or a normal-load request, and then the target resource pool corresponding to the resource occupation request is determined through the resource occupation information and the load identifier, so that the reasonable allocation of resources is ensured, the resource allocation efficiency is improved, and the safety of the service is ensured.

[0050] Embodiment two

[0051] Figure 2 A flowchart of a resource allocation method provided by the second embodiment of the present application is shown in the figure, which is based on the above-mentioned embodiment and further limits the determination method of the historical occupation category score and the current occupation category score.

[0052] As shown in the figure, it comprises the following steps: Figure 2

[0053] Step 210: obtaining a resource occupation request, and determining resource occupation information and a user identifier of an occupation initiator according to request content of the resource occupation request.

[0054] Step 220: retrieving each historical resource occupation task corresponding to the user identifier from a preset transaction log library according to the user identifier, wherein the preset transaction log library is used to store task logs of historical resource occupation tasks of the user.

[0055] The transaction log library is a database or a file set specially constructed in a bank system, is used to archive and long-term save task logs of all historical resource occupation tasks according to the user identifier, and is used to completely retain task identifier, time stamp, resource consumption and resource occupation category and the like which are recorded in real time by the bank system in the process of each resource occupation task execution.

[0056] Step 230: determining task features of each historical resource occupation task from the task logs of the historical resource occupation tasks.

[0057] ​Specifically, the task feature of the historical resource occupation task is a set of key attributes extracted from the task log of the historical resource occupation task and capable of representing the resource usage mode of the task, used to quantitatively describe the actual demand and running behavior of the task on resources such as CPU, memory, network and database connection, and can include task identification, task time, resource consumption and resource occupation category, etc. The task feature can reflect the key attributes of the historical resource occupation task, and therefore, feature matching or feature scoring can be performed through the task feature, thereby helping to determine whether the resource occupation tasks of the same user belong to high load.

[0058] Step 240, determining a historical occupation category score according to the task feature of each historical resource occupation task.

[0059] Specifically, the historical occupation category score can be accurately determined through the task feature of the historical resource occupation task, thereby improving the determination accuracy of the load identification and improving the resource allocation efficiency.

[0060] Optionally, the task feature of the historical resource occupation task includes task time, resource occupation amount and historical load identification; and the determining of the historical occupation category score according to the task feature of each historical resource occupation task includes: determining a first preset weight, a second preset weight and a third preset weight corresponding to the task time, the resource occupation amount and the historical load identification; and determining the historical occupation category score according to the task time, the resource occupation amount and the historical load identification, and the first preset weight, the second preset weight and the third preset weight corresponding thereto.

[0061] The task time is the initiation time of the task, the resource occupation amount is the resource occupation quantity of the task, and the historical load identification is the load identification determined for the historical resource occupation task in the historical process, which can be determined manually or by the load identification determination method in the embodiment of the application.

[0062] Specifically, the first preset weight, the second preset weight and the third preset weight can be determined according to the specific values of the task time, the resource occupation amount and the historical load identification; and the weights corresponding to the above three indexes can be obtained through a preset value-weight mapping relationship. Since different values are mapped to different weights, the calculation accuracy of the historical occupation category score is improved.

[0063] Optionally, the determining the first preset weight, the second preset weight and the third preset weight according to the task time, the resource occupation and the historical load identifier comprises: determining the first preset weight corresponding to the task time based on a preset time mapping relationship and the task time, wherein the first preset weight is inversely proportional to the task time in the preset time mapping relationship; determining the second preset weight corresponding to the resource occupation based on a preset resource amount mapping relationship and the resource occupation, wherein the second preset weight is proportional to the resource occupation in the preset resource amount mapping relationship; and determining the third preset weight according to the historical load identifier.

[0064] Specifically, in the preset time mapping relationship, the earlier the task time is, the lower the reference value of the historical data to the current data is, and therefore the first preset weight is inversely proportional to the task time. In the preset resource amount mapping relationship, the greater the resource occupation of the historical task is, the higher the possibility that the user keeps high resource occupation in the current resource occupation task is, and therefore the user belongs to a high-load user, and therefore the second preset weight is proportional to the resource occupation. If most of the historical load identifiers are high-load identifiers, the probability that the current resource occupation task is determined as a high-load task increases. Through the inverse mapping of “the earlier the task time is, the lower the first preset weight is”, the influence of the obsolete historical data is automatically weakened, the score is more focused on the recent information with higher reference value, and therefore the timeliness and accuracy are improved. Through the proportional mapping of “the greater the resource occupation is, the higher the second preset weight is”, the system quickly identifies and amplifies the characteristics of the high-load user, avoids underestimating the potential resource demand, and reduces the risk of sudden resource occupation.

[0065] Step 250, determining a user score according to the user identifier.

[0066] Specifically, different users can correspond to different user scores, for example, the user score of a high-level user or a high-level member is higher.

[0067] Step 260, determining a current occupation category score according to the resource occupation and the user score.

[0068] Specifically, the occupation amount score can be determined according to the resource occupation amount of the current resource occupation task, and then the current occupation category score is determined according to the occupation amount score and the user score.

[0069] Further, the method for determining the current occupation category score according to the resource occupation information and the user identifier has the beneficial effect that the user score (reflecting the comprehensive evaluation of the historical behavior of the user) is determined based on the user identifier first, and then the current occupation category score is calculated according to the current resource occupation and the user score, which realizes the fusion evaluation of the historical user characteristics and the current resource demand, avoids the score deviation caused by relying on a single dimension (such as the current resource amount or the user identifier), and improves the comprehensiveness and accuracy of the current occupation category score.

[0070] Step 270, determining the load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score.

[0071] Step 280, determining the target resource pool according to the resource occupation information and the load identifier, wherein the resources in the target resource pool are used to respond to the resource occupation request whose load identifier meets the preset condition.

[0072] Exemplarily, Figure 3 The resource allocation schematic diagram provided by the embodiment of the application is as follows. Specifically, the network request (resource occupation request) is first intercepted by a unified entrance aspect, and it is determined by the system in real time whether it belongs to a high-load transaction. If it is hit, a high-load identifier is written in a thread-level public variable, so that the subsequent logic can share the state without explicit parameter passing. The business code continues to execute normally until it is intercepted again by a second aspect when accessing the database, the identifier is read and the database access identity is determined accordingly. If the identifier is high load, a dedicated "resource isolation user" is established to connect, which has an independent connection pool, flow limiting or independent instance, avoiding dragging down ordinary traffic. If the identifier is normal, the original user is used to maintain the default resource strategy. Finally, the request is interacted with the database by the application node carrying the selected user identity, realizing the comprehensive benefits of business zero-invasion, centralized configuration of governance strategy, accurate isolation of high load, and maximization of resource utilization. Further, the database side establishes a resource isolation user and configures the limit of cpu, memory and resource to prevent individual transaction anomalies from causing the database to be unavailable as a whole.

[0073] The embodiment of the application can accurately determine the category of the current resource occupation task by determining the historical occupation category score and the current occupation category score, and further can reasonably allocate the resource occupation in combination with the historical data and the current actual task.

[0074] Embodiment three

[0075] Figure 4 The structure schematic diagram of a resource allocation device provided by the third embodiment of the application is as follows. Figure 4 As shown in the figure, the device comprises:

[0076] The acquisition module 310 is configured to acquire a resource occupation request, and determine resource occupation information and a user identifier of an occupation initiator according to the request content of the resource occupation request.

[0077] The scoring module 320 is configured to determine a historical occupation category score according to the user identifier, and determine a current occupation category score according to the resource occupation information and the user identifier.

[0078] The identifier determination module 330 is configured to determine a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score.

[0079] The resource pool determination module 340 is configured to determine a target resource pool according to the resource occupation information and the load identifier, wherein resources in the target resource pool are used to respond to a resource occupation request whose load identifier satisfies a preset condition.

[0080] The embodiment of the application provides a resource allocation device, which comprises: a resource occupation request acquisition unit, a user identifier determination unit, a historical occupation category score determination unit, a current occupation category score determination unit, a load identifier determination unit, and a target resource pool determination unit.

[0081] Optionally, the score determination unit comprises a historical score subunit and a current score subunit.

[0082] The historical score subunit comprises:

[0083] The historical score subunit comprises:

[0084] The historical score subunit comprises:

[0085] The historical score subunit comprises:

[0086] The historical score subunit comprises:

[0087] The historical score subunit comprises:

[0088] The computing unit is configured to determine a historical occupation category score according to the task time, the resource occupation amount and the historical load identifier, and corresponding first preset weight, second preset weight and third preset weight.

[0089] Specifically, the weight determining sub-unit is configured to determine the first preset weight corresponding to the task time based on a preset time mapping relationship and the task time, wherein the first preset weight is inversely proportional to the task time in the preset time mapping relationship; determine the second preset weight corresponding to the resource occupation amount based on a preset resource amount mapping relationship and the resource occupation amount, wherein the second preset weight is proportional to the resource occupation amount in the preset resource amount mapping relationship; and determine the third preset weight according to the historical load identifier.

[0090] Optionally, the current score sub-module includes:

[0091] The user score determining unit is configured to determine a user score according to the user identifier.

[0092] The score unit is configured to determine a current occupation category score according to the resource occupation amount and the user score.

[0093] Optionally, the resource pool determining module 340 includes:

[0094] The category distinguishing unit is configured to determine a resource pool corresponding to the resource occupation category as a candidate resource pool.

[0095] The determining unit is configured to determine a target resource pool according to the current resource remaining of the candidate resource pool, the load identifier and the resource occupation amount.

[0096] Optionally, the apparatus further includes a sending module configured to add a resource occupation request to an execution queue of the target resource pool, so that the target resource pool executes the resource occupation request.

[0097] The resource allocation apparatus provided in the embodiments of the present application can execute the resource allocation method provided in any of the embodiments of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Embodiment Four

[0099] Figure 5A structural diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.

[0100] As shown, Figure 5 The electronic device 10 includes at least one processor 11, and memory, such as read-only memory 12, random access memory 13, etc., communicatively connected to the at least one processor 11, where the memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory 12 or loaded into the random access memory 13 from the storage unit 18. Various programs and data required for the operation of the electronic device 10 can also be stored in the random access memory 13. The processor 11, the read-only memory 12, and the random access memory 13 are connected to each other through a bus 14. An input / output interface 15 is also connected to the bus 14.

[0101] Various components in the electronic device 10 are connected to the input / output interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a magnetic disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0102] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs various methods and processes described above, such as the resource allocation method.

[0103] In some embodiments, the resource allocation method can be implemented as a computer program tangibly embodied in a computer readable storage medium, e.g., storage unit 18. In some embodiments, portions of the computer program, or all of the computer program, can be loaded onto the electronic device 10 via the read-only memory 12 and / or the communications unit 19. When the computer program is loaded onto the random access memory 13 and executed by the processor 11, one or more steps of the resource allocation method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured, by way of other any suitable means (e.g., by way of firmware), to perform the resource allocation method.

[0104] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits, application specific standard products, chips, microprocessors, computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0105] Computer programs implementing methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0106] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, 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 foregoing.

[0107] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0108] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0109] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business expansion in traditional physical host and cloud host service.

[0110] It should be understood that the various forms of flow shown above can be reordered, added to, or have steps deleted. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, and the present application is not limited herein.

[0111] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A resource allocation method, characterized in that: include: Obtaining a resource occupation request, and determining resource occupation information and a user ID of an occupation initiator according to the request content of the resource occupation request; Determining a historical occupancy category score based on the user identifier; Determine a current occupancy category score based on the resource occupancy information and the user identifier; Determining a load identifier of the resource occupation request according to the historical occupation category score and the current occupation category score; A target resource pool is determined according to the resource occupation information and the load identifier, wherein the resources in the target resource pool are used to respond to resource occupation requests whose load identifiers meet preset conditions.

2. The method according to claim 1, characterized in that Determining the historical occupancy category score according to the user identifier includes: Retrieving from a preset transaction log library according to the user identifier to obtain each historical resource occupation task corresponding to the user identifier, wherein the preset transaction log library is used to store task logs of the user's historical resource occupation tasks; Determining the task characteristics of each historical resource occupation task from the task logs of each historical resource occupation task; A historical resource occupation category score is determined according to the task characteristics of each historical resource occupation task.

3. The method according to claim 2, characterized in that The task characteristics of the historical resource occupation task include: task time, resource occupation amount and historical load identification; The determining of the historical resource occupation category score according to the task characteristics of each historical resource occupation task includes: Determine the corresponding first preset weight, second preset weight and third preset weight according to the task time, resource occupancy and historical load identifier; A historical occupancy category score is determined based on the task time, resource occupancy, and historical load identifier, as well as the corresponding first preset weight, second preset weight, and third preset weight.

4. The method according to claim 3, characterized in that The determining of the corresponding first preset weight, second preset weight, and third preset weight according to the task time, resource occupancy, and historical load identifier includes: Determining a first preset weight corresponding to the task time based on the preset time mapping relationship and the task time, wherein the first preset weight in the preset time mapping relationship is inversely proportional to the task time; Determining a second preset weight corresponding to the resource occupancy based on the preset resource amount mapping relationship and the resource occupancy, wherein the second preset weight in the preset resource amount mapping relationship is proportional to the resource occupancy; A third preset weight is determined according to the historical load identifier.

5. The method according to claim 1, wherein The resource occupancy information includes resource occupancy amount; The determining of the current occupancy category score according to the resource occupancy information and the user identifier includes: determining a user rating based on the user identifier; A current occupancy category score is determined based on the resource occupancy and the user score.

6. The method according to claim 1, characterized in that The resource occupancy information also includes resource occupancy categories; The determining of the target resource pool according to the resource occupancy information and the load identifier includes: Determine the resource pool corresponding to the resource occupancy category as a candidate resource pool; The target resource pool is determined according to the current resource remaining, load identifier and resource occupancy of the candidate resource pool.

7. The method according to claim 1, characterized in that Also includes: The resource occupation request is added to the execution queue of the target resource pool, so that the target resource pool executes the resource occupation request.

8. A resource allocation device, characterized in that: include: An acquisition module is used to acquire a resource occupation request and determine resource occupation information and a user ID of an occupation initiator according to the request content of the resource occupation request; A scoring module, configured to determine a historical occupancy category score based on the user identifier; Determine a current occupancy category score based on the resource occupancy information and the user identifier; an identifier determination module, configured to determine a load identifier of the resource occupation request according to the historical occupancy category score and the current occupancy category score; The resource pool determination module is used to determine a target resource pool according to the resource occupancy information and the load identifier, wherein the resources in the target resource pool are used to respond to resource occupancy requests whose load identifier meets preset conditions.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the resource allocation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource allocation method according to any one of claims 1 to 7 when executed.