Calculation method and calculation instruction system

The calculation method and system address the challenge of completing tasks on time by dynamically allocating subtasks between low-cost and high-cost execution units, ensuring data processing is finished as scheduled despite potential interruptions.

JP7552968B2Active Publication Date: 2024-09-18HITACHI VANTARA LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021045566
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2024-09-18
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

Existing systems fail to process data up to a specified date and time due to the forced termination of tasks, particularly in environments with both low-cost and high-cost computing resources.

Method used

A calculation method and system that dynamically allocate subtasks between low-cost and high-cost execution units based on available resources and completion deadlines, creating an inexpensive executable table to ensure tasks are completed on time.

Benefits of technology

Ensures data processing is completed by the specified date and time, considering potential forced terminations of low-cost resources, by optimizing the use of both low-cost and high-cost execution units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552968000001
    Figure 0007552968000001
  • Figure 0007552968000010
    Figure 0007552968000010
  • Figure 0007552968000012
    Figure 0007552968000012
Patent Text Reader

Abstract

To provide an operation method and an operation instruction system capable of processing data up to a specified date and time in consideration of forced termination of a task.SOLUTION: A container execution management system includes a public cloud 2 and an on-premises data center 3. These are connected by a connection line 4. The public cloud 2 is used by an unspecified number of companies and organizations, and a usage fee is paid to an administrator of the public cloud 2 according to usage. The on-premises data center 3 that is a data center of a data center operator that provides co-location service performs operation processing using an operation resource of the public cloud 2 while data is stored in the on-premises data center 3.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a calculation method and a calculation instruction system. [Background technology]

[0002] Services that allow an unspecified number of users to use computing resources by paying a fee are widely known. Patent Document 1 discloses a computer-implemented method including: receiving a definition of a task, the definition including a required deadline time, the required deadline time including a user-specified deadline for completing execution of the task; determining an estimated period for completing the execution of the task for each of a plurality of computing resources; selecting one or more of the computing resources based on an estimated cost of completing the execution of the task for each of the plurality of computing resources; and starting the execution of the task at a scheduled time using the selected one or more computing resources, the scheduled time being earlier than the required deadline time by at least the estimated period. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Application No. 2015-557200 Summary of the Invention [Problem to be solved by the invention]

[0004] The invention described in Patent Document 1 does not allow data processing up to a specified date and time while taking into consideration the forced termination of a task. [Means for solving the problem]

[0005] A computing method according to a first aspect of the present invention is a computing method for computing a plurality of subtasks using a computing system executed by a computer, the computing system having a cheap execution unit that is cheap to use but may be forcibly stopped, and an expensive execution unit that is expensive to use but will not be forcibly stopped, the method including: a concurrent execution number calculation step for calculating the number of concurrent executions of the subtasks for each time based on the resources used by each of the subtasks and the resources available for each time; a cheap remaining number calculation step for creating a cheap executable table indicating a cheap remaining number, which is the number of tasks that may be executed by the cheap execution unit for each time, based on the completion date and time when the computation of the plurality of subtasks is to be completed and the concurrent execution number; and an execution instruction step for causing each of the subtasks to be executed by either the cheap execution unit or the expensive execution unit by referring to the cheap executable table. A computation instruction system according to a second aspect of the present invention is a computation instruction system that performs computation of a plurality of subtasks using a computation system having a cheap execution unit that is cheap to use but may be forcibly stopped, and an expensive execution unit that is expensive to use but will not be forcibly stopped, and the computation instruction system comprises: a concurrent execution number calculation unit that calculates the number of concurrent executions of the subtasks at each time based on the resources used by each of the subtasks and the resources available at each time; a cheap remaining number calculation unit that creates a cheap executable table that indicates a cheap remaining number, which is the number of tasks that may be executed by the cheap execution unit at each time, based on the completion date and time when the computation of the plurality of subtasks is to be completed and the concurrent execution number; and an execution instruction unit that refers to the cheap executable table and causes each of the subtasks to be executed by either the cheap execution unit or the expensive execution unit. Effect of the Invention

[0006] According to the present invention, data processing can be performed up to a specified date and time while taking into consideration the forced stopping of a task. [Brief description of the drawings]

[0007] [Figure 1] Overall configuration of container execution management system 1 [Diagram 2] FIG. 2 shows information managed by a task management unit 21. [Diagram 3] FIG. 1 shows an example of task information 100. [Figure 4] FIG. 1 shows an example of subtask information 110. [Diagram 5] FIG. 1 is a diagram showing an example of task-usage resource information 120. [Figure 6] FIG. 1 is a diagram showing an example of container execution environment information 130. [Figure 7] FIG. 13 is a diagram showing an example of maximum parallel degree information 140. [Figure 8] FIG. 1 shows an example of a cheap feasibility table 150. [Figure 9] FIG. 15 is a diagram showing an example of DB information 155. [Figure 10] FIG. 13 is a diagram showing an example of DB operation information 160. [Figure 11] FIG. 13 is a diagram showing an example of connection line operation information 170. [Figure 12] FIG. 1 shows an example of storage information 180. [Figure 13] FIG. 1 shows an example of storage resource utilization information 190. [Figure 14] Diagram explaining how to determine the container execution service [Figure 15] 1 is a flowchart showing a task execution process performed by the task management unit 21. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] --First embodiment-- A first embodiment of a container execution management system will be described below with reference to Figures 1 to 15. Note that the embodiment described below does not limit the invention related to the claims, and all of the elements and combinations thereof described in the embodiment are not necessarily essential to the solution of the invention.

