Resource balanced scheduling method, device, equipment, medium and program product

By generating a probability distribution function based on historical records and dynamically adjusting the resource allocation ratio, the problem of uneven resource allocation in the banking industry is solved, the timeliness and fairness of resource processing are achieved, and the balance of business processing and operator productivity are improved. use.

CN118733280APending Publication Date: 2024-10-01CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411106619.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the banking industry, commonly used priority allocation strategies lead to uneven resource allocation when faced with resources that are homogeneous, large in number, and have no obvious difference in priority indicators, and cannot take into account the balance of resources and the full use of personnel capacity.

Method used

By regularly obtaining the proportion of resource items to be processed, generating a probability distribution function based on historical records, dynamically adjusting the resource allocation ratio, and allocating resources according to the occurrence probability of resource types, ensuring the timeliness and fairness of resource processing.

Benefits of technology

It achieves the unification of timeliness and fairness in resource processing, improves the balance of business processing, fully utilizes operator productivity, and improves customer experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733280A_ABST
    Figure CN118733280A_ABST
Patent Text Reader

Abstract

The invention provides a resource balanced scheduling method, which is applied to the technical field of computers, and comprises the following steps: acquiring current to-be-processed resource items, and counting the proportion of resource items of various resource types in the to-be-processed resource items; in response to the resource acquisition request, the proportions of the resource items of various resource types in the to-be-processed resource items are sent to a client, the client is configured with various probability distribution functions, and the probability distribution functions are generated based on historical generation record statistics of the resource items of various resource types; matching a target probability distribution function in response to the proportion distribution condition of the resource items of each resource type in the to-be-processed resource items by the client, and obtaining the distribution probability of the resource items of each resource type in the to-be-processed resource items based on the target probability distribution function; and by taking the distribution probability as an acquisition probability of the corresponding resource item, acquiring the resource item from the to-be-processed resource items and sending the resource item to the client. The invention further provides a resource balanced scheduling device and equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the trend of intensive development in the banking industry, more and more businesses are being concentrated in the middle and back-end for processing, resulting in the limited staff in the middle and back-end facing a large number of pending businesses. In the commonly used allocation strategy, attributes such as customer importance and processing timeliness are calculated to form priority indicators as the basis for allocation. However, when faced with homogeneous resources with large quantities and unclear priority indicators, the strategy of allocating resources based on priority will degenerate into sequential allocation based on one or several specific attributes (such as time and business type), resulting in only processing resources of the same type in the same time period, and failing to balance resources and fully utilize personnel capacity. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a resource balancing scheduling method, apparatus, device, medium and program product for improving resource allocation efficiency.

[0004] According to the first aspect of the present disclosure, a resource balancing scheduling method is provided, the method comprising: regularly acquiring current resource items to be processed, and counting the proportion of resource items of each resource type in the resource items to be processed; in response to a resource acquisition request, sending the proportion of resource items of each resource type in the resource items to be processed to a client, the client being configured with a plurality of probability distribution functions, the probability distribution functions being statistically generated based on historical generation records of the resource items of each resource type, and different probability distribution functions representing the distribution probabilities of each resource item under different production environments; in response to the client matching a target probability distribution function based on the distribution of the proportions of resource items of each resource type in the resource items to be processed, acquiring the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function; acquiring resource items from the resource items to be processed based on the acquisition probability and sending them to the client.

[0005] According to an embodiment of the present disclosure, the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function includes: matching the resource items of each resource type in the resource items to be processed with the corresponding resource items in the target probability distribution function, acquiring the distribution probability of the resource items, and using the distribution probability as the acquisition probability, wherein the acquisition probability represents the priority of the resource items to be processed.

[0006] According to an embodiment of the present disclosure, the sending of resource items of each resource type to the client based on the acquisition probability includes: determining the number of resource items of each resource type acquired by the client this time based on the acquisition probability and the total number of resource items acquired by the client at a single time; acquiring the corresponding number of resource items of each resource type from the resource items to be processed and sending them to the client.

[0007] According to an embodiment of the present disclosure, the method includes: counting the historical generation records of the resource items of each resource type processed by the client at preset time intervals, the historical generation records including the historical generation quantity of the resource items of each resource type, characterizing the distribution of resource items of each resource type under different production environments; and updating the probability distribution function in the client based on the historical records.

[0008] According to an embodiment of the present disclosure, the timed acquisition of the current resource items to be processed includes: detecting whether the previous batch of the resource items to be processed have been processed by the client; when the previous batch of the resource items to be processed have been processed and the timed time has arrived, acquiring the current resource items to be processed.

