Batch data processing method, device, equipment and storage medium

By constructing data queues and task processors, batch data processing is performed based on server information and data characteristics, which solves the problems of low efficiency and complexity of large batch data processing in the existing technology, and achieves efficient and flexible data processing and storage.

CN118567870BActive Publication Date: 2024-10-25HANGZHOU ZHENGYUN DATA TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411046663.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-25
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Existing large-volume data processing methods are inefficient and complex, and cannot effectively shorten processing time. Especially in the processing of very large data in the field of government and finance, system processing efficiency is low or programming knowledge is required, which increases operational complexity.

Method used

Build a data queue by obtaining server-related information, determine the data type and select the corresponding task processor, build a target processor based on the number of processors and data volume, perform batch data processing and store the processing results, which improves data processing efficiency and flexibility. Build task processors precisely to avoid wasting resources.

Benefits of technology

It improves the efficiency of batch data processing, reduces complexity, achieves accurate construction and flexibility of task processors, avoids waste of resources, and simplifies the data processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567870B_ABST
    Figure CN118567870B_ABST
Patent Text Reader

Abstract

The present invention discloses a batch data processing method, device, equipment and storage medium. The method comprises: obtaining server-related information of the batch data to be processed, and constructing a data queue according to the server-related information; determining the data type of the batch data to be processed, and selecting a target task processor corresponding to the data type from at least one reference task processor; determining the number of processors of the target task processor to be constructed, and constructing at least one target task processor based on the number of processors; determining the data processing capacity of each target task processor according to service-related information; sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing capacity to obtain a data processing result; the target task processor sends its own data processing result to a pre-constructed target memory, so that the target memory can store the data processing result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a batch data processing method, device, equipment and storage medium. Background Art

[0002] In various industries, various systems related to the industry often have large amounts of data that need to be processed and stored. For example, in the field of government finance, there are tens of thousands of departments in various organizations, and each department has a corresponding financial data entry system every day. As the financial data grows, it becomes a large data set. Among these data sets, large amounts of data need to be processed and stored frequently.

[0003] There are two existing methods for processing large amounts of data: one is to wait for a long time for the system to process itself, and the system is inefficient in processing data; the other is to use another script method to assist in batch data processing. In the first method, the system cannot be used during the data processing process, which affects the work progress. Although the second method can shorten the time, script writing requires the operator to have a certain understanding of programming knowledge, which increases the complexity.

[0004] In summary, the current method of processing large quantities of data is relatively complicated, and the processing time of batch data is relatively long. Summary of the invention

[0005] The present invention provides a batch data processing method, device, equipment and storage medium to improve batch data processing efficiency and reduce batch data processing complexity.

[0006] According to one aspect of the present invention, a batch data processing method is provided, the method comprising:

[0007] Obtain server-related information of the server to which the batch data to be processed belongs, and build a data queue according to the server-related information;

[0008] Determine the data type of the batch data to be processed, and select a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types;

[0009] Determining the number of processors of the target task processor to be constructed, and constructing at least one target task processor based on the number of processors;

[0010] Determine the data processing capacity of each target task processor according to the service related information;

[0011] Sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing volume to obtain a data processing result;

[0012] The target task processor sends its own data processing results to the pre-built target memory so that the target memory can store the data processing results.

[0013] According to another aspect of the present invention, there is provided a batch data processing device, the device comprising:

[0014] A queue construction module is used to obtain server-related information of the server to which the batch data to be processed belongs, and to construct a data queue according to the server-related information;

[0015] A processor determination module, used to determine the data type of the batch data to be processed, and select a target task processor corresponding to the data type from at least one pre-built reference task processor; each of the reference task processors is used to process batch data of different data types;

[0016] A processor construction module, used to determine the number of processors of the target task processor to be constructed, and to construct at least one target task processor based on the number of processors;

[0017] A data processing volume determination module, used to determine the data processing volume of each target task processor according to the service related information;

[0018] A data processing module, used for sending batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing amount to obtain a data processing result;

[0019] The processing result sending module is used for the target task processor to send its own data processing results to the pre-built target memory so that the target memory can store the data processing results.

[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0021] at least one processor; and

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the batch data processing method described in any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the batch data processing method described in any embodiment of the present invention when executed.

[0025] The above technical solution improves data processing efficiency and reduces the complexity of batch data processing by constructing a certain number of task processors to process large batches of data. It also determines the required number of task processors and the amount of data that can be processed based on corresponding strategies, thereby improving the precise construction of task processors and avoiding waste of resources. Task processors are constructed for different batch data processing tasks based on the characteristics of the task itself and the server to which it belongs, thereby improving the flexibility of task processor construction and realizing targeted construction of task processors.

[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 is a flow chart of a batch data processing method provided according to Embodiment 1 of the present invention;

[0029] Figure 2 is a flow chart of a batch data processing method provided according to Embodiment 2 of the present invention;

[0030] Figure 3 is a flow chart of a batch data processing method provided according to Embodiment 3 of the present invention;

[0031] Figure 4 is a flow chart of a batch data processing method provided according to a fourth embodiment of the present invention;

[0032] Figure 5 is a structural schematic diagram of a batch data processing device provided according to Embodiment 5 of the present invention;

[0033] Figure 6 It is a structural schematic diagram of an electronic device for implementing the batch data processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0036] Embodiment 1