[0009] FIG. 1 is an overall configuration diagram of a container execution management system 1. The container execution management system 1 includes a public cloud 2 and an on-premise data center 3, which are connected by a connection line 4. Operations in the public cloud 2 and the on-premise data center 3 are executed by a central processing unit (CPU) that expands a program stored in a read-only storage device (ROM) into a readable and writable storage device (RAM) and executes it. However, at least one of the operations described below may be realized by a field programmable gate array (FPGA), which is a rewritable logic circuit, or an application specific integrated circuit (ASIC), which is an integrated circuit for a specific application, instead of a combination of a CPU, a ROM, and a RAM. Furthermore, these operations may be realized by a combination of different configurations, for example, a combination of a CPU, a ROM, a RAM, and an FPGA, instead of a combination of a CPU, a ROM, and a RAM.

[0010] The public cloud 2 includes one or more data centers and has vast computing resources. The public cloud 2 is used by an unspecified number of companies and organizations, who pay a usage fee to the administrator of the public cloud 2 (hereinafter referred to as the "service provider") according to their usage.

[0011] The on-premise data center 3 is a data center owned by a company that owns an IT system. The computational resources of the on-premise data center 3 are more limited than those of the public cloud 2. The on-premise data center 3 may be a data center of a data center operator that provides colocation services. Users of the on-premise data center 3 (hereinafter referred to as "operators") cannot take data outside for security reasons or the like. In this embodiment, computational processing (hereinafter referred to as "tasks") is performed using the computational resources of the public cloud 2 while leaving the data in the on-premise data center 3.

[0012] In this embodiment, a task is divided into smaller parts and called a "subtask." The processing load of each subtask is approximately the same, and each subtask requires approximately the same processing time. There is no dependency between the subtasks, and the order of execution is arbitrary. Furthermore, there is no problem even if the start order and end order are different.

[0013] The public cloud 2 includes a low-cost execution unit 11, a container 12, an expensive execution unit 13, a DB server 14, a task management unit 21, a scale control unit 22, and a public monitoring unit 23. Each of the low-cost execution unit 11, the expensive execution unit 13, the DB server 14, the task management unit 21, the scale control unit 22, and the public monitoring unit 23 may be realized by an independent computing device, or one or more may be realized by the same computing device, or one configuration may be realized by multiple computing devices. The container 12 is electronic data including a program that an operator wants to process, and is executed by the low-cost execution unit 11 or the expensive execution unit 13. Hereinafter, the low-cost execution unit 11 and the expensive execution unit 13 are collectively referred to as a "computation system," and the task management unit 21 is also referred to as a "computation instruction system."

[0014] Some components of the public cloud 2 manage information. For example, the scale control unit 22 manages DB information 155. In this embodiment, managing information means performing at least one of reading and writing the information. There are no particular limitations on the area in which this information is stored, but for the sake of convenience, FIG. 1 shows it inside the component that manages the information.

[0015] The inexpensive execution unit 11 is a service that runs the container 12. The inexpensive execution unit 11 may forcibly stop a running container at the convenience of the service provider, but the usage fee is inexpensive. The inexpensive execution unit 11 has a low quality service level agreement (SLA), so it can also be said to have a low SLA. The expensive execution unit 13 is a service that runs the container 12. The expensive execution unit 13 will not forcibly stop a running container, but the usage fee is expensive. The expensive execution unit 13 has a high quality service quality agreement, so it can also be said to have a high SLA.

[0016] The difference between the inexpensive execution unit 11 and the expensive execution unit 13 is the usage fee and the possibility of forced stop, but there is no difference in performance. In other words, when a subtask is executed using the inexpensive execution unit 11 without forced stop, the time required to complete execution is the same when the same subtask is executed using the expensive execution unit 13. Note that, hereinafter, a subtask executed using the inexpensive execution unit 11 is also referred to as an "inexpensive subtask" for convenience, and a subtask executed using the expensive execution unit 13 is also referred to as an "expensive subtask" for convenience.

[0017] There are multiple inexpensive execution units 11 and multiple expensive execution units 13, each of which executes a subtask obtained by dividing a task. Each of the inexpensive execution units 11 and the expensive execution units 13 may be provided as a service that executes calculations, or a cluster that executes calculations may be provided. The DB server 14 is a database that accumulates data of the containers 12. The more the processing of the containers 12 increases, the greater the load on the DB server 14 becomes.

