Batch processing control method, device and equipment and storage medium
By executing batch processing during off-peak hours, the bottleneck problem of database resources is solved, application system production accidents are avoided, and balanced utilization of database resources is achieved.
Patent Information
- Application Number
- CN202410758836.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-11
AI Technical Summary
During the batch processing process, the database resource consumption and resource contention caused the database to reach a bottleneck, which in turn caused application system production accidents and affected customer business processing.
By obtaining the current server time of the target database, it is determined whether the preset batch running conditions are met, and batch running is executed during non-peak hours to avoid competition for resources during peak hours.
It effectively avoids competition for resources during peak business hours, uses database resources in a balanced manner, and avoids production accidents.
Smart Images

Figure CN118760666A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data batch processing, and in particular to a control method, device, equipment and storage medium for batch processing. Background Art
[0002] When a large amount of data needs to be effectively managed, it is usually managed by running batch jobs. The batch running process is roughly as follows: the upstream application system DB library (Oracle / mysql / oceanbase / tidb / ES / tdsql / postgre library, etc.) collects data to hadoop (hive library), performs some data processing logic in the hive library, and the hive library then imports the data to the downstream application system DB library (Oracle / mysql / oceanbase / tidb library, etc.). Among them, the upstream DB library data is imported into the hive library, which is called the collection job; the Hive library intermediate data processing job is called the processing job; the hive library data is imported into the downstream DB library, which is called the unloading job.
[0003] Since the unloading operation is executed frequently, the execution time period is completely dependent on the hive database processing operation. Generally, after the processing operation is completed, the unloading operation is triggered to be automatically called up. Each execution process of the unloading operation means a large amount of I / O writes to the database. Therefore, during the unloading operation, the database resources are consumed greatly, especially during the peak business processing period. It may cause competition for database resources and reach the database resource bottleneck, causing the database server CUP to soar to 100%, which in turn triggers production accidents in the application system, affects customer business processing, and causes a lot of manpower and material resources. Loss. Summary of the invention
[0004] The embodiments of the present application provide a control method, device, equipment and storage medium for batch processing, which solves the problem of large database resource consumption and resource competition during the batch processing, causing database resources to reach a bottleneck and thus causing production accidents in the application system.
[0005] An embodiment of the present application provides a control method for batch processing, the method comprising:
[0006] Obtaining the current time of the server of the target database, wherein the target database is the database into which the target business data is imported;
[0007] When the current time of the server of the target database meets the preset batch processing condition, the batch processing status of the target business data is obtained; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing;
[0008] When the target business data is in the unbatch state, determine whether the current time of the server of the target database belongs to the peak time of business handling;
[0009] When the current time of the server of the target database does not belong to the peak business processing period, batch processing is performed on the target business data.
[0010] Furthermore, the method further comprises:
[0011] When the current time of the server of the target database belongs to the peak period of business handling, the preset start time is updated according to the preset time interval to obtain the updated preset start time;
[0012] According to the preset start time after the update, it is determined whether the current time of the server of the target database meets the preset batch running condition.
[0013] Further, the determining whether the current time of the server of the target database belongs to the peak business processing period includes:
[0014] Obtain the front-end page traffic of the server at the current time;
[0015] When the front-end page traffic is greater than or equal to a preset front-end page traffic threshold, it is determined that the current time of the server of the target database belongs to the business handling peak period.
[0016] Further, the determining whether the current time of the server of the target database belongs to the peak business processing period includes:
[0017] Obtaining the number of active sessions of the target database at the current time of the server, wherein the number of active sessions is the total number of times the target database is being accessed or waiting to be accessed at the current time;
[0018] When the number of active sessions is greater than or equal to the active session number threshold, it is determined that the current time of the server of the target database belongs to the business handling peak period.
[0019] Further, performing batch processing on the target business data includes:
[0020] The job execution program on the target database is scheduled to execute the batch jobs according to the batch job list of the target database.
[0021] Furthermore, the method further comprises:
[0022] Real-time changes in the batch result data corresponding to each target business data batch task in the target database are monitored; for abnormal target business data batches, alarm information is issued.
[0023] Furthermore, the method further comprises:
[0024] During the target business data batch processing, the execution status information of the target business data batch processing is recorded and updated in real time.
[0025] The present application also provides a control device for batch processing, the device comprising:
[0026] A first acquisition module is used to acquire the current time of a server of a target database, wherein the target database is a database into which target business data is imported;
[0027] A second acquisition module is used to acquire the batch processing status of the target business data when the current time of the server of the target database meets the preset batch processing condition; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the completion time of the logic processing of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing;
[0028] A judgment module, used to judge whether the current time of the server of the target database belongs to the peak time of business handling when the target business data is in the un-batch state;
[0029] The batch execution module is used to perform batch processing on the target business data when the current time of the server of the target database does not belong to the peak business processing period.
[0030] The embodiment of the present application further provides a control device for batch processing, the control device for batch processing comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;
[0031] The at least one processor calls the instructions in the memory so that the control device for batch processing performs the following steps:
[0032] Obtaining the current time of the server of the target database, wherein the target database is the database into which the target business data is imported;
[0033] When the current time of the server of the target database meets the preset batch processing condition, the batch processing status of the target business data is obtained; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing;
[0034] When the target business data is in the unbatch state, determine whether the current time of the server of the target database belongs to the peak time of business handling;
[0035] When the current time of the server of the target database does not belong to the peak business processing period, batch processing is performed on the target business data.
[0036] The present application also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented:
[0037] Obtaining the current time of the server of the target database, wherein the target database is the database into which the target business data is imported;
[0038] When the current time of the server of the target database meets the preset batch processing condition, the batch processing status of the target business data is obtained; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing;
[0039] When the target business data is in the unbatch state, determine whether the current time of the server of the target database belongs to the peak time of business handling;
[0040] When the current time of the server of the target database does not belong to the peak business processing period, batch processing is performed on the target business data.
[0041] The embodiments of the present application have the following beneficial effects:
[0042] The embodiment of the present application provides a control method for batch processing, which obtains the current time of the server of the target database, and then determines the batch status of the target business data when the current time of the server of the target database is greater than or equal to the completion time of the logical processing of the target business data, and when the current time of the server of the target database is greater than or equal to the preset start time of the batch processing. When the target business data is in a non-batch status, it is determined that the current time of the server of the target database does not belong to the peak period of business processing, and batch processing is performed on the target business data. This method allows batch processing to avoid the peak period of business processing, balances the use of database resources, avoids triggering database resource bottlenecks, and thus avoids the occurrence of production accidents in the application system. The control device, equipment and storage medium for batch processing provided in the embodiment of the present application can also achieve the above-mentioned effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] in:
[0045] Figure 1 A flow chart of a batch processing control method provided in an embodiment of the present application;
[0046] Figure 2 A flow chart of determining whether the current time of a server of a target database belongs to a peak period of business handling provided by an embodiment of the present application;
[0047] Figure 3 A schematic diagram of another process for determining whether the current time of a server of a target database belongs to a peak business processing period provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of the structure of a control device for batch processing provided in an embodiment of the present application;
[0049] Figure 5 A block diagram of an exemplary batch processing control device according to an embodiment of the present application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] The current batch running process is roughly as follows: the upstream application system DB library (Oracle / mysql / oceanbase / tidb / ES / tdsql / postgre library, etc.) collects data into hadoop (hive library), performs data logic processing in the hive library, and after the data logic processing is completed, the hive library imports the data that has completed the data logic processing into the downstream application system DB library (Oracle / mysql / oceanbase / tidb library, etc.). Among them, the import of upstream application system DB library data into the hive library is called the collection operation; the Hive library intermediate data processing operation is called the processing operation; the import of hive library data into the downstream application system DB library is called the unloading operation.
[0052] In general, the data unloading operation depends on the upstream hive database processing operation, and the hive database processing operation depends on the collection operation of the upstream application system DB database. The specific process can be considered as a serial batch chain. Usually, after the processing operation is completed, the data unloading operation will be triggered to execute automatically. Since the hive database processing operation is generally processed offline, the processing operation will not cause resource pressure on the hive database. The downstream application system DB database is a real-time application database, which may be the peak time for customers to handle business in a certain period of time. If the data unloading batch operation is triggered and executed in large quantities during the peak time for customers to handle business, it will cause competition for database resources, thereby affecting customer business handling.
[0053] like Figure 1 FIG. 1 is a flow chart of a control method for batch processing provided in an embodiment of the present application, the method comprising:
[0054] Step S101, obtaining the current time of the server of the target database, wherein the target database is the database into which the target business data is imported;
[0055] Specifically, in this embodiment, the data is a symbolic record describing banking business. Among them, the data sources in banking business include: in-bank data and out-of-bank data. In-bank data includes a large amount of data generated and accumulated in the process of business dataization, that is, the original data directly generated by each system; the result data generated by the data analysis and modeling process, that is, the data generated by processing the original data of each system; and the data collected, processed and reported to the regulatory authorities by each bank to meet the regulatory reporting requirements. Out-of-bank data refers to the data introduced from the outside by the bank through procurement, cooperation, independent collection and other methods based on specific business goals. The types of data include text, voice and image.
[0056] Database is a collection of large amounts of data that is stored in a computer for a long time, organized and shareable. That is, the banking business data on the website of the banking system is stored in the database. The management system where the database is located is a system that stores, manages, processes and maintains data, consisting of databases, database management systems, applications and database administrators.
[0057] The target database is a database into which target business data is imported, and the target business data is banking business data that needs to be batch processed. When obtaining the current time of the target database server, it can be obtained through existing methods for obtaining the database server time, such as using the sysdate function to obtain the current time of the database server.
[0058] Step S102, when the current time of the server of the target database meets the preset batch running condition, the batch running status of the target business data is obtained; wherein the preset batch running condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch running;
[0059] Specifically, in this embodiment, after obtaining the current time of the target database server, the current time of the target database server is compared with the logical processing completion time of the target business data and the preset start time of the batch processing. When the current time of the target database server is greater than or equal to the logical processing completion time of the target business data, and the current time of the target database server is greater than or equal to the preset start time of the batch processing, the current time of the target database server meets the preset batch processing condition. After the batch processing condition is met, the batch processing status of the target business data is obtained, wherein the batch processing status of the target business data includes the unbatch processing status and the completed batch processing status.
[0060] Among them, when comparing the current time of the server of the target database with the completion time of the logical processing of the target business data and the preset start time of the batch processing, it can be implemented through a database-based function, such as Mybatis-Plus. In Mybatis-Plus, the ge, gt, le, and lt methods of the Wrapper object can be used to compare the time.
[0061] Step S103, when the target business data is in the unbatch state, determine whether the current time of the server of the target database belongs to the business handling peak period;
[0062] Specifically, in this embodiment, when the target business data is obtained in a non-batch state, it is determined whether the current time of the server of the target database belongs to the peak period of business handling. When determining whether the current time of the server of the target database belongs to the peak period of business handling, the front-end page traffic of the server in the current time of the server can be obtained, and the front-end page traffic of the server is compared with the preset traffic threshold of the front-end page to determine whether the current time of the server of the target database belongs to the peak period of business handling. It is also possible to obtain the total number of times the target database is being accessed or the total number of times waiting to be accessed at the current time, and by comparing the total number of times the target database is being accessed at the current time with the preset number threshold, it is determined whether the current time of the server of the target database belongs to the peak period of business handling. Among them, in this embodiment, the peak period of business handling is when the front-end page traffic of the server is greater than or equal to the preset traffic threshold of the front-end page, or the total number of times the target database is being accessed at the current time is greater than or equal to the preset number threshold.
[0063] Step S104, when the current time of the server of the target database does not belong to the peak business processing period, batch processing is performed on the target business data.
[0064] Specifically, in this embodiment, batch processing refers to batch processing of big data within a preset time period. Batch processing generally uses batch processing triggers as the unified entry for batch processing services, and implements the required big data processing by calling corresponding batch processing services. That is, in this embodiment, when the current time of the server of the target database is greater than or equal to the completion time of the logical processing of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of batch processing, and the current time of the server of the target database does not belong to the peak period of business processing, the batch processing trigger is triggered, and the corresponding batch processing service is called to implement batch processing of big data.
[0065] The present embodiment provides a control method for batch processing, which obtains the current time of the target database server, and then determines the batch status of the target business data when the current time of the target database server is greater than or equal to the completion time of the logic processing of the target business data, and when the current time of the target database server is greater than or equal to the preset start time of the batch processing. When the target business data is in the non-batch status, it is determined that the current time of the target database server does not belong to the peak period of business processing, and batch processing is performed on the target business data. This method allows batch processing to avoid the peak period of business processing, balances the use of database resources, avoids triggering database resource bottlenecks, and thus avoids the occurrence of production accidents in the application system.
[0066] In some embodiments, the method further comprises:
[0067] When the current time of the server of the target database belongs to the peak period of business handling, the preset start time is updated according to the preset time interval to obtain the updated preset start time;
[0068] According to the updated preset start time, determine whether the current time of the target database server meets the preset batch running conditions.
[0069] Specifically, in this embodiment, if the current server time of the target database is greater than or equal to the completion time of the logic processing of the target business data, and the current server time of the target database is greater than or equal to the preset start time of the batch processing, and the target business data is in the non-batch state, but the current server time of the target database belongs to the peak period of business handling, the preset start time is updated according to the preset time interval, such as adding the time interval to the previous preset start time to obtain the updated preset start time. Then return to the step of determining whether the current server time of the target database meets the preset batch condition and continue to execute. The batch business can further avoid the peak period of business handling.
[0070] In some embodiments, Figure 2 As shown, a flow chart of determining whether the current time of the server of the target database belongs to the peak time of business handling provided by an embodiment of the present application includes:
[0071] Step S201, obtaining the front-end page traffic of the server at the current time;
[0072] Step S202: when the front-end page traffic is greater than or equal to the preset front-end page traffic threshold, it is determined that the current time of the server of the target database belongs to the business processing peak period.
[0073] Specifically, in this embodiment, the front-end page traffic of the server obtained at the current time of the server can be CPU usage, memory usage, disk usage, network bandwidth usage, network traffic, number of processes, I / O load and response time, etc., and then the CPU usage, memory usage, disk usage, network bandwidth usage, network traffic, number of processes, I / O load and response time are compared with the corresponding preset thresholds respectively. If one of the CPU usage, memory usage, disk usage, network bandwidth usage, network traffic, number of processes, I / O load and response time is greater than or equal to the corresponding preset threshold, it means that the current time of the server of the target database belongs to the peak business processing period.
[0074] In some embodiments, Figure 3 As shown, it is a schematic diagram of another process for determining whether the current time of the server of the target database belongs to the peak time of business handling provided by the embodiment of the present application, including:
[0075] Step S301, obtaining the number of active sessions of the target database at the current time on the server, wherein the number of active sessions is the total number of times the target database is being accessed or waiting to be accessed at the current time;
[0076] Step S302: when the number of active sessions is greater than or equal to the active session number threshold, it is determined that the current time of the server of the target database belongs to the business handling peak period.
[0077] Specifically, in this embodiment, when obtaining the number of active sessions of the target database at the current time of the server, the throughput, execution time, concurrency and utilization of the database can be obtained, and the throughput, execution time, concurrency and utilization are respectively compared with their corresponding preset thresholds. When one of the throughput, execution time, concurrency and utilization exceeds its corresponding preset threshold, it means that the current time of the server of the target database belongs to the peak business processing period.
[0078] In some embodiments, performing batch processing on target business data includes:
[0079] The job executor on the target database is scheduled to execute the batch job according to the batch job list of the target database.
[0080] Specifically, in this embodiment, the batch job list includes imported and exported field mappings, and reads the execution order, dependency, etc. of the target business data. The job execution program on the target database is scheduled to execute the batch job according to the batch job list of the target database. The start time of each job can be scanned in real time through a SHELL script, and the job can be started through CRONTAB. All jobs are executed according to the execution order and dependency, and the execution results of all files in the target job file are exported through the imported and exported field mappings.
[0081] In some embodiments, the method further comprises:
[0082] Monitor the changes of the batch result data corresponding to each target business data batch task in the target database in real time; issue alarm information for abnormal target business data batches.
[0083] Specifically, in this embodiment, by monitoring the changes in the batch result data corresponding to the target business data batch task in real time and issuing alarm information for abnormal target business data batches, remedial measures can be taken in time for abnormalities occurring during the batch processing process, thereby improving the accuracy of data batch processing.
[0084] In some embodiments, the method further comprises:
[0085] During the target business data batch processing, the execution status information of the target business data batch processing is recorded and updated in real time.
[0086] Specifically, in this embodiment, during the target business data batch processing, the target business data is managed by recording and updating the execution status of all target business data batch processing, providing a reference basis for the subsequent target business data management.
[0087] In some embodiments, Figure 4 , which is a schematic diagram of a control device for batch processing provided in an embodiment of the present application, the device 400 includes:
[0088] The first acquisition module 401 is used to acquire the current time of the server of the target database, wherein the target database is the database into which the target business data is imported;
[0089] The second acquisition module 402 is used to acquire the batch processing status of the target business data when the current time of the server of the target database meets the preset batch processing condition; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing;
[0090] The judgment module 403 is used to judge whether the current time of the server of the target database belongs to the peak time of business processing when the target business data is in the state of not being batched;
[0091] The batch execution module 404 is used to perform batch processing on the target business data when the current time of the server of the target database does not belong to the business processing peak period.
[0092] In some embodiments, the apparatus further comprises:
[0093] When the current time of the server of the target database belongs to the peak period of business handling, the preset start time is updated according to the preset time interval to obtain the updated preset start time;
[0094] According to the updated preset start time, determine whether the current time of the target database server meets the preset batch running conditions.
[0095] In some embodiments, the determination module is also used to
[0096] Get the front-end page traffic of the server at the current time;
[0097] When the front-end page traffic is greater than or equal to the preset front-end page traffic threshold, it is determined that the current time of the target database server belongs to the business processing peak period.
[0098] In some embodiments, the determination module is also used to
[0099] Get the number of active sessions of the target database at the current time on the server, where the number of active sessions is the total number of times the target database is being accessed or waiting to be accessed at the current time;
[0100] When the number of active sessions is greater than or equal to the active session number threshold, it is determined that the current time of the server of the target database belongs to the business processing peak period.
[0101] In some embodiments, the batch execution module is also used to
[0102] The job executor on the target database is scheduled to execute the batch job according to the batch job list of the target database.
[0103] In some embodiments, the apparatus further comprises:
[0104] The monitoring module is used to monitor the real-time changes of the batch result data corresponding to each target business data batch task in the target database; and to issue an alarm message for abnormal target business data batch.
[0105] In some embodiments, the apparatus further comprises:
[0106] The execution status information update module is used to record and update the execution status information of the target business data batch processing in real time during the target business data batch processing.
[0107] For other details about how the modules in the control device for batch processing implement the above technical solution, please refer to the description of the control method for batch processing provided above, which will not be repeated here.
[0108] In order to implement the above embodiments, the present application also proposes a control device for batch processing, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the control method for batch processing proposed in the above embodiments of the present application is implemented.
[0109] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the control method for batch processing proposed in the above embodiments of the present application is implemented.
[0110] In order to implement the above embodiments, the present application also proposes a computer program product. When the instruction processor in the computer program product is executed, the control method for batch processing proposed in the above embodiments of the present application is executed.
[0111] Figure 5 A block diagram of an exemplary batch processing control device suitable for implementing the embodiments of the present application is shown. Figure 5 The control device 12 for batch processing shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0112] like Figure 5 As shown, the batch control device 12 is in the form of a general-purpose computing device. The components of the batch control device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0113] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0114] The control device 12 for running batch processing typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the control device 12 for running batch processing, including volatile and non-volatile media, removable and non-removable media.
[0115] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The batch control device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 Not shown, often called a "hard drive").
[0116] although Figure 5 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk"), and a removable non-volatile optical disk (such as a compact disc read only memory (Compact Disc Read Only Memory; hereinafter referred to as: ), Digital Video Disc Read Only Memory (hereinafter referred to as: ) or other optical media). In these cases, each drive can be connected to bus 18 via one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present application.
[0117] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0118] The batch control device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the batch control device 12, and / or any device that enables the batch control device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the batch control device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. Figure 5 As shown, the network adapter 20 communicates with other modules of the batch control device 12 via the bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the batch control device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0119] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the batch processing control method mentioned in the above embodiment.
[0120] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0121] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0122] It should be noted that, in the description of this application, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0124] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0125] A person skilled in the art may understand that all or part of the steps in the above-mentioned embodiment method may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0126] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0127] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0128] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0129] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A control method for batch processing, characterized in that: The method comprises: Obtaining the current time of the server of the target database, wherein the target database is the database into which the target business data is imported; When the current time of the server of the target database meets the preset batch processing condition, the batch processing status of the target business data is obtained; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the logical processing completion time of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing; When the target business data is in the unbatch state, determine whether the current time of the server of the target database belongs to the peak time of business handling; When the current time of the server of the target database does not belong to the peak business processing period, batch processing is performed on the target business data.
2. The control method for batch processing according to claim 1, characterized in that: The method further comprises: When the current time of the server of the target database belongs to the peak period of business handling, the preset start time is updated according to the preset time interval to obtain the updated preset start time; According to the preset start time after the update, it is determined whether the current time of the server of the target database meets the preset batch running condition.
3. The control method for batch processing according to claim 1, characterized in that: The determining whether the current time of the server of the target database belongs to the peak business processing period includes: Obtain the front-end page traffic of the server at the current time; When the front-end page traffic is greater than or equal to a preset front-end page traffic threshold, it is determined that the current time of the server of the target database belongs to the business handling peak period.
4. The control method for batch processing according to claim 1, characterized in that: The determining whether the current time of the server of the target database belongs to the peak business processing period includes: Obtaining the number of active sessions of the target database at the current time of the server, wherein the number of active sessions is the total number of times the target database is being accessed or waiting to be accessed at the current time; When the number of active sessions is greater than or equal to the active session number threshold, it is determined that the current time of the server of the target database belongs to the business handling peak period.
5. The control method for batch processing according to claim 1, characterized in that: The performing batch processing on the target business data includes: The job execution program on the target database is scheduled to execute the batch jobs according to the batch job list of the target database.
6. The control method for batch processing according to claim 5, characterized in that: The method further comprises: Real-time changes in the batch result data corresponding to each target business data batch task in the target database are monitored; for abnormal target business data batches, alarm information is issued.
7. The control method for batch processing according to claim 1, characterized in that: The method further comprises: During the target business data batch processing, the execution status information of the target business data batch processing is recorded and updated in real time.
8. A control device for batch processing, characterized in that: The device comprises: A first acquisition module is used to acquire the current time of a server of a target database, wherein the target database is a database into which target business data is imported; A second acquisition module is used to acquire the batch processing status of the target business data when the current time of the server of the target database meets the preset batch processing condition; wherein the preset batch processing condition is that the current time of the server of the target database is greater than or equal to the completion time of the logic processing of the target business data, and the current time of the server of the target database is greater than or equal to the preset start time of the batch processing; A judgment module, used to judge whether the current time of the server of the target database belongs to the peak time of business handling when the target business data is in the un-batch state; The batch execution module is used to perform batch processing on the target business data when the current time of the server of the target database does not belong to the peak business processing period.
9. A control device for batch processing, characterized in that: The control device for running batch processing includes: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected through a line; The at least one processor calls the instructions in the memory to enable the batch processing control device to perform the steps of the batch processing control method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the batch processing control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Index checking method, device and equipment and computer readable storage medium
CN114647496A
Data reporting method and device, equipment, storage medium and program product
CN115242799A
Cross-platform batch job processing method and device
CN115421878A
Resource regulation and control method, terminal and storage medium
CN115774614A
Business system peak guarantee method, device, equipment, medium and program product
CN116205461A