[0037] Figure 1 This is a flow chart of a batch data processing method provided in the first embodiment of the present invention. This embodiment is applicable to the situation of quickly processing and storing ultra-large batch data. The method can be executed by a batch data processing device. The batch data processing device can be implemented in the form of hardware and / or software. The batch data processing device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0038] S110, obtaining server-related information of the server to which the batch data to be processed belongs, and constructing a data queue according to the server-related information.

[0039] The batch data to be processed may be data that needs to be processed or stored in batches and is generated by an application program or application system with a large demand for data processing or data storage.

[0040] The server-related information may include server memory capacity and server CPU (Central Processing Unit) information, etc. The server CPU information may include CPU quantity information, CPU power consumption information, CPU type information, CPU architecture information, and CPU cache information, etc.

[0041] Exemplarily, the pre-built middle-stage data processor and the corresponding processor container can store the acquired batch data to be processed in the processor container. The middle-stage data processor obtains the server-related information of the server to which the batch data to be processed belongs, and determines the amount of data that the middle-stage data processor can process based on the server-related information, and can determine the number of queues of the data queues to be constructed, and constructs the processing thread of the middle-stage data processor.

[0042] Optionally, the number of queues of the data queues to be constructed may be determined according to the server-related information and the data structure of the batch data to be processed. Different business data may have different data structures. For example, if the batch data to be processed is banking business data, such as vouchers or reimbursement documents, the corresponding data structure may include summary, amount, order, etc.

[0043] Specifically, if the server content capacity is large, the number of CPUs is large, and the types of data type structures of the batch data to be processed are small, a smaller number of data queues can be set. The correspondence between the number of queues of the data queues and the service-related information and data types can be pre-set by relevant technical personnel, and this embodiment does not limit this.

[0044] Alternatively, the queue quantity of the data queue can be predicted using a pre-trained queue quantity prediction model. Specifically, the preset network model can be trained through historical server-related information in a historical time period and the data type of historical batch data to obtain a queue quantity prediction model for queue quantity prediction.

[0045] S120, determining the data type of the batch data to be processed, and selecting a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types.

[0046] The logic code of the task processing class corresponding to the data type can be preset by relevant technical personnel, and the logic code of the task processing class corresponding to different data types is different. For example, the logic code of the task processing class corresponding to data type A can be H1; the logic code of the task processing class corresponding to data type B can be H2. The logic codes of different data types are pre-written by relevant technical personnel, and when executing batch data processing tasks, the logic codes are called according to the data types.

[0047] Specifically, when calling logic codes of different data types, the calls can be made by defining tags. For example, the pre-defined tag can be "@handler", in which the reference task processor of the data type can be defined. When building the reference task processor, the reference task processor can be obtained through the managed @handler tag, thereby completing the call of the corresponding reference task processor.

[0048] Specifically, the middle-stage data processor can select a target task processor corresponding to the data type of the batch data to be processed from at least one pre-built reference task processor, and complete the call to the target task processor through the defined @handler tag.

[0049] It should be noted that since the amount of batch data to be processed is large, the number of target task processors to be called or constructed may be one or more. Therefore, the number of processors of the target task processor needs to be further determined according to actual needs.

[0050] S130: Determine the number of processors of the target task processor to be constructed, and construct at least one target task processor based on the number of processors.

[0051] Exemplarily, the middle station data processor can determine the number of processors of the target task processor to be constructed according to the amount of batch data to be processed. Specifically, the specific mapping relationship between the amount of batch data to be processed and the number of processors can be preset by relevant technical personnel. For example, the more the amount of batch data to be processed, the more processors the task processor has; the less the amount of batch data to be processed, the less processors the task processor has. Based on the determined number of processors, a corresponding number of target task processors are constructed.

[0052] S140: Determine the data processing capacity of each target task processor according to the service related information.

[0053] Exemplarily, the middle station data processor can determine the data processing capacity of each target task processor based on the amount of memory space in the service related information, the amount of batch data to be processed and the number of processors of the target task processor. Specifically, it can be to determine the number of data queues required to be constructed by the target task processor and construct the corresponding data processing thread.

[0054] S150, sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing capacity to obtain data processing results.

[0055] Exemplarily, the middle-stage data processor sends corresponding batch data to be processed to each target task processor through the constructed data queue. Each target task processor performs batch data processing on the batch data to be processed sent to its own data queue based on its own data processing capacity, and obtains the data processing results of each batch data to be processed.

[0056] S160: The target task processor sends its own data processing result to a pre-built target memory, so that the target memory stores the data processing result.

[0057] Each target task processor sends its own data processing results to a pre-built target memory. For example, the target memory can be a pre-built database. The number of target memories can be one or more, which can be pre-set according to the actual task volume. The target memory locally stores the data processing results sent by the target task processor.

[0058] In a specific application scenario, the middle-stage data processor and task data processor involved in this solution can be integrated into a plug-in that can run independently, and the plug-in will be started when the application or application system to which the batch data to be processed belongs is started, so as to realize the processing and storage of batch data, thereby reducing the complexity of the batch data processing process to a certain extent.

[0059] The technical solution of the embodiment of the present invention determines the data type of the batch data to be processed and selects the target task processor from at least one reference task processor; determines the number of processors of the target task processor to be constructed, and constructs at least one target task processor based on the number of processors; determines the data processing capacity of each target task processor according to the service-related information; sends the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing capacity, obtains the data processing results and sends them to the pre-constructed target memory for the target memory to store the data processing results. The above technical solution improves the data processing efficiency and reduces the complexity of batch data processing by processing large batches of data by constructing a certain number of task processors, and improves the accurate construction of task processors by determining the number of required task processors and the amount of data that can be processed based on corresponding strategies, thereby avoiding waste of resources; constructs task processors for different batch data processing tasks and based on the characteristics of the task itself and the server to which it belongs, improves the flexibility of task processor construction, and realizes targeted construction of task processors.