[0018] The task management unit 21 judges whether the container 12 should be executed by the low-cost execution unit 11 or the high-cost execution unit 13, and issues an instruction for execution. Information managed by the task management unit 21 will be described later. The scale control unit 22 increases or decreases the resources required by the DB server 14. The public monitoring unit 23 monitors the operation of the public cloud 2, specifically, the operation information of the DB server 14 and the connection line 4. The public monitoring unit 23 manages DB operation information 160 and connection line operation information 170. The scale control unit 22 manages DB information 155, which is information related to the DB server 14. The DB information 23 will be described later.

[0019] The on-premise data centre 3 includes a shared storage 15, a resource allocation control unit 24, and a private monitoring unit 25. Each of the shared storage 15, the resource allocation control unit 24, and the private monitoring unit 25 may be implemented by an independent computing device, or one or more of them may be implemented by the same computing device, or one configuration may be implemented by multiple computing devices. In addition, other programs (not shown) also run in the on-premise data centre 3, and share computing resources. In other words, computing resources are limited in the on-premise data centre 3.

[0020] The shared storage 15 includes a port 16, a CPU 17, and a drive 18. Strictly speaking, the shared storage 15 is realized using the port 16, the CPU 17, and the drive 18, which are resources of the on-premise data center 3. The shared storage 15 stores data used by the container 12 in calculations, provides data in response to a request from the container 12 in the public cloud 2, and stores the received data. The port 16 is a port for connecting to the connection line 4 and sending and receiving data. The CPU 17 is a CPU that processes data read / write commands received from the DB server 14. The drive 18 is a drive that accumulates data.

[0021] In other words, the shared storage 15 is not just a storage medium, but increases resources as necessary to achieve high-speed data reading and writing. However, as mentioned above, since other programs are also running, it is desirable for the shared storage 15 to use the minimum number of ports 16, CPUs 17, and drives 18 required.

[0022] The resource allocation control unit 24 controls the allocation amounts of the ports 16, the CPUs 17, and the drives 18 to the shared storage 15. The resource allocation control unit 24 manages storage information 180. The private monitoring unit 25 monitors the on-premise data center 3, specifically, manages operation information of the shared storage 15 and the connection line 4. The private monitoring unit 25 manages storage resource operation information 190.

[0023] Fig. 2 is a diagram showing information managed by the task management unit 21. The task management unit 21 manages task information 100, subtask information 110, task use resource information 120, container execution environment information 130, maximum parallelism information 140, and a low-cost executable table 150. These pieces of information will be described with reference to Figs. 3 to 7.

[0024] 3 is a diagram showing an example of task information 100. Information about a task is stored in the task information 100. The task information 100 is composed of a plurality of records, and each record includes a task ID 101, a start date and time 102, a completion date and time 103, a container image 104, an environment variable name 105, an environment variable value 106, a number of vCPUs 107, and a memory capacity 108.

[0025] A task ID 101 indicates an identifier for identifying a task. A start date and time 102 indicates the date and time when the task is to be started. A completion date and time 103 indicates the date and time when the task must be completed. A container image 104 indicates the registration destination, in other words, the storage location, of a container image for executing the task.

[0026] The environment variable name 105 indicates the name of an argument to be given to the container. The environment variable value 106 indicates a list of parameters for the subtask. In the example shown in FIG. 3, the environment variable values ​​106 are displayed separated by commas, and subtasks are created for the number of elements. The number of vCPUs 107 indicates the number of vCPUs to be allocated to the container. The memory capacity 108 indicates the memory capacity to be allocated to the container. The operator registers a task in the task management unit 21 by updating the task information 100.

[0027] 4 is a diagram showing an example of subtask information 110. Information about subtasks that make up a task is stored in subtask information 110. When an operator registers a task in task information 100, task management unit 21 updates subtask information 110 based on the information registered in task information 100. Subtask information 110 is made up of a plurality of records, and each record includes a task ID 111, a subtask ID 112, an environment variable name 113, an environment variable value 114, a status 115, and a container ID 116.

[0028] Task ID 111 is an identifier that identifies a task, and is the same type of information as task ID 101 in FIG. 3. Subtask ID 112 indicates the identifier of the subtask. Environment variable name 113 and environment variable value 114 indicate arguments to be passed to a container executed in the subtask. Status 115 indicates the status of the subtask. Container ID 116 is the identifier of the container used for execution when status 115 is "running". When the status of a subtask changes, task management unit 21 updates the status 115 of the corresponding subtask.

[0029] 5 is a diagram showing an example of task use resource information 120. Information on resources used by tasks is stored in the task use resource information 120. The task use resource information 120 is updated by an operator. The task use resource information 120 is made up of a plurality of records, and each record includes a task ID 121, a DB ID 122, a storage ID 123, and a storage resource ID 124.

[0030] Task ID 121 is an identifier for identifying a task, and is the same type of information as task ID 101 in Fig. 3. DB ID 122 indicates an identifier of a database used by a container executed in a task to store data. Storage ID 123 indicates an identifier of a storage that stores the database data. Storage resource ID 124 indicates an identifier of a storage resource used to store the database data. The resource ID is, for example, the ID of port 16, CPU 17, or drive 18.