[0009] According to an embodiment of the present disclosure, before executing the method, it also includes: when the number of the resource items to be processed is greater than a preset threshold, allocating the resource items to be processed to multiple distributed servers; when a resource acquisition request from the client is obtained, forwarding the resource acquisition request to a corresponding distributed server based on the resource acquisition request containing a distributed server code, and responding to the resource acquisition request from the client based on the distributed server code.

[0010] According to an embodiment of the present disclosure, the method includes: binding the to-be-processed resource item with its source code; accessing a source database of the to-be-processed resource item based on the source code to obtain resource items of various resource types and sending them to the client.

[0011] According to a second aspect of the present disclosure, a resource balancing scheduling device is provided, the device comprising: a resource proportion calculation module, used to periodically obtain current resource items to be processed, and count the proportion of resource items of each resource type in the resource items to be processed; a proportion result sending module, used to send the proportion of resource items of each resource type in the resource items to be processed to a client in response to a resource acquisition request, the client is configured with a plurality of probability distribution functions, the probability distribution functions are statistically generated based on historical generation records of the resource items of each resource type, and different probability distribution functions represent the distribution probability of each resource item under different production environments; an acquisition probability determination module, used to match a target probability distribution function based on the proportion distribution of resource items of each resource type in the resource items to be processed in response to the client, and obtain the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function; a resource allocation module, used to obtain resource items from the resource items to be processed based on the acquisition probability and send them to the client.

[0012] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0013] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0014] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0016] Figure 1 The application scenario diagram of the resource balancing scheduling method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;

[0017] Figure 2 A flowchart of a resource balancing scheduling method according to an embodiment of the present disclosure is schematically shown;

[0018] Figure 3 The following schematically shows an application flow diagram of the resource balancing scheduling method according to an embodiment of the present disclosure;

[0019] Figure 4A schematic diagram shows a structural block diagram of a resource balancing scheduling device according to an embodiment of the present disclosure; and

[0020] Figure 5 A block diagram of an electronic device suitable for implementing a resource balancing scheduling method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0021] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0023] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0024] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0025] It should be noted that the resource balancing scheduling method and device provided in the present disclosure can be used for resource allocation in the business processing process in the financial field, and can also be used in any field other than the financial field. The application field of the resource balancing scheduling method and device provided in the present disclosure is not limited.

[0026] The acquisition, transmission, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0027] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0028] Common resource allocation strategies have a main allocation line: priority. Priority can be business attributes such as resource acceptance time, resource type or customer type. The system calculates these resource attributes based on a certain algorithm, obtains a comparable value as the priority, and then allocates resources according to the priority.

[0029] The advantage of the commonly used resource allocation strategy is that it can process and grade resources according to their importance. Its disadvantages are: first, it is necessary to set clear priorities for resources according to one or more resource attributes. If the allocation priority of resources is set according to some attributes, then this allocation strategy is not a fair allocation strategy for the remaining resource attributes; second, it is impossible to evenly allocate resources with unclear priority differences. For resources with similar timeliness and importance, the priority difference is not obvious. Allocation strategies that rely on strong priorities will degenerate into sequential allocation according to one or several specific attributes, resulting in the situation where only the same type of resources are processed in the same time period, and it is impossible to take into account the fairness of resource allocation, the balance of resource processing, and the full utilization of personnel capacity; third, for resources whose priorities cannot be accurately defined, it is impossible to evenly allocate them. For resources of the same type (such as background audit resources), the priority can be calculated based on some common attributes of the resources (such as acceptance time, business type or amount, etc.) for allocation. However, for some resources from different sources (such as front desk review, office email processing, customer complaint response, etc.), since the resources themselves are not in the same business dimension, but are the work that operators need to face every day, the processing of these resources can only be selected based on the operator's own experience and cannot be allocated according to specific priorities.

[0030] The disclosed embodiment proposes a distribution scheme that relies on resource distribution for resources whose priorities cannot be clearly defined, and specifically provides a resource balancing scheduling method. The method includes: regularly obtaining the current resource items to be processed, and counting the proportion of resource items of each resource type in the resource items to be processed; in response to a resource acquisition request, sending the proportion of resource items of each resource type in the resource items to be processed to the client, the client is configured with a variety of probability distribution functions, the probability distribution function is statistically generated based on the historical generation records of resource items of each resource type, and different probability distribution functions represent the distribution probability of each resource item under different production environments; in response to the client matching the target probability distribution function based on the distribution of the proportion of resource items of each resource type in the resource items to be processed, obtaining the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function; obtaining resource items from the resource items to be processed based on the acquisition probability and sending them to the client.