[0060] Embodiment 2

[0061] Figure 2This is a flow chart of a batch data processing method provided in Embodiment 2 of the present invention. This embodiment is optimized and improved on the basis of the above technical solutions.

[0062] Furthermore, the step of "determining the number of processors of the target task processor to be built" is refined into "performing code analysis on the script code corresponding to the target task processor to determine the code logic type; calling the target task processor to perform task simulation processing according to the preset number of task simulations to obtain the task execution time of the target task processor; determining the number of processors of the target task processor to be built according to the code logic type and task execution time of the target task processor." in order to improve the method of determining the number of processors of the target task processor.

[0063] The step "determine the data processing capacity of each target task processor based on service-related information" is refined into "determine the data processing capacity of each target task processor based on the amount of memory space in the server-related information and the task execution time." to improve the method of determining the data processing capacity of the target task processor.

[0064] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference can be made to the descriptions of other embodiments. Figure 2 As shown, the method comprises the following specific steps:

[0065] S210, obtaining server-related information of the server to which the batch data to be processed belongs, and constructing a data queue according to the server-related information.

[0066] S220, determining the data type of the batch data to be processed, and selecting a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types.

[0067] S230: parse the script code corresponding to the target task processor to determine the code logic type.

[0068] Exemplarily, the script code corresponding to the target task may be parsed or analyzed to determine the code logic type. The code logic type may include single-task type and interface-intensive type. The difference between interface-intensive script code and single-task script code is that interface-intensive script code relies on file reading and writing or interface reading and writing operations, and the task resources, task processing time or execution time required are longer.

[0069] The parsing or analysis of the script code may specifically adopt keyword extraction technology. Specifically, it may be constructed for the keywords involved in the two code logic types. For example, for interface-intensive code, the keywords involved may include "File", "InputStream", "Outputstream" and "Connection", etc. According to the pre-set keywords and based on the preset keyword extraction technology, the script code is analyzed to obtain the corresponding code logic type.

[0070] S240 . According to a preset number of task simulations, call a target task processor to perform task simulation processing, and obtain the task execution time of the target task processor.

[0071] The task execution time may be the time taken by the target task processor to execute a data processing task. For example, the target task processor may be simulated multiple times to determine the time taken by each task simulation, and the task execution time of the target task processor may be determined based on the time taken by each task simulation.

[0072] In an optional embodiment, according to a preset number of task simulations, a target task processor is called to perform task simulation processing to obtain the task execution time of the target task processor, including: for any number of simulations, the target task processor is called to perform task simulation processing to obtain the pre-task call time and the post-task call time under the simulation number; according to the pre-task call time and the post-task call time, a reference execution time under the simulation number is determined; according to the reference execution time under each task simulation number, the task execution time of the target task processor is determined.

[0073] The number of task simulations may be pre-set by relevant technical personnel according to actual needs. For example, the number of task simulations may be 10 or 20 times.

[0074] Exemplarily, the target task processor can be called to perform task simulation by constructing Mock data. Specifically, for any task simulation of the target task processor, the target task processor is called to perform task simulation by constructing Mock data, and the time before and after the task call of the simulated target processor is recorded. The time difference between the time before and after the task call is calculated, and the time difference is used as the task execution time of the target task processor.

[0075] S250: Determine the number of processors of the target task processor to be constructed according to the code logic type and task execution time of the target task processor, and construct at least one target task processor based on the number of processors.

[0076] Among them, for different code logic types, the number of processors of different target task processors can be determined based on the corresponding code logic types, and the relationship between the code logic type and the number of processors can be pre-set by relevant technical personnel. For example, the number of processors corresponding to code logic type A is M1, the number of processors corresponding to code logic type B is M2, and so on.

[0077] In order to further improve the accuracy of determining the number of processors of the target task processor and thus avoid wasting resources, the task execution time may also be considered in the process of determining the number of processors.

[0078] In an optional embodiment, the number of processors of the target task processor to be built is determined based on the code logic type and task execution time of the target task processor, including: if the code logic type is interface intensive, the number of processors of the target task processor to be built is determined based on the number of central processing units in the server-related information; if the code logic type is single task, the number of processors of the target task processor to be built is determined based on the number of central processing units and the task execution time in the server-related information.

[0079] Exemplarily, if the code logic type is interface intensive, the number of CPUs of the server is determined as the number of processors of the target task processor to be built. If the code logic type is single task type, the number of processors of the target task processor to be built can be determined based on the number of CPUs and the task execution time based on pre-set rules.

[0080] Optionally, if the code logic type is a single task type, the number of processors of the target task processor to be built is determined based on the number of central processing units in the server-related information and the task execution time, including: if the code logic type is a single task type, the reference number of processors is determined based on the number of central processing units in the server-related information; if the task execution time meets the preset time judgment condition, the reference number of processors is updated based on the task execution time, and the updated reference preset number is determined as the number of processors of the target task processor to be built; or, if the task execution time does not meet the preset time judgment condition, the reference number of processors is determined as the number of processors of the target task processor to be built.