[0031] 6 is a diagram showing an example of the container execution environment information 130. Information related to the environment in which a container is executed is stored in the container execution environment information 130. The container execution environment information 130 is made up of a plurality of records, and each record includes a container ID 131, a type 132, and a container execution environment name 133.

[0032] Container ID 131 indicates an identifier of the container execution environment, and is the same type of information as container ID 116 in Fig. 4. Type 132 indicates whether the container execution environment is the inexpensive execution unit 11 or the expensive execution unit 13. However, in Fig. 6, the inexpensive execution unit 11 is described as "inexpensive" and the expensive execution unit 13 is described as "expensive". Container execution environment name 133 indicates the name of the environment in which the container is executed.

[0033] FIG. 7 is a diagram showing an example of maximum parallelism information 140. The maximum parallelism information 140 stores information on the maximum parallelism, that is, the number of subtasks that can be executed simultaneously, for each task and for each time. The maximum parallelism information 140 is created by the task management unit 21. The maximum parallelism information 140 is composed of multiple records, and each record includes a task ID 141, a date and time 142, and a maximum parallelism 143. The task ID 141 is an identifier that identifies a task, and is the same type of information as the task ID 101 in FIG. 3. The first record in FIG. 7 indicates that for "task 0," a maximum of "3" subtasks can be executed simultaneously at "19:00 on December 25, 2020."

[0034] FIG. 8 is a diagram showing an example of the inexpensive execution table 150. The inexpensive execution table 150 is updated by the task management unit 21. The inexpensive execution table 150 stores conditions under which the inexpensive execution unit 11 can be used for each task and for each time. The inexpensive execution table 150 is composed of a plurality of records, and each record includes a task ID 151, an inexpensive remaining number 152, and a date and time 153. The task ID 151 is an identifier for identifying a task, and is the same type of information as the task ID 101 in FIG. 3. The inexpensive remaining number 152 is the number of subtasks that can use the inexpensive execution unit 11 after that time. In other words, if there are more uncompleted tasks than the number listed at that time, the expensive execution unit 13 will be used.

[0035] The first record in FIG. 8 indicates that "task 0" cannot use the inexpensive execution unit 11 after "December 26, 2020, 4:00". The second record in FIG. 8 indicates that the number of subtasks that can use the inexpensive execution unit 11 for "task 0" is "2" after "December 26, 2020, 2:00". In other words, combining the first to third records shown in FIG. 8 indicates that on "December 26, 2020", "4" subtasks can use the inexpensive execution unit 11 from 0:00 to 2:00, "2" subtasks can use the inexpensive execution unit 11 from 2:00 to 4:00, and after 4:00, the inexpensive execution unit 11 cannot be used and all subtasks use the expensive execution unit 13.

[0036] For example, if there are no subtasks being executed at "December 26, 2020, 3:00 AM" and "3" subtasks remain, they are processed as follows: "2" subtasks are executed by the inexpensive execution unit 11, and the remaining "1" subtask is executed by the expensive execution unit 13.

[0037] 9 is a diagram showing an example of DB information 155 managed by the scale control unit 22. The DB information 155 stores information about a database that operates on the DB server 14. The DB information 155 is made up of a plurality of records, and each record includes a DB ID 156, a connection destination 157, and a number of vCPUs 158. The DB ID 156 indicates an identifier of a database, and is the same type of information as the DB ID 122 in FIG. 5. The connection destination 157 indicates information about a connection destination for connecting to a database. The number of vCPUs 158 indicates the number of virtual CPUs used by the database.

[0038] FIG. 10 is a diagram showing an example of DB operation information 160 managed by the public monitoring unit 23. The DB operation information 160 stores information on the operation status of databases operating on the DB server 14. The public monitoring unit 23 adds a new record to the DB operation information 160, for example, every time a predetermined time elapses. The DB operation information 160 is composed of multiple records, and each record includes a DB ID 161, a date and time 162, and an average CPU usage rate 163. The first record in FIG. 10 shows that the average CPU usage rate of "DB0" at "12:00 on Dec. 25, 2020" was "30%."

[0039] FIG. 11 is a diagram showing an example of the connection line operation information 170 managed by the public monitoring unit 23. The connection line operation information 170 indicates the operation status of the connection line 4. For example, the public monitoring unit 23 adds a new record to the connection line operation information 170 every time a predetermined time elapses. The connection line operation information 170 is composed of a plurality of records, and each record includes a connection line ID 171, a date and time 172, a transmission amount 173, and a reception amount 174. The transmission amount 173 and the reception amount 174 may be a specific communication speed or a ratio to a maximum value. The first record in FIG. 11 shows that the communication on "Line 0" at "12:00 on December 25, 2020" had a transmission amount of "20%" and a reception amount of "10%".