[0031] This method uses the fact that the generation rules of resource items conform to the probability function to adapt the acquisition probability of resource items to the probability function. For a large number of resources with the same priority but different types, the resource allocation ratio is dynamically adjusted according to the type and quantity of the current resources, so that resources with the same priority can obtain allocation opportunities according to their probability of appearing in the system, so as to achieve the unity of timeliness and fairness in resource processing.

[0032] Figure 1 The application scenario diagram of the resource balancing scheduling method and device according to the embodiment of the present disclosure is schematically shown.

[0033] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a business processing scenario of a bank. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0034] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 as clients to interact with the server 105 through the network 104 to obtain the allocation of resource items to be processed and process the resource items. Various service clients can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103 to obtain the resource items to be processed and process the resource items.

[0035] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting network communication, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0036] The server 105 may be a server that provides various services, such as maintaining resource allocation strategies, caching resource items to be processed, allocating resource items to clients, etc. The background management server may analyze and process the received user request data, and feed back the processing results (such as resource items of various resource types, etc.) to the terminal device.

[0037] It should be noted that the resource balancing scheduling method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the resource balancing scheduling device provided in the embodiment of the present disclosure can generally be set in the server 105. The resource balancing scheduling method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the resource balancing scheduling device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0039] The following will be based on Figure 1 The scene described by Figure 2~Figure 3 The resource balancing scheduling method of the disclosed embodiment is described in detail.

[0040] Figure 2 The flowchart of the resource balancing scheduling method according to the embodiment of the present disclosure is schematically shown.

[0041] like Figure 2 As shown, the resource balancing scheduling method of this embodiment includes operations S210 to S240, and the transaction processing method can be executed sequentially by the servers that allocate resources.

[0042] In operation S210, the current resource items to be processed are obtained at a regular interval, and the proportion of resource items of each resource type in the resource items to be processed is counted.

[0043] The resource items to be processed can be pending businesses in industries such as finance, or some project resources in various industries (such as computing resources, financial resources, data resources, etc.).

[0044] In the disclosed embodiment, the server includes a resource cache client, which can periodically obtain resource items to be processed from the terminal device communicating with it, and prepare for allocating the resource items to be processed to the client that processes the resource items to be processed. The preparation includes counting the number of resource items to be processed according to the resource type, and calculating the proportion of data items of each resource type in the current resource items to be processed. The data proportion reflects the generation rules of different resource items, which can be used as a reference standard for fair allocation of resources in the later stage.

[0045] In operation S220, in response to the client's resource acquisition request, the proportion of resource items of each resource type in the resource items to be processed is sent to the client. The client is configured with multiple probability distribution functions, and the probability distribution function is generated based on the historical generation record statistics of the resource items of each resource type. Different probability distribution functions represent the distribution probability of each resource item under different production environments.

[0046] In the disclosed embodiment, when the client is idle, the client can actively initiate a resource acquisition request to the server, requesting to obtain the pending resource items. The server sends the proportion of resource items of each resource type in the current pending resource items to the client, so that the client can determine how much acquisition probability can be configured for the resource items of each resource type in the current pending resource items. The data proportion reflects the generation law of each type of resource items. By presetting a probability function that conforms to the resource generation law on the client, the resource acquisition frequency can be adapted to the resource generation law, so as to achieve the unity of timeliness and fairness of resource processing, and to perform balanced cache allocation of resource items.

[0047] Optionally, the probability distribution function configured by the client may include, but is not limited to, a normal distribution function, a uniform distribution function, an exponential distribution, and other continuous probability functions. The probability distribution function configured by the client is generated based on the historical generation rules of various types of resource items.

[0048] In operation S230, in response to the client matching the target probability distribution function based on the distribution of the proportions of resource items of each resource type in the resource items to be processed, the acquisition probability of the resource items of each resource type in the resource items to be processed is obtained based on the target probability distribution function.

[0049] In the disclosed embodiment, the client matches the proportion distribution of resource items of each resource type in the resource items to be processed with a pre-configured probability distribution function to obtain a target probability distribution function that is most similar to the proportion distribution of the resource items to be processed. When obtaining the target probability distribution function matched by the client, the client matches the target probability distribution function based on the proportion distribution of resource items of each resource type in the resource items to be processed, and the target probability distribution function reflects the proportion distribution probability of resource items of each resource type; the resource items of each resource type in the resource items to be processed are input into the target probability distribution function, and the proportion distribution of resource items of each resource type can be obtained. In the disclosed embodiment, the proportion distribution of resource items of each resource type is used as the acquisition probability to characterize the priority of resource items to be processed. This method adapts the frequency of resource acquisition to the law of resource generation to achieve the unity of timeliness and fairness in resource processing.