[0081] If the code logic type is a single task type, the number of CPUs with a preset multiple can be determined as the number of processors of the target task processor to be built. For example, the preset multiple can be 4 times. If the task execution time meets the preset time judgment condition, a certain number of target task processors can be added based on the number of processors determined above. Among them, the time judgment condition can be that the task execution time is in milliseconds.

[0082] In a specific embodiment, the number of CPUs is set to 4. If the code logic type is a single task type, four times the current number of CPUs is determined as the reference number of processors, that is, the reference number of processors is 8 CPUs. If the task execution time is in milliseconds, twice the reference number of processors is determined as the number of processors of the target task processor to be constructed, that is, the number of processors is 16 CPUs. If the task execution time is not in milliseconds, the reference number of processors is determined as the final number of processors of the target task processor, that is, 8 CPUs.

[0083] S260: Determine the data processing capacity of each target task processor according to the memory space capacity in the server related information and the task execution time.

[0084] Exemplarily, the data processing capacity of the target task processor can be determined by pre-building a network model for determining the data processing capacity. Specifically, the historical memory space and historical task execution time of the server that processes different batch data processing tasks in the historical time period are obtained; based on the historical memory space and historical task execution time, the preset network model is trained until the model converges, and a data processing capacity prediction model is obtained, which is used to predict the data processing capacity of the target task processor.

[0085] Alternatively, the data processing capacity of the target task processor may be determined based on a mapping relationship between a preset memory space, task execution time and data processing capacity, and based on the constructed mapping relationship. Specifically, the larger the memory space, the shorter the task execution time, and the larger the data processing capacity.

[0086] S270, sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing volume to obtain data processing results.

[0087] When sending data, the data processor of the middle station can encode the data, specifically, it can generate data numbers of the corresponding data to facilitate the subsequent orderly data storage. The way of encoding the data can be, for example, hash value encoding.

[0088] Optionally, during the process of data processing by the target task processor, data congestion may occur. Therefore, the present embodiment can pre-set the task processor sleep time, for example, to 1 minute. When data congestion occurs, the target task processor automatically enters the sleep state and sets the corresponding target task processor to read-only mode. When the sleep time is reached, such as 1 minute, the automatic state is set to write mode, thereby avoiding the occurrence of errors.

[0089] S280: The target task processor sends its own data processing result to a pre-built target memory, so that the target memory stores the data processing result.

[0090] The technical solution of this embodiment performs code parsing on the script code corresponding to the target task processor to determine the code logic type, calls the target task processor to perform task simulation processing according to the preset number of task simulations, obtains the task execution time of the target task processor, and determines the number of processors of the target task processor to be constructed according to the code logic type and task execution time of the target task processor. The above technical solution takes into account both the logic code type and the task execution time in the process of determining the number of processors of the target task processor, thereby improving the accurate and reasonable determination of the number of processors, thereby effectively avoiding the waste of resources. The data processing capacity of each target task processor is determined by the amount of memory space of the server and the task execution time, which improves the accuracy of determining the data processing capacity, thereby further improving the processing efficiency of batch data.

[0091] Embodiment 3

[0092] Figure 3 This is a flow chart of a batch data processing method provided in Embodiment 3 of the present invention. This embodiment is optimized and improved on the basis of the above technical solutions.

[0093] Furthermore, the method also includes "monitoring the processing status of each target task processor to determine the data memory occupancy of each target task processor during batch data processing; determining whether there is a task processor to be adjusted in each target task processor based on the occupancy ratio between the data memory occupancy of each target task processor; if so, extracting the tail data from the tail of the queue of the data queue corresponding to the task processor to be adjusted, and having other task processors process the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition; wherein the other task processors are the target task processors in each target task processor except the task processor to be adjusted." to improve the task processing process of the target task processor.

[0094] Accordingly, before the step of "extracting tail data from the tail of the queue corresponding to the task processor to be adjusted, and having other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition", add the step of "updating the processing mode of each target task processor to read-only mode" and, after the step of "extracting tail data from the tail of the queue corresponding to the task processor to be adjusted, and having other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition", add the step of "updating the processing mode of each target task processor from read-only mode to write mode" to further improve the task processing process of the target task processor.

[0095] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference can be made to the descriptions of other embodiments. Figure 3 As shown, the method comprises the following specific steps:

[0096] S310, obtaining server-related information of the server to which the batch data to be processed belongs, and constructing a data queue according to the server-related information.

[0097] S320, determining the data type of the batch data to be processed, and selecting a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types.

[0098] S330: Determine the number of processors of the target task processor to be constructed, and construct at least one target task processor based on the number of processors.

[0099] S340: Determine the data processing capacity of each target task processor according to the service-related information.

[0100] S350, sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing volume to obtain data processing results.

[0101] S360: The target task processor sends its own data processing result to a pre-built target memory so that the target memory can store the data processing result.

[0102] S370: Monitor the processing status of each target task processor to determine the data memory usage of each target task processor during batch data processing.

[0103] Specifically, it can monitor the usage of the data queue of the target task processor and determine the data memory usage according to the usage of the data queue, that is, the proportion of the amount of data processed in the data queue to the maximum amount of data that the data queue can process. The larger the data memory usage, the more saturated the target task processor is, and it is easy to be overloaded and cause program errors.

[0104] S380: Determine whether there is a task processor to be adjusted among the target task processors according to the occupancy ratio of the data memory occupancy of each target task processor.