[0040] 12 is a diagram showing an example of storage information 180 managed by the resource allocation control unit 24. The storage information 180 indicates information on the shared storage 15 that stores data held by a database operating on the DB server 14. The storage information 180 is made up of a plurality of records, and each record includes a storage ID 181 and a connection destination 182. The storage ID 181 is an identifier of the storage that stores the data of the database, and is the same type of information as the storage ID 123.

[0041] 13 is a diagram showing an example of storage resource operation information 190 managed by the resource allocation control unit 24. The storage resource operation information 190 indicates the time-series operation rate of the storage resource. The storage resource operation information 190 is made up of a plurality of records, and each record includes a storage ID 191, a resource ID 192, a date and time 193, and an operation rate 194. The storage ID 191 is an identifier of the storage that stores the data of the database, and is the same type of information as the storage ID 123. The resource ID 192 is an identifier of the storage resource, and is the same type of information as the storage resource ID 124. The operation rate 194 is information indicating the operation status of the resource, and indicates, for example, the ratio of the current load to the maximum load.

[0042] Figure 14 is a diagram explaining how a container execution service is determined. The operator defines the processing to be executed as a task. In a task, the container image to be executed is specified. A task is made up of one or more subtasks. As mentioned above, there is no dependency between subtasks, and they can be executed in any order. There is also no problem if the order in which the subtasks are executed differs from the order in which they are completed. Arguments to be passed to the container are defined in the subtask. The subtask is processed by executing the container with the arguments.

[0043] In graph 30, the horizontal axis represents the passage of time, and more specifically, time passes from left to right on graph 30. Also, the dashed dotted line 33 shown to the right of graph 30 indicates completion date and time 103, which is the time when the entire task should be completed. The vertical axis of graph 30 indicates the type of subtask, and more specifically, subtasks 1 to 8 are shown in order from top to bottom on graph 30. Also, the value of maximum parallelism 143 of maximum parallelism information 140 is shown at the bottom of graph 30. Subtask average execution time 34 indicates the average value of the past execution times of subtasks.

[0044] In FIG. 14, the bold stepped code 36 indicates the subtask completion deadline 36, and indicates the completion deadline for each subtask when subtasks 1 to 8 are completed in order. The subtask completion deadline 36 is calculated from the subtask average execution time 34 and the maximum parallelism 35. For example, since the remaining amount of the subtask needs to be zero at the time of code 33, only the same number of subtasks as the maximum parallelism in that time period, for example "2", are allowed at the time that goes back by the subtask average execution time 34 from the time of code 33. Then, at the time that goes back by another subtask average execution time 34 from that time, only the subtasks with the previous value, for example "2" plus the number of the maximum parallelism in that time period, for example "4", are allowed.

[0045] 14, the hatched area 38 indicating that low-cost usage is not possible indicates a time period during which the low-cost execution unit 11 cannot be used. The area indicated by the low-cost usage is not possible 38 is calculated using the subtask average execution time 34 and the subtask completion deadline 36. Specifically, the start time of the low-cost usage is not possible 38 is the time obtained by subtracting twice the subtask average execution time 34 from the subtask completion deadline 36.

[0046] 14, subtasks enclosed in thin boxes are inexpensive subtasks 39 executed using the inexpensive execution unit 11. Subtasks enclosed in thick boxes in Fig. 14 are expensive subtasks 39 executed using the expensive execution unit 13. If an inexpensive service is not available at the time of starting execution of each subtask, the task management unit 21 executes the container using the expensive execution unit 13, and otherwise uses the inexpensive execution unit 11.

[0047] 15 is a flowchart showing a task execution process by the task management section 21. When the current time matches any one of the start dates and times 102 in the task information 100, the task management section 21 starts the process shown in FIG.

[0048] In step S201, the task management unit 21 performs a test run of the subtasks. Specifically, the task management unit 21 first selects a predetermined number of subtasks from the subtasks registered in the started task based on the subtask information 110. Then, based on the container execution environment information 130, the task management unit 21 executes the subtasks with a predetermined degree of parallelism for services whose type 132 is "low cost."

[0049] In the next step S202, the task management unit 21 obtains the trial run results of the subtask executed in step S201. Specifically, the task management unit 21 waits for the subtask executed in step S201 to be completed, and obtains DB operation information 160 and connection line operation information 170 from the public monitoring unit 23. Furthermore, the task management unit 21 obtains storage resource operation information 190 from the private monitoring unit 25. The task management unit 21 records the average time required to execute the subtasks, compares the time before and after the execution of the subtasks, and records the amount of load per subtask on the DB server 14, the connection line 4, and the shared storage 15, respectively.

[0050] In the next step S203, the task management section 21 calculates a future average CPU utilization rate from the time-series average CPU utilization rate 163 acquired in step S202.

[0051] In the next step S204, the task management unit 21 adds the average CPU utilization rate per subtask calculated in step S202 to the future average CPU utilization rate calculated in step S203, and calculates the maximum number of subtasks that do not reach a predetermined threshold. The task management unit 21 similarly calculates the transmission amount 173, reception amount 174, and operation rate 194. The task management unit 21 records the minimum number of subtasks among the calculated average CPU utilization rate 163, transmission amount 173, reception amount 174, and operation rate 194 in the maximum parallelism information 140 as the maximum parallelism in time series.