[0050] In operation S240 , resource items of various resource types are sent to the client based on the acquisition probability.

[0051] The resource balancing scheduling method provided by the embodiment of the present disclosure utilizes the characteristic that the generation rule of resource items conforms to the probability function, adapts the probability of obtaining resource items to the probability function, and dynamically adjusts the resource allocation ratio according to the type and quantity of current resources for a large number of resources with the same priority level but different types, so that resources with the same priority level can obtain allocation opportunities according to their probability of appearing in the system, so as to achieve the unity of timeliness and fairness in resource processing.

[0052] Figure 3 The application flow diagram of the resource balancing scheduling method according to the embodiment of the present disclosure is schematically shown.

[0053] like Figure 3 As shown, the resource balancing scheduling method provided by the embodiment of the present disclosure can be implemented based on a resource cache server, a resource acquisition client, and a resource allocation strategy selector configured by the resource acquisition client.

[0054] refer to Figure 2 According to the description, the resource cache server is the execution subject of the resource balancing scheduling method provided by the embodiment of the present disclosure. According to operations S210 to S240, the resource cache server obtains the resource items to be processed from the database, and counts the proportion of resource items of each resource type in the resource items to be processed, and sends the proportion distribution of each resource item to the client.

[0055] In order to facilitate the client to identify the source of the resource item, the resource cache server performs operations S311 to S312 after obtaining the resource item to be processed.

[0056] In operation S311, the resource item to be processed is bound to its source code.

[0057] In operation S312, a source database of the resource item to be processed is accessed based on the source code to obtain resource items of various resource types and send them to the client.

[0058] The resource cache server periodically obtains the currently processed resource items from the database, establishes a resource cache in the memory according to the resource type, and forms a resource storage key-value pair <resource type, resource ID> by binding the resource item to its source code ID. This is used to obtain resources based on the type, making it easier for the client to identify the source of the resource item. Based on the source code ID, the client can quickly access the source to obtain the corresponding resource item.

[0059] The resource cache server counts the current distribution of pending resources in real time (resource type, resource quantity), forms the proportion of pending resources of each resource type in the current data, and pushes the resource proportion data to the client. For example, the data sent to the client may be in the form of <foreign exchange review, 3%>, <anti-fraud review, 22%>, <unit account review, 30%>, <centralized authorization, 45%>.

[0060] In the disclosed embodiment, the resource cache server periodically obtains the resource items to be processed and sends them to the client after counting the proportion of resource items of each resource type. In order to prevent the situation where the resource items to be processed are piled up on the client, the resource cache server needs to perform operations S313-S314 after sending the proportion of the current resource items to be processed to the client and before sending the proportion information of the next batch of resource items to be processed to the client.

[0061] In operation S313, it is detected whether the previous batch of resource items to be processed have been processed by the client.

[0062] In operation S314, when the previous batch of resource items to be processed have been processed and the timing has arrived, the current resource items to be processed are obtained.

[0063] When and only when the client has processed the previous batch of pending resource items and has free time, the server will obtain the next batch of pending resource items and allocate them to the client for processing, to prevent the situation of resource items being piled up on the client.

[0064] like Figure 3 As shown in the figure, the resource allocation strategy selector has built-in common continuous probability functions based on normal distribution, uniform distribution, and exponential distribution, so that the client can select the function and generate the probability of obtaining a certain type of resource. For example, for the normal distribution strategy, according to the standard normal distribution function table, the following normal probability table data is generated and synchronized to the client.

[0065] The resource acquisition client receives the function data table pushed by the resource allocation strategy selector, receives the distribution of the current resources to be processed from the resource cache server, and matches the appropriate allocation strategy.