[0105] The occupancy ratio may refer to the ratio of the data memory occupancy between two different target task processors. The smaller the data memory occupancy ratio, the more balanced the two target task processors are, and the larger the data memory occupancy ratio, the more unbalanced the two target task processors are. It is possible that one of the target task processors is overloaded with data processing capacity, while the other target task processor is in a relatively idle state.

[0106] It should be noted that in the process of determining the occupancy ratio, in order to ensure the accuracy of the determination, the larger data memory occupancy value is used as the numerator and the smaller value is used as the denominator. For example, if the data memory occupancy of target task processor A is 90% and the data memory occupancy of target task processor B is 10%, then the occupancy ratio between target task processor A and target task processor B is 9.

[0107] Furthermore, in order to avoid comparing two target task processors whose data memory occupancy values ​​are both larger, or to avoid comparing two target task processors whose data memory occupancy values ​​are both smaller, a comparison rule can be pre-set, that is, the occupancy ratio of two data memory occupancy values ​​whose difference between the data memory occupancy values ​​is greater than a preset threshold is determined. Alternatively, the target task processor whose data memory occupancy reaches the preset memory occupancy threshold is directly determined as the task processor to be adjusted, without participating in the occupancy ratio determination process. Among them, the task processor to be adjusted can be the target task processor whose data processing volume is to be adjusted.

[0108] When there is a target task processor whose data memory occupancy ratio is greater than a preset ratio threshold among the target task processors, it can be determined that there is a task processor to be adjusted among the target task processors; when there is no target task processor whose data memory occupancy ratio is greater than a preset ratio threshold among the target task processors, it can be determined that there is no task processor to be adjusted among the target task processors. The preset ratio threshold can be preset by relevant technical personnel, for example, it can be set to 8.

[0109] Specifically, if the occupancy ratio A / B between the target task processor A and the target task processor B is greater than a preset ratio threshold, the target task processor A may be determined as the task processor to be adjusted.

[0110] S390: If yes, update the processing mode of each target task processor to read-only mode.

[0111] If there are task processors to be adjusted in each target task processor, the processor mode of each target task processor is updated to read-only mode. In read-only mode, each target task processor no longer receives batch data to be processed, but can only read data.

[0112] S3100, extracting tail data from the tail of the data queue corresponding to the task processor to be adjusted, and having other task processors process the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets a preset ratio condition.

[0113] Among them, other task processors are target task processors other than the task processor to be adjusted among the target task processors.

[0114] The data at the tail of the queue is the latest allocated batch data waiting to be processed and not yet processed. Therefore, data is extracted from the tail of the data queue of the task processor to be adjusted, thereby reducing the data processing load pressure of the task processor to be adjusted.

[0115] Other task processors process the extracted tail data until the data memory occupancy of each target task processor meets a preset ratio condition. The preset ratio condition may be that each occupancy ratio is less than a preset ratio threshold, or there is no target task processor with a occupancy ratio greater than the preset ratio threshold.

[0116] In a specific implementation, if the occupancy ratio A / B of the target task processor A and the target task processor B is greater than a preset ratio threshold, the target task processor A can be determined as the task processor to be adjusted, and the target task processor B can perform data processing on the tail data extracted from the tail of the target task processor.

[0117] S3110, updating the processing mode of each target task processor from the read-only mode to the write mode.

[0118] When a balance is reached between the target task processors, the processing mode of each target task processor is updated from read-only mode to write mode. In write mode, the batch data to be processed sent by the middle station data processor can continue to be received.

[0119] It should be noted that the execution process of S370 - S3110 may be after S380 or before S380 , and specifically, S370 - S3110 may be executed during the batch data processing by the target task processor.

[0120] The technical solution of this embodiment monitors the processing status of each target task processor to determine the data memory occupancy of each target task processor during batch data processing, and determines the task processor to be adjusted based on the occupancy ratio between the data memory occupancy of each target task processor, extracts the tail data from the tail of the queue of the data queue corresponding to the task processor to be adjusted, and other task processors process the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition. The above technical solution realizes the monitoring of the target task processor and the balance of data processing work between each target task processor, avoids the target task processor from being overloaded during the data processing process, thereby effectively avoiding the occurrence of load resource imbalance of each target task processor.

[0121] Embodiment 4

[0122] Figure 4 This is a flow chart of a batch data processing method provided in Embodiment 4 of the present invention. This embodiment is optimized and improved on the basis of the above technical solutions.

[0123] Furthermore, before the step "the target task processor sends its own data processing results to the pre-built target memory", add the step of "building a main data queue of the target memory; and building a secondary data queue of the target memory according to the number of processors of the target task processor". Correspondingly, after the step "the target task processor sends its own data processing results to the pre-built target memory", add the step of "the main data queue of the target memory parses the data processing results of each target task processor to obtain the result number of each data processing result; and the target memory writes the data processing results to each secondary data queue in turn based on the result number of each data processing result." to improve the target memory's storage process of data processing results.

[0124] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference can be made to the descriptions of other embodiments. Figure 4 As shown, the method comprises the following specific steps:

[0125] S410, obtaining server-related information of the server to which the batch data to be processed belongs, and constructing a data queue according to the server-related information.

[0126] S420, determining the data type of the batch data to be processed, and selecting a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types.

[0127] S430: Determine the number of processors of the target task processor to be constructed, and construct at least one target task processor based on the number of processors.

[0128] S440: Determine the data processing capacity of each target task processor according to the service-related information.

[0129] S450, sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing volume to obtain a data processing result.

[0130] S460: Build a main data queue of the target storage.