[0052] In step S204, the task management unit 21 may take into consideration the impact on the connection line 4 of other programs running in the public cloud 2 or on-premise data center 3. For example, the task management unit 21 may refer to the operation status of the connection line 4 at the same time one day or one week ago recorded in the connection line operation information 170, and calculate the maximum parallelism assuming that the transmission amount 173, reception amount 174, etc. will change in the same way on the current day. The process in step S204 is also called a "concurrent execution number calculation step."

[0053] In step S205, the task management unit 21 updates the cheaply executable table 150 as follows, and then proceeds to step S206. First, the task management unit 21 records in the cheaply executable table 150 a time that is twice the subtask execution time measured in step S202 back from the completion date and time 103 (hereinafter also referred to as the "first time"), and the number of remaining subtasks "0".

[0054] Next, task management unit 21 records a time going back from that time by the subtask execution time (hereinafter also referred to as the "second time") and the maximum parallelism at the second time (hereinafter also referred to as the "second remaining number") in cheaply executable table 150. Furthermore, task management unit 21 records a time going back by the subtask execution time from the second time (hereinafter also referred to as the "third time") and the sum of the second remaining number and the maximum parallelism at the third time (hereinafter also referred to as the "third remaining number") in cheaply executable table 150. Task management unit 21 repeats this process until the number of remaining subtasks becomes the number of subtasks recorded in subtask information 110. The process of step S205 is also referred to as the "cheap remaining number calculation step".

[0055] In step S206, the task management unit 21 refers to the maximum parallelism information 140 to read the maximum parallelism at that time, and subtracts the number of subtasks being executed from that value. The task management unit 21 determines the result of this subtraction as the number of subtasks to be newly executed. Note that steps S206 to S211, and especially steps S208 to S210, are also referred to as "execution instruction steps."

[0056] In the next step S207, if the maximum degree of parallelism at the current time has changed compared to the previous task execution time, the task management unit 21 notifies the scale control unit 22 and the resource allocation control unit 24 of the difference in parallelism and the amount of change in load based on the amount of load per subtask calculated in step S202. The scale control unit 22 receives the notification and changes the number of vCPUs allocated to the DB server 14. The resource allocation control unit 24 receives the notification and changes the resources allocated to the shared storage 15.

[0057] In step S208, task management unit 21 determines whether the total number of subtasks whose status 115 in subtask information 110 is "in progress" and "not yet executed" is equal to or less than the cheap remaining quantity 152 at that time in cheaply executable table 150. If task management unit 21 judges step S208 to be positive, it proceeds to step S209, and if it judges to be negative, it proceeds to step S210.

[0058] In step S209, task management unit 21 executes all "unexecuted" subtasks in inexpensive execution unit 11 within the limit of the number of execution subtasks, and proceeds to step S211. In step S210, task management unit 21 executes subtasks in the number obtained by subtracting the number of "executing" tasks from the inexpensive remaining number 152 in inexpensive execution unit 11 within the limit of the number of execution subtasks, and executes the remaining subtasks in expensive execution unit 13.

[0059] A specific example of steps S206 and S208 to S210 will be described. First, the premise will be described. It is assumed that the maximum parallelism read from the maximum parallelism information 140 is "3", the number of subtasks being executed in the inexpensive execution unit 11 is "1", and the number of subtasks being executed in the expensive execution unit 13 is "0". In addition, it is assumed that the maximum parallelism at that time is "3", the inexpensive remaining number 152 at that time is "2", and the number of tasks whose status 115 in the subtask information 110 is "not executed" is "2".

[0060] In this case, the task management unit 21 performs the operations of steps S206 and S208 to S210 as follows. First, the task management unit 21 calculates the number of executed subtasks in S206 as "3" - "1" = "2". Next, the task management unit 21 makes a negative judgment in S208 because the sum of "2" for "not executed" and "1" for "executing" is greater than the "2" of the inexpensive remaining number 152, and proceeds to S210. Then, in S210, the task management unit 21 executes "1" subtask, which is the "2" of the inexpensive remaining number 152 minus the "1" being executed, in the inexpensive execution unit 11, and executes the remaining "1" subtask in the expensive execution unit 13. In this example, since the number of executed subtasks is "2", a total of two subtasks can be executed in S210. Returning to FIG. 15, the explanation will be continued.

[0061] In step S211, the task management unit 21 updates the subtask information 110 in the following three ways, and then proceeds to step S212. First, information on the subtask that has started execution in step S209 or step S210 is reflected. Specifically, the task management unit 21 changes the status 115 of the record of the corresponding subtask to "executing" and sets the container ID 116 to an identifier of a container execution environment that has newly started trial use. Second, information on a subtask that was already being executed but has now been completed is reflected. Specifically, the task management unit 21 changes the status 115 of the record of the corresponding subtask to "completed" and deletes the container ID 116. Third, information on a subtask that was being executed in the low-cost execution unit 11 but has been interrupted is reflected. Specifically, the task management unit 21 changes the status 115 of the record of the corresponding subtask to "not executed" and deletes the container ID 116.