[0066] If the distribution of the business data to be processed received by the client is <Foreign Exchange Review, 3%>, <Anti-Fraud Review, 22%>, <Unit Account Review, 30%>, <Centralized Authorization, 45%>, and its distribution pattern verifies the normal distribution characteristics, then the normal distribution function data table is loaded. The foreign exchange review business accounts for 3%, which matches the extremely small probability part x≤5% in the normal distribution function; the anti-fraud review business accounts for 22%, which matches the small probability part x≤30% in the normal distribution function; the unit account review and centralized authorization review business match the general probability part x≤60% in the normal distribution function; then when the client actively initiates resource acquisition, 5% of the acquisition times will be allocated to the foreign exchange review business; 30% of the acquisition times will be allocated to the anti-fraud review; and the remaining 60%≤x≤(100%-5%-30%)=65% of the acquisition times will be allocated to the unit account review and centralized authorization review business.

[0067] After determining the acquisition probability of the resource items of each resource type, the resource cache server sends the resource items of each resource type to the client based on the acquisition probability, including operations S315-S316.

[0068] In operation S315 , based on the acquisition probability and the total number of resource items acquired by the client at a single time, the acquisition quantity of resource items of each resource type acquired by the client this time is determined.

[0069] In operation S316, resource items of corresponding quantities of each resource type are obtained from the resource items to be processed and sent to the client.

[0070] In the embodiment of the present disclosure, in order to ensure balanced resource allocation, the probability distribution function needs to be updated in a timely manner, including operations S317 to S318.

[0071] In operation S317, historical generation records of resource items of each resource type processed by the client are counted at every preset time period. The historical generation records include the historical generation quantity of resource items of each resource type, representing the distribution of resource items of each resource type in different production environments.

[0072] In operation S318, the probability distribution function in the client is updated based on the historical records.

[0073] According to the type and quantity of current resources, the resource allocation ratio is dynamically adjusted so that resources with the same priority can get allocation opportunities according to their probability of appearing in the system.

[0074] Based on the method provided by the embodiment of the present disclosure and in combination with the characteristics of background resource generation, a probability function that conforms to the law of resource generation is preset, and the resource acquisition frequency is adapted to the law of resource generation. This can achieve the unity of timeliness and fairness in resource processing, and achieve staggered processing of peak services through cache allocation of resources, which greatly improves the balance of business processing and fully utilizes the operator's production capacity, thereby greatly improving the customer experience.

[0075] Furthermore, the method can be expanded. When the number of resource items to be processed is greater than a preset threshold, the resource items to be processed are allocated to multiple distributed servers; when a resource acquisition request from a client is obtained, the resource acquisition request is forwarded to a corresponding distributed server based on the distributed server code included in the resource acquisition request, and operations S210 to S240 are performed based on the distributed server responding to the resource acquisition request from the client.

[0076] Specifically, for the allocation scenario of massive resources, the system supports the aggregation and splitting of resource cache servers according to business types. Each resource cache server caches several types of resource items <resource type, resource ID, server ID>. Each cache service counts the current distribution of pending resources <resource type, resource quantity, server ID> in real time, forms the proportion of pending resources of each resource type in the current data, and pushes the resource proportion data to the client. The client integrates the resource type situation of each server, calculates the probability of accessing each type of resource in the global scope, and accesses the corresponding server according to the probability of each type of resource and the server ID to which the resource currently belongs.

[0077] Based on the above resource balancing scheduling method, the present disclosure also provides a resource balancing scheduling device. Figure 4 The device is described in detail.

[0078] Figure 4 The structure block diagram of the resource balancing scheduling device according to the embodiment of the present disclosure is schematically shown.

[0079] like Figure 4 As shown, the resource balancing scheduling device 400 of this embodiment includes a resource proportion calculation module 410 , a proportion result sending module 420 , an acquisition probability determination module 430 and a resource allocation module 440 .

[0080] The resource proportion calculation module 410 is used to periodically obtain the current resource items to be processed and count the proportions of resource items of various resource types in the resource items to be processed. In one embodiment, the resource proportion calculation module 410 can be used to perform the operation S210 described above, which will not be repeated here.

[0081] The proportion result sending module 420 is used to respond to the resource acquisition request and send the proportion of resource items of each resource type in the resource items to be processed to the client. The client is configured with multiple probability distribution functions. The probability distribution function is generated based on the historical generation record statistics of the resource items of each resource type. Different probability distribution functions represent the distribution probability of each resource item under different production environments. In one embodiment, the proportion result sending module 420 can be used to perform the operation S220 described above, which will not be repeated here.

[0082] The acquisition probability determination module 430 is used to match the target probability distribution function based on the distribution of the proportions of resource items of each resource type in the resource items to be processed by the client, and obtain the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function. In one embodiment, the acquisition probability determination module 430 can be used to perform the operation S230 described above, which will not be repeated here.