[0131] Among them, the main data queue of the target memory is pre-built by relevant technical personnel and is used to temporarily store the data processing results sent to the target memory by each target task processor.

[0132] S470: construct a secondary data queue of the target memory according to the number of processors of the target task processor.

[0133] Exemplarily, if the number of processors of the target task processor is 5, then 5 secondary data queues of the target memory are constructed.

[0134] The purpose of constructing the secondary data queue is to process the data processing results in an orderly and parallel manner, improve the data processing efficiency, and improve the orderliness of the storage of the data processing results.

[0135] S480: The target task processor sends its own data processing result to the pre-built target storage.

[0136] S490 , the main data queue of the target memory analyzes the data processing results of each target task processor to obtain the result number of each data processing result.

[0137] The result number of the data result is used to characterize the uniqueness and order of the data result. For example, the result numbers of two adjacent data processing results of the batch data to be processed are adjacent, such as 05 and 06 respectively.

[0138] S4100, the target memory writes the data processing results into each data queue in sequence based on the result number of each data processing result.

[0139] Exemplarily, the target memory writes the data processing results into each data queue in sequence according to the result number of each data processing result.

[0140] In an optional embodiment, the target memory writes the data processing results to each secondary data queue in sequence based on the result number of each data processing result, including: for any secondary data queue, when the result number of the data processing result written into the secondary data queue is a non-continuous number, determining the secondary data queue corresponding to the result number of the non-continuous number, and writing the data processing result corresponding to the result number of the non-continuous number into the corresponding secondary data queue until all data processing results are written.

[0141] In a specific implementation, the target memory sequentially sorts the result numbers of the acquired data processing results. For example, if there are 10 data processing results, the sorting results according to the result numbers of the data processing results are "20, 21, 22, 25, 26, 27, 28, 31, 32, 33". The target memory first writes the consecutive numbers "20, 21, 22" into the secondary data queue A. Since the result numbers 22 and 25 are not continuous, it is determined whether there is a secondary data queue with the end result number "24" in other secondary data queues. If so, and the secondary data queue is B, the data processing results with result numbers 25, 26, 27, and 28 are written into the secondary data queue B. If not, they are temporarily stored in the main data queue. Since the result numbers 28 and 31 are not continuous, the main data queue continues to compile the sorting results, and finds the secondary data queue with the end number 30, and writes the data processing results with result numbers 31, 32, and 33 into the secondary data queue.

[0142] When the main data queue has written all data processing results sent by the target task processor into each secondary data queue, a temporary table is created for each secondary data queue to store the data processing results, and each temporary table is merged or inserted into the main table to complete the storage of the data processing results.

[0143] The technical solution of this embodiment constructs a main data queue of the target memory, and constructs a secondary data queue of the target memory according to the number of processors of the target task processor. The main data queue of the target memory parses the data processing results of each target task processor to obtain the result number of each data processing result. The target memory writes the data processing results to each secondary data queue in sequence based on the result number of each data processing result, thereby realizing orderly storage of each data storage result, avoiding the inconvenience caused by disordered or out-of-order sorting of data storage results for subsequent data analysis, ensuring the continuity between results, and thus improving the execution efficiency of a series of steps such as subsequent data analysis.

[0144] Embodiment 5

[0145] Figure 5 The structure diagram of a batch data processing device provided in the fifth embodiment of the present invention is shown in FIG. A batch data processing device provided in the embodiment of the present invention is applicable to the situation where ultra-large batch data is quickly processed and stored. The batch data processing device can be implemented in the form of hardware and / or software, such as Figure 5 As shown, the device can be configured in an electronic device, and specifically includes: a queue construction module 501, a processor determination module 502, a processor construction module 503, a data processing amount determination module 504, a data processing module 505 and a processing result delivery module 506. Among them,

[0146] The queue construction module 501 is used to obtain server-related information of the server to which the batch data to be processed belongs, and to construct a data queue according to the server-related information;

[0147] The processor determination module 502 is used to determine the data type of the batch data to be processed, and select a target task processor corresponding to the data type from at least one pre-built reference task processor; each reference task processor is used to process batch data of different data types;

[0148] The processor construction module 503 is used to determine the number of processors of the target task processor to be constructed, and to construct at least one target task processor based on the number of processors;

[0149] A data processing capacity determination module 504 is used to determine the data processing capacity of each target task processor according to the service related information;

[0150] The data processing module 505 is used to send the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing amount to obtain a data processing result;

[0151] The processing result sending module 506 is used for the target task processor to send its own data processing result to the pre-built target memory so that the target memory can store the data processing result.

[0152] The above technical solution improves data processing efficiency and reduces the complexity of batch data processing by constructing a certain number of task processors to process large batches of data. It also determines the required number of task processors and the amount of data that can be processed based on corresponding strategies, thereby improving the precise construction of task processors and avoiding waste of resources. Task processors are constructed for different batch data processing tasks based on the characteristics of the task itself and the server to which it belongs, thereby improving the flexibility of task processor construction and realizing targeted construction of task processors.

[0153] Optionally, the processor building module 503 includes:

[0154] A code logic type determination unit, used for parsing the script code corresponding to the target task processor to determine the code logic type;

[0155] A task execution time determination unit, used to call the target task processor to perform task simulation processing according to a preset number of task simulations, and obtain the task execution time of the target task processor;

[0156] The processor quantity determination unit is used to determine the processor quantity of the target task processor to be constructed according to the code logic type and task execution time of the target task processor.