[0062] In step S212, task management unit 21 determines whether status 115 of all records in subtask information 110 is "completed." If task management unit 21 determines that status 115 of all records is "completed," it ends the process shown in Fig. 15, but if there is even one record whose status 115 is not "completed," it returns to step S206.

[0063] According to the above-described first embodiment, the following advantageous effects can be obtained. (1) The computation method executed by the task management unit 21, which is a computer, uses a computation system to perform computations of a plurality of subtasks. The computation system includes an inexpensive execution unit 11, which is inexpensive to use but may be forcibly stopped, and an expensive execution unit 13, which is expensive to use but will not be forcibly stopped. The computation method executed by the task management unit 21 includes a concurrent execution number calculation step (step S204) for calculating the number of concurrent executions of subtasks at each time based on the resources used by each subtask and the resources available at each time, a cheap remaining number calculation step (step S205) for creating a cheap executable table 150 indicating the cheap remaining number, which is the number of tasks that may be executed by the cheap execution unit at each time, based on the completion date and time when the computations of the plurality of subtasks should be completed and the number of concurrent executions, and an execution instruction step (steps S206 to S211) for causing each of the subtasks to be executed by either the cheap execution unit or the expensive execution unit by referring to the cheap executable table. Therefore, the subtasks can be completed at low cost by the completion date and time, taking into account the forced stop.

[0064] (2) The execution instruction step (steps S206 to S211) instructs the inexpensive execution unit 11 to execute a new subtask so that the number of subtasks executed by the inexpensive execution unit 11 becomes the maximum number not exceeding the remaining inexpensive number within the limit of the number of simultaneous executions, and further causes the expensive execution unit 13 to execute the remaining number of subtasks for simultaneous execution. Therefore, if the execution of all subtasks cannot be completed by the completion date and time due to a forced stop, the expensive execution unit 13 can be used to complete the execution of all subtasks by the completion date and time.

[0065] (3) In the cheap remaining number calculation step (step S205), the first time "4:00", which is the time obtained by subtracting twice the execution time of the subtask from the end time, is associated with zero, as in the first record in FIG. 8. The cheap remaining number calculation step further associates "2:00" (second time), which is the time obtained by subtracting 2 hours, which is the execution time of the subtask, from the first time, with the second remaining number "2", which is the number of simultaneous executions at the second time. The cheap remaining number calculation step further associates "0:00" (third time), which is the time obtained by subtracting 2 hours, which is the execution time of the subtask, from the second time, with the third remaining number "4", which is the second remaining number "2" plus "2", which is the number of simultaneous executions at the third time. Therefore, the cheap executable table 150 can be created by simple calculation.

[0066] (4) The step of calculating the number of concurrent executions measures the load on resources caused by executing subtasks, and calculates the number of concurrent executions based on the remaining amount of resources at each time and the measured load. This makes it possible to calculate the number of concurrent executions at each time with high accuracy.

[0067] (5) The remaining amount of resources at each time is an estimate calculated from past statistics. Therefore, periodic load fluctuations can be taken into account when calculating the number of concurrent executions.

[0068] (6) Each of the subtasks is executed using information from the shared storage 15 connected via the communication path 4. The resources include the resources of the communication path 4 and the resources of the shared storage 15. The concurrent execution number calculation step calculates the concurrent execution number for each time based on past statistics regarding the load of the shared storage 15 and the load of the communication path 4. Therefore, it is possible to calculate the concurrent execution number that reflects the load of the shared storage 15 and the load of the communication path 4.

[0069] (7) Each of the subtasks reads information from the shared storage 15 via the database server 14. The resources include the resources of the database server 14. The concurrent execution number calculation step calculates the concurrent execution number for each time based on past statistics regarding the load on the database server 14. Therefore, it is possible to calculate the concurrent execution number that also reflects the load on the database server 14.

[0070] (Variation 1) In the above-described embodiment, it is assumed that the DB server 14, the connection line 4, and the shared storage 15 are shared not only by the operator but also by other users, and therefore the load varies depending on the time and day. However, it may be assumed that the load of the DB server 14, the connection line 4, and the shared storage 15 by other users does not vary. That is, it may include a case where there are no other users, or a case where there are other users but the resources of the DB server 14, the connection line 4, and the shared storage 15 available to the operator are always limited to a certain value. In this case, the future load prediction shown in step S203 in FIG. 15 and the maximum parallel degree calculation in step S204 are reduced.

[0071] (Variation 2) In the above-described embodiment, the load on the DB server 14 is taken into consideration in the calculation of the maximum degree of parallelism shown in step S204 of Fig. 15. However, the load on the DB server 14 does not have to be taken into consideration in the calculation of the maximum degree of parallelism. For example, when the DB server 14 has sufficient resources, the calculation of the maximum degree of parallelism can be simplified by not taking the load on the DB server 14 into consideration in the calculation of the maximum degree of parallelism.