[0083] The resource allocation module 440 is used to obtain resource items from the resource items to be processed based on the acquisition probability and send them to the client. In one embodiment, the resource allocation module 440 can be used to perform the operation S240 described above, which will not be repeated here.

[0084] According to an embodiment of the present disclosure, any multiple modules among the resource proportion calculation module 410, the proportion result sending module 420, the acquisition probability determination module 430 and the resource allocation module 440 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the resource proportion calculation module 410, the proportion result sending module 420, the acquisition probability determination module 430 and the resource allocation module 440 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the resource proportion calculation module 410, the proportion result sending module 420, the acquisition probability determination module 430 and the resource allocation module 440 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0085] Figure 5 A block diagram of an electronic device suitable for implementing a resource balancing scheduling method according to an embodiment of the present disclosure is schematically shown.

[0086] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0087] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0088] According to an embodiment of the present disclosure, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the input / output (I / O) interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage portion 508 as needed.

[0089] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0090] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.

[0091] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the resource balancing scheduling method provided by the embodiment of the present disclosure.

[0092] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 501. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0093] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0094] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0095] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0096] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0097] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0098] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A resource balancing scheduling method, characterized in that: The method comprises: Obtain the current resource items to be processed regularly, and count the proportion of resource items of each resource type in the resource items to be processed; In response to a resource acquisition request, the proportion of resource items of each resource type in the resource items to be processed is sent to a client, wherein the client is configured with a plurality of probability distribution functions, wherein the probability distribution functions are statistically generated based on historical generation records of the resource items of each resource type, and different probability distribution functions represent the distribution probability of each resource item under different production environments; In response to the client matching a target probability distribution function based on the distribution of the proportions of resource items of each resource type in the resource items to be processed, obtaining the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function; A resource item is acquired from the resource items to be processed based on the acquisition probability and sent to the client.

2. The method according to claim 1, characterized in that The obtaining probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function includes: Match resource items of each resource type in the resource items to be processed with corresponding resource items in the target probability distribution function, obtain the distribution probability of the resource items, and use the distribution probability as the acquisition probability, wherein the acquisition probability represents the priority of the resource items to be processed.

3. The method according to claim 1, characterized in that The sending of resource items of various resource types to the client based on the acquisition probability comprises: Determine the number of resource items of each resource type acquired by the client this time based on the acquisition probability and the total number of resource items acquired by the client at a single time; Obtain resource items of corresponding quantities for each resource type from the resource items to be processed and send them to the client.

4. The method according to claim 1, characterized in that: The method comprises: Counting historical generation records of resource items of each resource type processed by the client at every preset time period, wherein the historical generation records include the historical generation quantity of resource items of each resource type, and represent the distribution of resource items of each resource type in different production environments; A probability distribution function in the client is updated based on the historical record.

5. The method according to claim 1, characterized in that: The timed acquisition of the current resource item to be processed includes: Detect whether the previous batch of resource items to be processed have been processed by the client; When the previous batch of resource items to be processed have been processed and the timing time has arrived, the current resource items to be processed are obtained.

6. The method according to claim 1, characterized in that Before executing the method, the method further includes: When the number of the resource items to be processed is greater than a preset threshold, the resource items to be processed are distributed to multiple distributed servers; When the resource acquisition request of the client is obtained, the resource acquisition request is forwarded to the corresponding distributed server based on the distributed server code included in the resource acquisition request, and the distributed server responds to the resource acquisition request of the client.

7. The method according to any one of claims 1 to 6, characterized in that: The method comprises: Binding the resource item to be processed to its source code; The source database of the resource item to be processed is accessed based on the source code to obtain resource items of various resource types and send them to the client.

8. A resource balancing scheduling device, characterized in that: The device comprises: The resource proportion calculation module is used to periodically obtain the current resource items to be processed and count the proportion of resource items of each resource type in the resource items to be processed; A proportion result sending module is used to send the proportion of resource items of each resource type in the resource items to be processed to the client in response to the resource acquisition request, and the client is configured with a plurality of probability distribution functions, and the probability distribution functions are statistically generated based on the historical generation records of the resource items of each resource type, and different probability distribution functions represent the distribution probability of each resource item under different production environments; An acquisition probability determination module, configured to, in response to the client matching a target probability distribution function based on the distribution of the proportions of resource items of each resource type in the resource items to be processed, acquire the acquisition probability of resource items of each resource type in the resource items to be processed based on the target probability distribution function; A resource allocation module is used to obtain resource items from the resource items to be processed based on the acquisition probability and send them to the client.

9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.