[0157] Optionally, the task execution time determination unit includes:

[0158] A calling time determination subunit is used to call the target task processor to perform task simulation processing for any simulation number, and obtain the pre-task calling time and post-task calling time under the simulation number;

[0159] A reference execution time determination subunit, used to determine the reference execution time under the simulation times according to the time before the task is called and the time after the task is called;

[0160] The task execution time determination subunit is used to determine the task execution time of the target task processor according to the reference execution time under each of the task simulation times.

[0161] Optionally, the processor quantity determination unit includes:

[0162] A first quantity determination subunit is used to determine the number of processors of the target task processor to be constructed according to the number of central processing units in the server related information if the code logic type is interface intensive;

[0163] The second quantity determination subunit is used to determine the number of processors of the target task processor to be constructed according to the number of central processing units in the server related information and the task execution time if the code logic type is a single task type.

[0164] Optionally, the second quantity determination subunit is specifically configured to:

[0165] If the code logic type is a single-task type, determining the reference processor quantity according to the number of central processing units in the server-related information;

[0166] If the task execution time satisfies a preset time judgment condition, the reference number of processors is updated according to the task execution time, and the updated reference preset number is determined as the number of processors of the target task processor to be constructed; or,

[0167] If the task execution time does not meet the preset time judgment condition, the reference number of processors is determined as the number of processors of the target task processor to be constructed.

[0168] Optionally, the data processing amount determination module 504 includes:

[0169] The data processing amount determination unit is used to determine the data processing amount of each target task processor according to the amount of memory space in the server related information and the task execution time.

[0170] Optionally, the device further comprises:

[0171] A status monitoring module is used to monitor the processing status of each target task processor and determine the data memory usage of each target task processor during batch data processing;

[0172] A processor to be adjusted determining module, used for determining whether there is a task processor to be adjusted in each of the target task processors according to the occupancy ratio between the data memory occupancy of each of the target task processors;

[0173] A data extraction module is used to extract tail data from the tail of the data queue corresponding to the task processor to be adjusted if there is a task processor to be adjusted in the target task processor, and other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets a preset ratio condition; wherein the other task processors are the target task processors other than the task processor to be adjusted in each target task processor.

[0174] Optionally, the device further comprises:

[0175] A first mode updating module is used to extract tail data from the tail of the queue corresponding to the task processor to be adjusted, and other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets a preset ratio condition, and then update the processing mode of each target task processor to a read-only mode;

[0176] The second mode update module is used to extract tail data from the tail of the data queue corresponding to the task processor to be adjusted, and other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition, and then the processing mode of each target task processor is updated from the read-only mode to the write mode.

[0177] Optionally, the device further comprises:

[0178] A main queue construction module, used for constructing a main data queue of the target memory before the target task processor sends its own data processing result to the pre-constructed target memory;

[0179] A secondary queue construction module, used for constructing a secondary data queue of the target memory according to the number of processors of the target task processor;

[0180] A processing result parsing module, used for parsing the data processing results of each target task processor by the main data queue of the target memory after the target task processor sends its own data processing results to the pre-built target memory, so as to obtain the result number of each data processing result;

[0181] The processing result writing module is used for writing the data processing results into each of the secondary data queues in sequence based on the result number of each of the data processing results by the target memory.

[0182] Optionally, the processing result writing module includes:

[0183] The data result writing unit is used to determine the secondary data queue corresponding to the result number of the non-continuous number for any secondary data queue, and write the data processing result corresponding to the result number of the non-continuous number into the corresponding secondary data queue until all the data processing results are written.

[0184] The batch data processing device provided by the embodiment of the present invention can execute the batch data processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0185] Embodiment 6

[0186] Figure 6 A schematic diagram of an electronic device 60 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0187] like Figure 6 As shown, the electronic device 60 includes at least one processor 61, and a memory connected to the at least one processor 61 in communication, such as a read-only memory (ROM) 62, a random access memory (RAM) 63, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 61 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 62 or the computer program loaded from the storage unit 68 to the random access memory (RAM) 63. In the RAM 63, various programs and data required for the operation of the electronic device 60 can also be stored. The processor 61, the ROM 62, and the RAM 63 are connected to each other via a bus 64. An input / output (I / O) interface 65 is also connected to the bus 64.

[0188] A number of components in the electronic device 60 are connected to the I / O interface 65, including: an input unit 66, such as a keyboard, a mouse, etc.; an output unit 67, such as various types of displays, speakers, etc.; a storage unit 68, such as a disk, an optical disk, etc.; and a communication unit 69, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 69 allows the electronic device 60 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0189] The processor 61 may be a variety of general and / or dedicated processing components with processing and computing capabilities. Some examples of the processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 61 performs the various methods and processes described above, such as a batch data processing method.

[0190] In some embodiments, the method batch data processing can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 68. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 60 via the ROM 62 and / or the communication unit 69. When the computer program is loaded into the RAM 63 and executed by the processor 61, one or more steps of the method batch data processing described above can be performed. Alternatively, in other embodiments, the processor 61 can be configured to perform the method batch data processing in any other suitable manner (for example, by means of firmware).

[0191] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0192] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0193] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

[0195] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may 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.

[0196] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may 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 difficult management and weak business scalability in traditional physical hosts and VPS services.