[0072] (Variation 3) In the above-described embodiment, the task management unit 21 is disposed in the public cloud 2. However, the task management unit 21 may be disposed anywhere as long as it is capable of communicating with the public cloud 2 and the on-premise data center 3. For example, the task management unit 21 may be placed in the on-premise data center 3, or may be disposed in a location other than the public cloud 2 and the on-premise data center 3. The task management unit 21 may also be realized by a plurality of hardware devices, and the plurality of hardware devices may exist in different locations. For example, the task management unit 21 may be realized using resources of the public cloud 2 and the on-premise data center 3.

[0073] In each of the above-mentioned embodiments and modifications, the configuration of the functional blocks is merely an example. Some functional configurations shown as separate functional blocks may be integrated, or a configuration shown in one functional block diagram may be divided into two or more functions. In addition, some of the functions of each functional block may be provided by other functional blocks.

[0074] The above-mentioned embodiments and modifications may be combined with each other. Although various embodiments and modifications have been described above, the present invention is not limited to these. Other aspects that are conceivable within the scope of the technical idea of ​​the present invention are also included in the scope of the present invention. [Explanation of symbols]

[0075] 2. Public cloud 3. On-premise data centres 11…Low-cost Execution Department 12…Container 13…Expensive Execution Department 14...DB server 15…Shared storage 21…Task Management Department

Claims

1. A computing method for performing computations of a plurality of subtasks using a computing system including a cheap execution unit that is cheap to use but may be forcibly stopped, and an expensive execution unit that is expensive to use but will not be forcibly stopped, the method comprising: a concurrent execution number calculation step of calculating the number of concurrent executions of the subtasks at each time based on resources used by each of the subtasks and available resources at each time; a cheap remaining number calculation step of creating a cheap execution possible table indicating a cheap remaining number, which is the number of tasks that may be executed by the cheap execution unit at each time, based on the completion date and time when the computation of the plurality of subtasks should be completed and the number of simultaneous executions; and an execution instruction step of causing each of the subtasks to be executed by either the inexpensive execution unit or the expensive execution unit by referring to the inexpensive execution table.

2. 2. The method according to claim 1, The execution instruction step instructs the inexpensive execution unit to execute a new subtask so that the number of subtasks to be executed in the inexpensive execution unit becomes the maximum number that does not exceed the remaining inexpensive number, within the limit of the number of simultaneous executions, and further causes the remaining number of subtasks to be executed in the expensive execution unit.

3. 2. The method according to claim 1, the low-cost remaining quantity calculation step associates a first time, which is a time obtained by subtracting twice the execution time of the subtask from the completion date and time, with zero in the low-cost executable table to be created; the low-cost remaining number calculation step further associates a second time, which is a time obtained by subtracting an execution time of the subtask from the first time, with a second remaining number, which is the number of concurrent executions at the second time; the low-cost remaining number calculation step further associates a third time, which is the second time minus the execution time of the subtask, with a third remaining number, which is the second remaining number plus the number of simultaneous executions at the third time.

4. 2. The method according to claim 1, The calculation step of the concurrent execution number includes measuring a load on a resource caused by executing the subtask, and calculating the concurrent execution number based on a remaining amount of the resource at each time and the measured load.

5. 5. The method according to claim 4, A calculation method, wherein the remaining amount of the resource at each time is a constant value or an estimated amount calculated from past statistics.

6. 5. The method according to claim 4, Each of the subtasks is executed using information from a storage device connected via a communication path; the resources include resources for the communication paths and resources for the storage; The calculation step calculates the number of concurrent executions for each time based on past statistics relating to a load on the storage device and a load on the communication path.

7. 7. The method according to claim 6, Each of the subtasks reads information from the storage via a database server; the resources further include resources of the database server; The calculation step further calculates the number of concurrent executions for each time based on past statistics regarding the load of the database server.

8. An operation instruction system for performing operations of a plurality of subtasks using an operation system having a cheap execution unit which is cheap to use but may be forcibly stopped, and an expensive execution unit which is expensive to use but will not be forcibly stopped, a concurrent execution number calculation unit that calculates the number of concurrent executions of the subtasks at each time based on resources used by each of the subtasks and available resources at each time; a cheap remaining number calculation unit that creates a cheap execution possible table that indicates a cheap remaining number, which is the number of tasks that may be executed by the cheap execution unit at each time, based on the completion date and time when the computation of the plurality of subtasks should be completed and the number of simultaneous executions; an execution instruction unit that refers to the inexpensive execution table and causes each of the subtasks to be executed by either the inexpensive execution unit or the expensive execution unit.

Citation Information

Patent Citations

  • Distributed system and method for preparing automatic operation schedule for the system

    JP1995334466A

  • Device and method for controlling automatic start of job, and medium for providing control program

    JP2002049495A

  • cost minimizing task scheduler

    JP2016507121A