Job execution control apparatus, job execution control program, and job execution control method
The job execution control device reallocates resources by suspending lower-priority tasks to execute high-priority jobs efficiently, addressing the challenge of resource constraints in conventional systems by ensuring urgent tasks are completed without wasting previous work.
Patent Information
- Application Number
- JP2023034100
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-19
AI Technical Summary
Conventional job processing systems struggle to execute high-priority interrupt jobs when there are no available resources on any server, leading to inefficiencies and delays in urgent image processing.
A job execution control device that prioritizes and reallocates resources by suspending lower-priority jobs to free up capacity for high-priority tasks, ensuring that high-priority jobs can be executed even when no server has sufficient resources, using a priority management unit to manage job and resource databases.
Enables efficient execution of high-priority jobs by securing resources through suspending lower-priority tasks, allowing urgent processing without wasting previous work and optimizing resource utilization across multiple servers.
Smart Images

Figure 2024125948000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a job execution control device that controls the execution of a job. [Background technology]
[0002] In a system that processes large volumes of image data on a daily basis, it is important to be able to process large volumes of data as quickly and efficiently as possible. Furthermore, when high-priority image processing needs to be executed as an interrupt in addition to the daily processing, it is important to process the interrupt processing as quickly as possible while minimizing its impact on the daily processing. Processing large volumes of image data generally requires improvements in server performance and the ability to handle increases in quantity. Also, to increase computer processing efficiency, it is common to manage the processes entered as jobs and control their operation by associating them with resources.
[0003] A job processing device of the prior art (for example, Patent Document 1) has a job unit section consisting of job units equal to the number of jobs to be executed simultaneously. This job processing device allocates the number of job units to a job according to the load of the job, thereby performing optimal load distribution when executing the job. In addition, this job processing device sets a job unit level for each job unit, which indicates the level of the job that can be executed, and assigns only high-priority jobs to high-level job units. This allows jobs to be executed according to the job priority order. Furthermore, in the conventional technology, when resources become available in an environment where jobs are processed by multiple servers and a high-priority job is waiting, a job with a lower priority than the waiting job is interrupted and moved, and the waiting job is submitted as an interrupt job.
[0004] In the conventional technology, there is a problem that an interrupt is not possible unless there are sufficient job units available to execute the interrupt job. Therefore, in a system in which most of the computer resources are constantly used for daily processing, there is a problem that interrupts cannot be made unless there is free space. Furthermore, in the prior art, a technique has been proposed in which a low-priority job is suspended and moved to another server, freeing up resources and enabling an interrupt. However, if other servers do not have free resources, the low-priority job cannot be moved, and as a result, the high-priority job cannot be interrupted and executed. In other words, in the conventional technology, one of the multiple servers needs to have free resources to execute the interrupt job.
[0005] In this way, in a system where most of the computer resources are used for daily image processing, it is necessary to give priority to and quickly process interrupt image processing with a high level of urgency over normal image processing. However, in the conventional technology, if there are no free resources for a job to be moved to the destination server, the high-priority job cannot be interrupt-processed. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2000-330801 A Summary of the Invention [Problem to be solved by the invention]
[0007] The job execution control device of the present disclosure aims to provide a device that can execute an interrupt job when a high priority interrupt job occurs, even if none of one or more servers has available resources to execute the high priority interrupt job. [Means for solving the problem]
[0008] A job execution control device according to the present disclosure is a job execution control device that causes one or more servers to execute a plurality of jobs, each of which has a priority level indicating the urgency of processing. The job execution control device includes: The system includes a priority management unit that, when there is no server among the one or more servers that has the amount of resources required to execute a scheduled job that is scheduled to be executed, identifies a server from the one or more servers that is executing an interruption priority job, which is a job that can satisfy the required amount of resources by interrupting its execution and has been assigned an interruption priority that is a priority at which interruption of its execution is permitted, interrupts the execution of the interruption priority job being executed on the identified server, and causes the identified server to execute the scheduled job. Effect of the Invention
[0009] The job execution control device according to the present disclosure includes a priority management unit, and therefore when a high-priority interrupt job occurs, even if none of the one or more servers has free resources for executing the high-priority interrupt job, the resources for the high-priority interrupt job can be secured. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram showing a configuration of a parallel job execution system 9 according to the first embodiment. [Diagram 2] FIG. 1 is a block diagram of a job execution control device 10 according to the first embodiment. [Diagram 3] FIG. 1 is a diagram according to the first embodiment, showing the configuration of a data registration folder 20(1). [Figure 4] FIG. 10 is a diagram showing a job management table 16J(1) according to the first embodiment. [Diagram 5] FIG. 10 is a diagram showing a resource management table 16R(1) according to the first embodiment. [Figure 6] FIG. 1 is a diagram according to the first embodiment, showing the configuration of a data registration folder 20(2). [Figure 7] FIG. 10 is a flowchart showing a job registration process according to the first embodiment. [Figure 8] FIG. 13 is a diagram showing a job management table 16J(2) in the first embodiment. [Figure 9]FIG. 10 is a flowchart showing the process of executing and interrupting a job according to the first embodiment. [Figure 10] FIG. 11 is a diagram showing a job management table 16J(3) in the first embodiment. [Figure 11] FIG. 11 is a diagram showing a resource management table 16R(2) according to the first embodiment. [Figure 12] FIG. 13 is a diagram showing a job management table 16J(4) according to the first embodiment. [Figure 13] FIG. 13 is a diagram showing a job management table 16J(5) according to the first embodiment. [Figure 14] FIG. 11 is a diagram showing a resource management table 16R(3) according to the first embodiment. [Figure 15] FIG. 11 is a diagram showing a job management table 16J(6) according to the first embodiment. [Figure 16] FIG. 13 is a diagram showing a job management table 16J(7) according to the first embodiment. [Figure 17] FIG. 10 is a diagram showing status information 17 according to the first embodiment. [Figure 18] FIG. 10 is a flowchart showing job processing according to the first embodiment. [Figure 19] FIG. 11 is a diagram showing a job management table 16J(8) according to the first embodiment. [Figure 20] FIG. 11 is a diagram showing a resource management table 16R(4) according to the first embodiment. [Figure 21] FIG. 11 is a diagram showing a job management table 16J(9) according to the first embodiment. [Figure 22] FIG. 11 is a diagram showing a resource management table 16R(5) according to the first embodiment. [Diagram 23] FIG. 1 is a diagram showing a hardware configuration of a job execution control device 10 according to a first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] In the description of the embodiments and the drawings, the same elements and corresponding elements are given the same reference numerals. Descriptions of elements given the same reference numerals are omitted or simplified as appropriate. In the following embodiments, "unit" may be read as "circuit", "step", "procedure", "process" or "circuitry" as appropriate.
[0012] Embodiment 1 A job execution control device 10 according to the first embodiment will be described with reference to FIGS.
[0013] ***Configuration Description*** 1 shows the configuration of a parallel job execution system 9. The parallel job execution system 9 includes three servers and a job execution control device 10. The number of servers is not limited to three, but may be one, two, or four or more. The three servers and the job execution control device 10 are capable of communicating with each other via a network 8.
[0014] FIG. 2 shows a block configuration of the job execution control device 10. The job execution control device 10 causes each server to execute a plurality of jobs to which a priority indicating the urgency of processing has been assigned. The server may also be referred to as a job execution server. The job execution control device 10 includes a priority management unit 11 and a job / resource database 16. Hereinafter, the database is referred to as DB. The job / resource DB 16 includes a job management table 16J and a resource management table 16R. The priority management unit 11 specifies a server executing an interruption priority job from among the plurality of servers when a server having the resource capacity required for executing a scheduled job to be executed is not present among the plurality of servers. An interruption priority job is a job that can satisfy the required resource capacity by interruption and is assigned an interruption priority that is a priority at which interruption of execution is permitted. In the first embodiment, the priority at which interruption of execution is permitted is a low priority. The priority management unit 11 interrupts the execution of the interruption priority job being executed in the specified server, and causes the specified server to execute the scheduled job.
[0015] The priority management unit 11 causes each server to execute a job and also suspends an executing job. The priority management unit 11 also monitors data to be processed, and when data is input, registers the job in a job management table 16J, which will be described later. The priority management unit 11 also changes the priority of the job. The priority management unit 11 also measures the resource status of the server. The job / resource DB 16 holds a job management table 16J and a resource management table 16R. In the following, in order to distinguish between the states of the job management table 16J and the resource management table 16R, they are represented as job management table 16J(1), job management table 16J(2), etc.
[0016] FIG. 3 shows the configuration of the data registration folder 20(1) that holds image data to be processed by the job execution control device 10. The data registration folder 20(1) is the root folder. The low priority folder 21 holds image data with a low priority. The high priority folder 22 holds image data with a high priority. FIG. 3 is as follows. The low priority folder 21 holds image 1, image 2, image 3, image 5, and image 6, which have a low priority. The high priority folder 22 holds image 4, which has a higher priority than the low priority.
[0017] Fig. 4 shows job management table 16J(1) for registering a job to process the image in Fig. 3. Job management table 16J(1) shows the state immediately after each file in data registration folder 20(1) has been registered by the flow processing shown in Fig. 6, which will be described later. Jobs for processing images 1 to 6 have been registered in job management table 16J(1). The job status in job management table 16J(1) is "In Progress."
[0018] 5 shows resource management table 16R(1) at the time of registration processing of the data shown in job management table 16J(1). Resource management table 16R(1) holds job IDs, process IDs, CPU usage, memory usage, disk usage, CPU free rate, free memory capacity, free disk capacity, and server names.
[0019] FIG. 6 shows the data registration folder 20(2) in a state where a high priority image 7 has been added to the high priority folder 22 from the state of the data registration folder 20(1).
[0020] ***Explanation of Operation*** 7 is a flowchart showing the job registration operation of the priority management section 11. The job registration operation by the priority management section 11 will be described with reference to FIG.
[0021] (Step S101) In step S101, the priority management unit 11 becomes a resident program by starting an infinite loop.
[0022] (Step S102) In step S102, priority management unit 11 acquires unregistered image files as processing data from data registration folder 20. That is, priority management unit 11 acquires a list of all files in data registration folder 20, compares the acquired file list with the job names shown in job management table 16J(1), and newly registers image files that do not exist in job management table 16J(1) in job management table 16J(1). In this case, image 7 is the new registration target. The following description will be given assuming image 7 as the registration target. Registration of other images is similar to that for image 7.
[0023] (Step S103) In step S103, the priority management unit 11 performs a high priority determination for image 7. The high priority determination is a process for determining whether the image file of image 7 has high priority. If the image file to be registered as a job exists in the high priority folder 22, the priority management unit 11 determines that the image file has high priority. Since image 7 exists in the high priority folder 22, the priority management unit 11 determines that image 7 has high priority.
[0024] (Step S104) In step S104, the priority management unit 11 sets a high priority to the image 7. The setting result in step S104 is registered as "priority" in a job management table 16J(2) shown in FIG. 8, which will be described later.
[0025] (Step S105) In step S105, the priority management unit 11 executes file size setting. The file size can be obtained by a specific command. This result is registered in "file size" in a job management table 16J(2) shown in FIG. 8, which will be described later.
[0026] (Step S106) In step S106, the priority management unit 11 registers the job name, the priority, and the file size in the job management table 16J. FIG. 8 shows the job management table 16J(2) in image 7 immediately after the job name, priority, and file size have been registered.
[0027] 9 is a flowchart showing the execution / interruption process in which the priority management unit 11 causes each server to execute or interrupt a job. The subject of the operations in FIG.
[0028] (Step S201) An infinite loop starts in step S201, and the priority management unit 11 becomes a resident program.
[0029] (Step S202) In step S202, the priority management unit 11 changes the job priority. Changing the job priority is a process in which, if the priority of a job that is suspended is "low," the priority management unit 11 changes it to "medium." In the job management table 16J(2), there is no job with a job status of "suspended." Processing proceeds to step S203 for job acquisition.
[0030] (Step S203) In step S203, priority management unit 11 acquires a job to be executed. Priority management unit 11 acquires a job whose job status is blank in job management table 16J(2). A job whose job status is blank is a scheduled job that is scheduled for execution. A job with job ID 7 is acquired as the scheduled job.
[0031] (Step S204) Step S204 is a loop process the number of which corresponds to the number of jobs acquired in step S203.
[0032] (Step S205) In step S205, the priority management unit 11 obtains the resource status by resource monitoring. Resource monitoring obtains the CPU usage, memory usage, and disk usage for each process from the server currently executing the job. Specifically, by using a specific command, the CPU usage and memory usage for each process can be obtained from each server. Disk capacity can also be obtained from each server by using a command to obtain disk capacity.
[0033] (Step S206) In step S206, the priority management unit 11 registers the resource status of each server acquired in step S205, i.e., the resource usage amount, for each job in the resource management table 16R. Since ID7 is before execution, the resource status is the state of the resource management table 16R(1).
[0034] (Step S207) In step S207, the priority management unit 11 judges whether there is free resource capacity for executing the job ID7. In the flow of FIG. 9, the memory usage is used to judge the resource usage. The judgment of the free resource capacity is a process of extracting a server having the free resource capacity for executing the job ID7. The priority management unit 11 refers to the resource management table 16R(1) and selects a server having the free memory capacity required for the job execution of the job ID7. According to the resource management table 16R(1), the free memory capacity of each server is 10.5 GB for the job execution server 1, 0.6 GB for the job execution server 2, and 6.1 GB for the job execution server 3. The expected memory usage is set to 1.1 times the image file size. Since the image file size of the job ID7 is 12 GB, the memory capacity required for the job ID7 is 13.2 GB. According to the resource management table 16R(1), the free memory capacity of all the servers is less than 13.2 GB, so there is no server that can execute the job ID7. Therefore, the result of step S207 is NO, and the process proceeds to step S209.
[0035] (Step S209) In step S209, priority management unit 11 determines whether the priority of job ID 7 is high. Priority management unit 11 refers to job management table 16J(2) and determines whether job ID 7 is high priority. Since job ID 7 is high priority, step S209 is YES, and the process proceeds to step S210.
[0036] (Step S210) In step S210, priority management unit 11 obtains information on jobs being executed for each server from job management table 16J(2). Steps S210 to S219 are processes for securing resources for high priority jobs scheduled for execution. Priority management unit 11 obtains job information for each job ID 1 to job ID 6 from job management table 16J(2). Processing proceeds to step S221.
[0037] (Step S221) In step S221, the process loops for the job acquired in step S210 as many times as the number of servers, and then the process proceeds to step S215.
[0038] (Step S215) In step S215, the process loops for each server as many times as the number of jobs to be executed. Specifically, in step S210, ID1 and ID4 for server 1, ID2 and ID5 for server 2, and ID3 and ID6 for server 3 are obtained as running jobs from resource management table 16R(2).
[0039] (Step S216) The process proceeds to step S216. The loop is performed in order of the most recent execution start time of the jobs being executed in the servers. Specifically, the priority management unit 11 first processes job ID 4 and job ID 1 for execution server 1, then processes job ID 5 and job ID 2 for execution server 2, and then processes job ID 6 and job ID 3 for execution server 3. First, the process of job ID 4 and job ID 1 for execution server 1 will be explained. In step S216, job ID 4 has high priority, so the answer is YES. Therefore, the process returns to the loop in step S215, and next job ID 1 is verified. In step S216, the priority management unit 11 determines that job ID 1 has low priority, and the process proceeds to step S217.
[0040] (Step S217) In step S217, the priority management unit 11 performs a job interruption determination for the job with job ID 1. The job interruption determination is a determination as to whether or not a resource capacity for executing a scheduled high priority job (ID 7) can be secured by interrupting the execution of a low priority job (ID 1) that is currently being executed. The priority management unit 11 acquires the memory usage of job ID 1 and the free memory capacity of the job execution server 1 from the resource management table 16R(1). The memory usage of job ID 1 is 2.2 GB, and the free capacity of the job execution server 1 is 10.5 GB. Therefore, 2.2 GB + 10.5 GB = 12.7 GB. The required memory for job ID 7 is 13.2 GB. Therefore, the capacity obtained by interruption (12.7 GB) < the required memory for the scheduled job (13.2 GB). Therefore, the interrupted job determination is NO, and the process returns to step S221, and the verification target is switched from job execution server 1 to job execution server 2.
[0041] In step S215, the priority management unit 11 performs a loop on the jobs of the job execution server 2. When the jobs of the job execution server 2 are arranged in order of most recently executed, the order is job ID 5, job ID 2 according to the job management table 16J(2). The loop is performed in the order of job ID 5, job ID 2, and then the process proceeds to step S216.
[0042] (Step S216) In step S216, the job management table 16J(2) indicates that job ID5 has a low priority, so the answer is NO. The process proceeds to step S217.
[0043] (Step S217) In step S217, from the resource management table 16R(1), the memory usage amount of job ID5 is 5.5GB, and the free memory capacity of job execution server 2 is 8.3GB, so 5.5GB + 8.3GB = 13.8GB. Since 13.8GB > required memory 13.2GB. As described above, 13.8GB exceeds the required memory 13.2GB of job ID7. Therefore, the priority management unit 11 determines that job ID7 is executable by interrupting the execution of job ID5 that is being executed on job execution server 2. That is, the priority management unit 11 determines to interrupt the execution of the job of job ID5. Since it is YES in step S217, the process proceeds to step S219.
[0044] (Step S219) In step S219, the priority management unit 11 changes the job status of job ID5 to interrupted in the job management table 16J(2) and interrupts the job of job ID5. Job interruption can be realized by executing the process termination command of the OS. The process proceeds to step S205. Figure 10 shows the job management table 16J(3) after the interruption of the job of job ID5 is confirmed.
[0045] (Step S205) <ID5 interrupted, waiting for ID7 to execute> In step S205, the priority management unit 11 monitors the resources of each job execution server and obtains the resource free information.
[0046] (Step S206) <ID5 interrupted, waiting for ID7 to execute> In step S206, the priority management unit 11 registers the resource free information in the resource management table 16R. Figure 11 shows the resource management table 16R(2) registered by the priority management unit 11 in step S206. Since the job of job ID5 has been interrupted, in the resource management table 16R(2), each item of job ID5 is blank. Also, since job ID7 has not been executed, job ID7 is not described in the resource management table 16R(2). The process proceeds to step S207.
[0047] (Step S207) <ID5 Interrupted, Waiting for ID7 Execution> In step S207, the priority management unit 11 determines the resource free capacity. This is a process of determining the server for executing the job of job ID7. The priority management unit 11 selects a server with free memory capacity required by job ID7. Now, considering the interruption of job ID5 described above, the free memory capacity of each server is, from the resource management table 16R(2), 10.5GB for job execution server 1, 13.8GB for job execution server 2, and 6.1GB for job execution server 3. Job execution server 2 exceeds the required memory of 13.2GB for job ID7. Therefore, the priority management unit 11 determines that the job of job ID7 is executable. That is, the priority management unit 11 determines that there is free space in the resources of the job of job ID7. Thus, step S207 becomes YES, and the process proceeds to step S208.
[0048] (Step S208) <ID5 Interrupted, Waiting for ID7 Execution> In step S208, the priority management unit 11 acquires the job priority, memory usage, and memory free capacity from the job management table 16J(2) and the resource management table 16R(2). Then, the priority management unit 11 selects the job to be executed. Since job ID7 has a high priority, the priority management unit 11 selects job ID7. The process proceeds to step S211.
[0049] (Steps S211, S212) <ID5 Interrupted, Waiting for ID7 Execution> In step S211, the priority management unit 11 selects the job execution server. Based on the reference result of the resource management table 16R(2) in step S208, the priority management unit 11 selects job execution server 2 and registers it in the job management table 16J(3) (step S212). The process proceeds to step S213.
[0050] (Step S213) In step S213, before executing the job with job ID 7, the priority management unit 11 changes the job status of the job with job ID 7 in the job management table 16J(3) to "Executing". FIG. 12 shows the job management table 16J(4) in which the job status of the job with job ID 7 has been changed to "Executing". The process proceeds to step S214.
[0051] (Step S214) <ID5 Interruption, ID7 Execution Start> In step S214, the priority management unit 11 executes the job with job ID 7, and the process proceeds to step S220. Since there is no job in step S220, the process returns to step S201 and starts an infinite loop.
[0052] (Step S202) <ID5 Interruption, ID7 Execution In Progress> In step S202, the priority management unit 11 changes the job priority. The priority management unit 11 changes the interruption priority of the interrupted priority job to a priority for which execution interruption is not permitted. Specifically, it is as follows. The priority management unit 11 changes the priority of the job with a low priority that has been interrupted in execution from low to medium. Since the job with job ID 5 was interrupted in the interruption process of step S219, the priority management unit 11 changes the priority of job ID 5 to medium. FIG. 13 shows the job management table 16J(5) in a state where the priority of job ID 5 has been changed to medium.
[0053] (Step S203) <ID5 Interruption, ID7 Execution In Progress> In step S203 (the second time), in the same manner as the first time, the priority management unit 11 acquires the job to be executed. Here, the priority management unit 11 acquires the job ID with a blank or interrupted job status as the job to be executed. In this example, the priority management unit 11 acquires job ID 5 from the job management table 16J(5).
[0054] <ID5 Interrupted, ID7 Executing> In step S205 (third time), the priority management unit 11 performs resource monitoring, and in step S206, the priority management unit 11 registers the resources. Figure 14 shows the state of the resource management table 16R(3) due to this registration. In step S207 (third time), the priority management unit 11 determines whether there is free space of 5.5GB required for the interrupted job ID5. From the resource management table 16R(3), the memory free capacity on the job execution server 1 is 10.5GB, and job ID5 can be executed. Therefore, it becomes YES in step S207, and the process proceeds to step S208 (second time).
[0055] In step S208 (second time), the priority management unit 11 selects job ID5 in the execution job selection. In step S211 (second time), the priority management unit 11 selects the job execution server 1. In step S212 (second time), the priority management unit 11 registers the job execution server 1 for job ID5 in the job management table 16J(6).
[0056] In step S213 (second time), the priority management unit 11 changes the job status of job ID5 to executing in the job management table 16J. Figure 15 shows the job management table 16J(6) where for job ID5, the job status = executing, and the execution server = job execution server 1. In step S214 (second time), the priority management unit 11 executes the job of job ID5. Specifically, the priority management unit 11 causes the job execution server 1 to execute the job of job ID5.
[0057] The processing of FIG. 9 has been described above. In the processing of FIG. 9, the executability of the scheduled jobs such as job ID7 and job ID5 of the job is determined only by the memory free capacity. However, it is not limited to this, and a combination of CPU utilization rate and memory free capacity may be used, and the determination may be made in ascending order of sufficient free space for execution of the memory free capacity and low CPU utilization rate.
[0058] (Re - execution) In the process in Figure 9, if a high-priority interrupt job such as job ID 7 cannot be executed due to insufficient resources, a low-priority job that is currently running, such as job ID 5, is suspended. By suspending this currently running job, more resources are made available, making it possible to execute the interrupt job. At this time, when re-executing an interrupted job such as job ID 5, the process in Figure 9 assumes that the program is executed from the beginning. In this case, part of the execution results of job ID 5 will be discarded, resulting in wasteful processing.
[0059] FIG. 16 shows a job management table 16J(7) to which the items of processing status and work folder path have been added. The job management table 16J(7) further has items of processing status and work folder. The work folder is a shared folder in which each server stores the processing status of the interrupted job at the time of interruption. The priority management unit 11 acquires the processing status and work folder path from the server in which the interrupted job exists at the time of interruption of the job in step S219 in FIG. 9. The processing status is the state of the processing result of the interrupted job at the time of interruption. The work folder path is location information indicating the storage area of the processing result of the interrupted job at the time of interruption. The server in which the interrupted job exists stores the processing result of the interrupted job at the time of interruption in the shared folder as a work file. The priority management unit 11 knows the state of the processing result of the interrupted job at the time of interruption as the processing status, and knows the storage area of the processing result of the interrupted job at the time of interruption as the work folder path.
[0060] 17 shows the correspondence between the processing status and the processing overview indicated by that status, as status information 17. With regard to the processing status, "1" is initialization, "2" is image processing 1, "3" is image processing 2, "4" is image value calculation 1, "5" is image value calculation 2, and "6" is image value calculation 2. In job management table 16J(7), processing status i (i=1, 2, 3, 4) indicates that the "processing" corresponding to processing status i in status information 17 has been completed.
[0061] FIG. 18 is a flowchart of a process in which the priority management unit 11 resumes execution of a process that has been interrupted and is executable from the time of interruption.
[0062] When a job is started, processing begins from step S301. In FIG. 9, assume that job ID5 is executed again after being interrupted. The job execution server 1 that has been selected to execute the interrupted job ID5 receives processing status=2 and work folder="Common\Image 5" from the priority management unit 11. Since the job execution server 1 re-executes the interrupted job from the middle, the job of job ID5 reads the data of the processing results up to that point that is stored in the work folder="Common\Image 5" and starts processing. Each time the processing of that status is completed, the job execution server 1 stores the processing results in the work folder.
[0063] The operation when re-executing the interrupted job ID5 will be described. The job (job execution server) 1 receives the processing status and work folder path as arguments from the priority management unit 11, and causes the job to start processing. The timing of receipt is, for example, any step prior to step S214 in Fig. 9, for example, any one of steps S211 to S213. Currently, the processing status = 2, and the work folder = "Common\Image 5". (1) In step S301, the processing status of the job with job ID 5 is incremented by +1, so that the processing status becomes 3. (2) In step S302, the job with job ID 5 obtains a work file, which is the result of processing up to a certain point, from the work folder based on the work folder = "Common\Image 5" received from the priority management unit 11. The work file stores the result of processing up to a certain point for the job with job ID 5. (3) In step S303, the job with job ID 5 executes processing in a loop until the processing status becomes a value greater than 6. (4) In step S304, the job with job ID 5 executes processing according to the processing status. In this example, the job executes "Image Processing 2" according to FIG. (5) Next, in step S305, the job with job ID 5 saves the processing results in the work folder. (6) Furthermore, in step S306, the job with job ID 5 updates its processing status. When the job updates its processing status, it transmits information about the updated processing status to the priority management unit 11. (7) In step S307, the priority management unit 11 updates the processing status in the job management table 16J(7). (8) Thereafter, the process proceeds from step S308 to step S303, and is repeated until the processing status becomes greater than 6. When the processing status becomes 7, the process exits the loop and ends.
[0064] As described above, when the interruption priority job with job ID 5 is interrupted, the processing result in the middle of processing at the time of interruption is stored in the memory area (shared folder) shared by each server. In addition, the job with job ID 5 transmits the processing state (processing status) of the processing result and the location information (work folder path) in the memory area where the processing result exists to the priority management unit 11. When re-executing an interrupted priority job (job with job ID 5) whose execution has been interrupted and whose interruption priority has been changed to a priority in which interruption of execution is not permitted, a priority management unit 11 determines a server from among a plurality of servers to re-execute the interrupted priority job. The priority management unit 11 transmits the processing status and position information of the interrupted priority job to the determined server (job execution server 1), and causes the determined server to execute the interrupted priority job again.
[0065] As described above, when an interrupted job is re-executed, the results of the previous processing are stored, and when the job is resumed, it is resumed from the previously stored contents, so that the processing up to that point is not needlessly discarded, and more efficient processing is possible.
[0066] (Changing the job execution order) When there are multiple scheduled jobs with interruption priority, the priority management unit 11 causes a server that has the necessary resources to execute the scheduled job among multiple servers to execute the job. This process makes it possible to change the order in which jobs are executed. Specifically, it is as follows.
[0067] Fig. 19 shows a job management table 16J(8) when the job execution order is changed. In the job management table 16J(8) of Fig. 19, there are two unexecuted jobs, ID8 and ID9. Priority management unit 11 receives information on jobs with job IDs 8 and 9 from job management table 16J(7). Priority management unit 11 estimates the memory capacity to be used from the file sizes of the received jobs. FIG. 20 shows the resource management table 16R(4). The priority management unit 11 obtains the free memory capacity from the resource management table 16R(4) in FIG. 20. The order of job execution is the order of submission taking into account the priority, and the priority management unit 11 attempts to execute jobs starting with job ID 8. In this case, job ID 8 uses 7 GB of memory, and job ID 9 uses 5 GB of memory. From the resource management table 16R(4) in FIG. 20, the maximum free memory capacity of the job execution server 3 is 6.1 GB. Therefore, job ID 8 cannot be executed due to insufficient resources. Therefore, the priority management unit 11 attempts to execute job ID 9. The job priorities of both job ID 8 and job ID 9 are low and at the same level. Job ID 9 can be executed within the free memory capacity of the execution server 3. Therefore, the priority management unit 11 executes job ID 9 first. After rearranging the job execution order, the priority management unit 11 changes the priority of the skipped job ID 8 from low to medium. This prevents the skipped job from not being executed. The results are shown in Figures 21 and 22. FIG. 21 shows the job management table 16J(9). FIG. 22 shows the resource management table 16R(5). This allows efficient processing by changing the execution order of jobs with the same priority.
[0068] As described above, when there are multiple scheduled jobs (job ID 8, job ID 9) with interruption priority, the priority management unit 11 causes the scheduled job, which includes a server among multiple servers that has the required amount of resources to be executed, to be executed by the server that has the required amount of resources.
[0069] ***Advantages of the First Embodiment*** According to the above-described first embodiment, the following effects can be obtained. (1) In an environment where multiple jobs are executed on multiple servers, when a high-priority interrupt job is to be executed, the available resources are checked and the interrupt job can be executed efficiently. In other words, the priority management unit 11 secures free memory space for an interrupt job by suspending a job with a low priority. Therefore, even if there is a shortage of free memory space for executing an interrupt job, the interrupt job can be executed efficiently. (2) When resuming an interrupted low-priority job, the priority management unit 11 reruns the job based on the status at the time of interruption. This prevents the processing performed before the interruption from going to waste. (3) The priority management unit 11 raises the priority of the interrupted low-priority job from low to medium. Therefore, when the interrupted low-priority job is re-executed, it is executed with priority over other low-priority jobs. In the first embodiment, jobs with a "medium" priority are not subject to interruption. Therefore, since the re-executed job has a medium priority, it will not be interrupted a second time. (4) Furthermore, in the parallel job execution system 9 according to the first embodiment, multiple jobs can be started as long as resources allow, so there is no need to fix an upper limit on the number of parallel jobs, enabling efficient parallel processing. (5) The priority management unit 11 rearranges the order of jobs with the same priority, so that jobs with the same priority can be processed quickly.
[0070] (Hardware configuration supplement) 23 shows a hardware configuration of the job execution control device 10. The job execution control device 10 is a computer. The job execution control device 10 includes a processor 110. The job execution control device 10 includes, as hardware components, the processor 110, a main storage device 120, an auxiliary storage device 130, an input interface 140, an output interface 150, and a communication interface 160. The processor 110 is connected to other hardware via a signal line 170 and controls the other hardware.
[0071] The job execution control device 10 includes a priority management section 11. The function of the priority management section 11 is realized by a job execution control program 131.
[0072] The processor 110 is a device that executes a job execution control program 131. The processor 110 executes the job execution control program 131 to implement the functions of the priority management unit 11. The processor 110 is an integrated circuit (IC) that performs arithmetic processing.
[0073] Specific examples of the main memory device 120 include a static random access memory (SRAM) and a dynamic random access memory (DRAM). The main memory device 120 holds the results of calculations performed by the processor 110.
[0074] The auxiliary storage device 130 is a storage device that stores data in a non-volatile manner. A specific example of the auxiliary storage device 130 is a hard disk drive (HDD). The auxiliary storage device 130 may be a portable recording medium. The auxiliary storage device 130 stores a job execution control program 131. The auxiliary storage device 130 realizes the job / resource DB 16.
[0075] The input IF 140 is a port through which data is input from each device. The output IF 150 is connected to various devices. The output IF 150 is a port through which data is output by the processor 110 to various devices. The communication IF 160 is a communication port through which the processor communicates with other devices. The communication IF 160 is connected to a network.
[0076] The processor 110 loads the job execution control program 131 from the auxiliary storage device 130 into the main storage device 120. The processor 110 reads the loaded job execution control program 131 from the main storage device 120 and executes it.
[0077] The job execution control program 131 is a program that causes a computer to execute each process, each procedure, or each step, where the "section" in the priority management section 11 is replaced with a "process," a "procedure," or a "step."
[0078] The job execution control method is a method performed by the job execution control device 10, which is a computer, executing the job execution control program 131. The job execution control program 131 may be provided by being stored in a computer-readable recording medium, or may be provided as a program product. [Explanation of symbols]
[0079] 8 network, 9 parallel job execution system, 10 job execution control device, 11 priority management unit, 16 job / resource DB, 16J job management table, 16R resource management table, 17 status information, 20 data registration folder, 21 low priority folder, 22 high priority folder, 110 processor, 120 main memory device, 130 auxiliary memory device, 131 job execution control program, 140 input interface, 150 output interface, 160 communication interface, 170 signal line.
Claims
1. A job execution control device that causes one or more servers to execute a plurality of jobs to which priorities indicating urgency of processing are assigned, comprising: A job execution control device having a priority management unit that, when there is no server among the one or more servers that has the amount of resources required to execute a scheduled job that is scheduled to be executed, identifies a server from the one or more servers that is executing an interruption priority job, which is a job that can satisfy the required amount of resources by interrupting its execution and has been assigned an interruption priority that is a priority at which interruption of its execution is permitted, interrupts the execution of the interruption priority job being executed on the identified server, and has the identified server execute the scheduled job.
2. The priority management unit 2. The job execution control device according to claim 1, wherein the interruption priority of the interruption priority job, the execution of which has been interrupted, is changed to a priority in which interruption of execution is not permitted.
3. The interruption priority job is when interrupting execution, storing a processing result during the processing at the time of interruption in a storage area shared by each server, and transmitting a processing state of the processing result and location information in the storage area where the processing result exists to the priority management unit; The priority management unit 3. A job execution control device as described in claim 2, wherein, when an interruption priority job whose execution has been interrupted and whose interruption priority has been changed to a priority in which interruption of execution is not permitted is to be executed again, a server which will again execute the interruption priority job is determined from among the one or more servers, the processing status and location information of the interruption priority job are transmitted to the determined server, and the determined server is caused to execute the interruption priority job again.
4. The priority management unit A job execution control device as described in any one of claims 1 to 3, when there are multiple scheduled jobs having the interruption priority, a scheduled job for which a server among the one or more servers has the amount of resources required for execution is caused to be executed by the server having the amount of resources required for execution.
5. A computer that is a job execution control device that causes one or more servers to execute a plurality of jobs to which priorities indicating urgency of processing are assigned, A job execution control program that, when there is no server among the one or more servers that has the amount of resources required to execute a scheduled job that is scheduled to be executed, identifies a server from the one or more servers that is executing an interruption priority job, which is a job that can satisfy the required amount of resources by interrupting its execution and has been assigned an interruption priority that is a priority at which interruption of its execution is permitted, interrupts the execution of the interruption priority job being executed on the identified server, and executes a priority management process to have the identified server execute the scheduled job.
6. A computer that is a job execution control device that causes one or more servers to execute a plurality of jobs to which priorities indicating urgency of processing are assigned, A job execution control method for identifying a server from among the one or more servers that is executing an interruption priority job, which is a job in which the required resource amount can be satisfied by interrupting execution and which has been assigned an interruption priority that allows interruption of execution, when there is no server among the one or more servers that has the amount of resources required to execute a scheduled job that is scheduled to be executed, interrupting the execution of the interruption priority job being executed on the identified server, and having the identified server execute the scheduled job.
Citation Information
Patent Citations
Device and system for job processing and storage medium
JP2000330801A