[0197] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0198] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A batch data processing method, characterized in that: include: Obtain server-related information of the server to which the batch data to be processed belongs, and build a data queue according to the server-related information; Determine the data type of the batch data to be processed, and select a target task processor corresponding to the data type from at least one reference task processor that has been pre-labeled; each reference task processor is used to process batch data of different data types; Determining the number of processors of the target task processor to be constructed, and constructing at least one target task processor based on the number of processors; Determine the data processing capacity of each target task processor according to the server related information; Sending the batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing volume to obtain a data processing result; The target task processor sends its own data processing results to the pre-built target memory so that the target memory can store the data processing results.

2. The method according to claim 1, characterized in that The step of determining the number of processors of the target task processor to be constructed includes: Parsing the script code corresponding to the target task processor to determine the code logic type; According to a preset number of task simulations, the target task processor is called to perform task simulation processing to obtain the task execution time of the target task processor; The number of processors of the target task processor to be constructed is determined according to the code logic type and the task execution time of the target task processor.

3. The method according to claim 2, characterized in that The step of calling the target task processor to perform task simulation processing according to the preset number of task simulations to obtain the task execution time of the target task processor includes: For any number of simulations, the target task processor is called to perform task simulation processing to obtain the time before the task is called and the time after the task is called under the number of simulations; Determine the reference execution time under the simulation times according to the time before the task is called and the time after the task is called; The task execution time of the target task processor is determined according to the reference execution time under each of the task simulation times.

4. The method according to claim 2, characterized in that: The step of determining the number of processors of the target task processor to be constructed according to the code logic type and the task execution time of the target task processor includes: If the code logic type is interface intensive, determining the number of processors of the target task processor to be constructed according to the number of central processing units in the server related information; If the code logic type is a single task type, the number of processors of the target task processor to be constructed is determined according to the number of central processing units in the server related information and the task execution time.

5. The method according to claim 4, characterized in that If the code logic type is a single task type, the number of processors of the target task processor to be constructed is determined according to the number of central processing units in the server related information and the task execution time, including: If the code logic type is a single-task type, determining the reference processor quantity according to the number of central processing units in the server-related information; If the task execution time satisfies a preset time judgment condition, the reference processor quantity is updated according to the task execution time, and the updated reference processor quantity is determined as the processor quantity of the target task processor to be constructed; or, If the task execution time does not meet the preset time judgment condition, the reference number of processors is determined as the number of processors of the target task processor to be constructed.

6. The method according to claim 2, characterized in that Determining the data processing amount of each target task processor according to the server related information includes: The data processing capacity of each target task processor is determined according to the amount of memory space in the server related information and the task execution time.

7. The method according to claim 1, characterized in that The method further comprises: Monitor the processing status of each target task processor to determine the data memory usage of each target task processor during batch data processing; Determining whether there is a task processor to be adjusted in each of the target task processors according to the occupancy ratio of the data memory occupancy of each of the target task processors; If so, the tail data is extracted from the tail of the data queue corresponding to the task processor to be adjusted, and other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition; wherein, the other task processors are the target task processors among the target task processors except the task processor to be adjusted.

8. The method according to claim 7, characterized in that In extracting tail data from the tail of the data queue corresponding to the task processor to be adjusted, and having other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets a preset ratio condition, the method further includes: Updating the processing mode of each target task processor to a read-only mode; Correspondingly, after extracting tail data from the tail of the data queue corresponding to the task processor to be adjusted, and other task processors perform data processing on the extracted tail data until the occupancy ratio between the data memory occupancy of each target task processor meets the preset ratio condition, it also includes: The processing mode of each of the target task processors is updated from the read-only mode to the write mode.

9. The method according to claim 1, characterized in that: Before the target task processor sends its own data processing result to the pre-built target memory, it also includes: Building a main data queue of the target storage; According to the number of processors of the target task processor, construct a secondary data queue of the target memory; Accordingly, after the target task processor sends its own data processing result to the pre-built target memory, it includes: The main data queue of the target memory analyzes the data processing results of each target task processor to obtain the result number of each data processing result; The target memory writes the data processing results into each of the secondary data queues in sequence based on the result number of each of the data processing results.

10. The method according to claim 9, characterized in that The target memory sequentially writes the data processing results into each of the secondary data queues based on the result number of each of the data processing results, including: For any data queue, when the result number of the data processing result written into the data queue is a non-continuous number, determine the secondary data queue corresponding to the result number of the non-continuous number, and write the data processing result corresponding to the result number of the non-continuous number into the corresponding secondary data queue until all the data processing results are written.

11. A batch data processing device, characterized in that: include: A queue construction module is used to obtain server-related information of the server to which the batch data to be processed belongs, and to construct a data queue according to the server-related information; A processor determination module, used to determine the data type of the batch data to be processed, and select a target task processor corresponding to the data type from at least one reference task processor with a label defined in advance; each of the reference task processors is used to process batch data of different data types; A processor construction module, used to determine the number of processors of the target task processor to be constructed, and to construct at least one target task processor based on the number of processors; A data processing capacity determination module, used to determine the data processing capacity of each target task processor according to the server related information; A data processing module, used for sending batch data to be processed to each target task processor through the data queue, and each target task processor performs batch data processing based on its own data processing amount to obtain a data processing result; The processing result sending module is used for the target task processor to send its own data processing results to the pre-built target memory so that the target memory can store the data processing results.

12. 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, and the computer program is executed by the at least one processor so that the at least one processor can perform the batch data processing method according to any one of claims 1 to 10.

13. 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 batch data processing method according to any one of claims 1 to 10 when executed.