Task Failover

The task failover method in cloud computing environments identifies and manages recoverable tasks to optimize resource utilization and reduce waste in Spot Instances, enhancing efficiency and response times.

JP2024539866APending Publication Date: 2024-10-31INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024522054
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-29
Filing Date
2022-10-28
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Cloud service providers face inefficiencies with unused computing resources, leading to wasted capacity and suboptimal utilization of Spot Instances due to their instability, which are not suitable for mission-critical workloads.

Method used

A method for task failover that identifies recoverable tasks in unstable environments, storing their data and notifying associated tasks to wait, allowing for efficient resource management and minimizing computational waste.

Benefits of technology

Optimizes failover strategies to save computational resources, improve efficiency, and reduce response times in unstable environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024539866000001_ABST
    Figure 2024539866000001_ABST
Patent Text Reader

Abstract

The present invention relates to a method, system, and computer program product for task failover in an unstable environment including multiple retrievable nodes. According to the method, it is monitored whether any of the multiple retrievable nodes are retrievable. It is determined whether a task on any of the multiple retrievable nodes is recoverable. In response to the task being recoverable, data of the recoverable task is stored. In response to the node being retrievable and the task on the retrievable node being recoverable, at least one associated task of at least one associated node of the retrievable node is notified to wait.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to task processing, and more particularly to a method, system, or computer program product for task failover. [Background technology]

[0002] Cloud service providers invest in hardware resources and release these resources (often on an hourly basis) to their subscribers. However, one of the problems with this model is that at any given time, there is a high probability that there are computing resources that are not being utilized. These resources represent hardware capacity that the cloud service provider paid for but that is lying idle. Rather than letting these computing resources go to waste, cloud service providers offer them at a heavily discounted rate, with the understanding that if someone needs these resources to run regular instances, those instances will be prioritized over spot instances that are using these hardware resources at a discounted rate. Spot instances are widely used today. Computing resources are provided when they are available and are reclaimed when other subscribers request them. The price is much lower than the regular instance price. Subscribers can save costs by running interruptible applications on such resources. Therefore, spot instances are not typically used to run mission-critical workloads. Summary of the Invention

[0003] According to one aspect of the present invention, there is provided a method, computer program product, or system, or combination thereof, performing the following operations (not necessarily in the following order) for task failover in an unstable environment including a plurality of recoverable nodes, the method including: monitoring whether any of the plurality of recoverable nodes is recovered, determining whether a task on any of the plurality of recoverable nodes is recoverable, storing data of the recoverable task in response to the task being recoverable, and in response to the node being recovered and the task on the recovered node being recoverable, notifying at least one associated task of at least one associated node of the recovered node to wait.

[0004] Advantageously, by identifying recoverable tasks, the present subject matter can provide optimal failover strategies in unstable environments, which may conserve computing resources, improve computing efficiency, reduce response times, or improve user experience.

[0005] This summary is not intended to identify key or essential features of embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the invention will be readily apparent from the following description. [Brief description of the drawings]

[0006] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of several embodiments of the present invention in the accompanying drawings, in which the same reference numerals generally refer to the same components in the embodiments of the present invention.

[0007] [Figure 1] FIG. 2 illustrates a cloud computing node according to an embodiment of the present invention. [Diagram 2] FIG. 1 illustrates a cloud computing environment in accordance with an embodiment of the present invention. [Diagram 3] FIG. 2 illustrates abstraction model layers according to one embodiment of the present invention. [Figure 4] 4 is a flowchart of a task failover according to one embodiment of the present invention. [Diagram 5] 4 is a flowchart of task failover for recoverable tasks according to a more detailed embodiment of the present invention. [Figure 6] 4 is a flowchart of a task failover for a recoverable task according to another more detailed embodiment of the present invention. [Figure 7] 4 is a flowchart of task failover for an unrecoverable task according to a more detailed embodiment of the present invention. [Figure 8] FIG. 2 illustrates an example of an unstable environment in which intermediate nodes are withdrawn. [Figure 9] FIG. 2 illustrates an example of task failover in an unstable environment according to a more detailed embodiment of the present invention. [Figure 10] FIG. 2 illustrates an example of task failover in an unstable environment according to another more detailed embodiment of the present invention. [Figure 11] FIG. 2 illustrates an example of task failover in an unstable environment according to a further detailed embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Some embodiments will be described in more detail with reference to the attached drawings illustrating the embodiments of the present invention. However, the present invention can be implemented in various aspects and should not be construed as being limited to the embodiments disclosed herein. In addition, each example given in relation to various embodiments is intended to be illustrative and not limiting of the present invention. Furthermore, the drawings are not necessarily to scale, and some features may be exaggerated to show details of specific components. Therefore, specific structural and functional details disclosed herein should not be construed as limiting, but merely as a representative basis for teaching those skilled in the art to variously employ the methods and structures of the present invention.

[0009] Although this disclosure includes detailed descriptions of cloud computing, it should be understood that implementation of the teachings described herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be practiced in conjunction with any other type of computing environment now known or later developed.

[0010] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort or interaction with a service provider. The cloud model includes at least five characteristics, at least three service models, and at least four deployment models.

[0011] The characteristics are as follows:

[0012] On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time or network storage, automatically as needed, without the need for human interaction with the service provider.

[0013] Broad network access: Computing power is available over the network and can be accessed through standard mechanisms, facilitating use by heterogeneous thin- and thick-client platforms (e.g., cell phones, laptops, PDAs).

[0014] Resource Pooling: Computing resources from a provider are pooled and offered to multiple consumers using a multi-tenant model. Different physical and virtual resources are dynamically allocated and reallocated depending on demand. Consumers generally have no control or knowledge of the exact location of the resources provided to them, so there is a sense of location independence, although consumers may be able to determine location at a higher level of abstraction (e.g. country, state, data center).

[0015] Rapid elasticity: Computing capacity can be provisioned quickly and elastically, in some cases automatically, to scale out immediately and to be released quickly to scale in immediately. To the consumer, the computing capacity available for provisioning often appears unlimited and can be purchased at any time and in any quantity.

[0016] Service metering: Cloud systems leverage metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, active user accounts) to automatically control and optimize resource usage. Resource usage can be monitored, controlled, and reported to provide transparency to both providers and consumers of the services utilized.

[0017] The service model is as follows:

[0018] Software as a Service (SaaS): The functionality offered to the consumer is the availability of a provider's applications running on a cloud infrastructure that can be accessed from a variety of client devices through a thin-client interface such as a web browser (e.g., webmail). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or even the individual application functions, except for limited user-specific application configuration settings.

[0019] Platform as a Service (PaaS): The capability offered to the consumer is to deploy applications that the consumer creates or acquires using programming languages ​​and tools supported by the provider onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the configuration of the hosting environment.

[0020] Infrastructure as a Service (IaaS): The facility offered to the consumer is the provision of processors, storage, networking, and other basic computing resources on which the consumer can deploy and run any software, including operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but has control over the operating systems, storage, and deployed applications, and in some cases has partial control over some network components (e.g., the host firewall).

[0021] The deployment model is as follows:

[0022] Private Cloud: The cloud infrastructure is dedicated to a specific organization. It can be managed by that organization or a third party and can exist on-premise or off-premise.

[0023] Community Cloud: The cloud infrastructure is shared by multiple organizations to support a specific community with common concerns (e.g., mission, security requirements, policies, and compliance). The cloud infrastructure can be managed by the organizations or a third party and can exist on-premise or off-premise.

[0024] Public cloud: The cloud infrastructure is available to the general public or large industry organizations and is owned by an organization that sells cloud services.

[0025] Hybrid Cloud: This cloud infrastructure combines two or more cloud models (private, community or public), each of which retains its inherent semantics but is bound together by standards or specific technologies that enable data and application portability (e.g. cloud bursting for load balancing between clouds).

[0026] A cloud computing environment is a service-oriented environment with an emphasis on statelessness, low coupling, modularity and semantic interoperability. At the core of cloud computing is an infrastructure that includes a network of interconnected nodes.

[0027] 1, a schematic diagram of an example cloud computing node is shown. It should be noted that cloud computing node 10 is merely one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. In any case, cloud computing node 10 is capable of implementing and / or performing any of the functionality described herein.

[0028] Within the cloud computing node 10 resides a computer system / server 12 or a portable electronic device such as a communications device, which is operable with many other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, or configurations, or combinations thereof, suitable for use with the computer system / server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable appliances, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of these systems or devices.

[0029] The computer system / server 12 may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular data types. The computer system / server 12 may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be stored in both local and remote computer system storage media, including memory storage devices.

[0030] 1, computer system / server 12 in cloud computing node 10 is depicted as a general-purpose computing device. Components of computer system / server 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 connecting various system components including system memory 28 to processor 16.

[0031] Bus 18 represents any one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), and a processor or local bus using any of a variety of bus architectures. By way of non-limiting example, such architectures include an Industry Standard Architecture (ISA) bus, a MicroChannel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0032] Computer system / server 12 typically includes a variety of computer system readable media. Such media can be any available media accessible by computer system / server 12 and includes both volatile and nonvolatile media, removable and non-removable media.

[0033] The system memory 28 may include a computer system readable medium as a volatile memory (such as RAM 30 and / or cache memory 32). The computer system / server 12 may further include other removable / non-removable volatile / non-volatile computer system readable media. As an example only, the storage system 34 may be provided for reading and writing to a non-removable non-volatile magnetic medium (not shown, commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical media) may be provided. In these examples, each may be connected to the bus 18 by one or more data media interfaces. As further shown and described below, the memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.

[0034] As one non-limiting example, a program / utility 40 having a set (at least one) of program modules 42 can be stored in memory 28, as can an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, can include an implementation of a network environment. The program modules 42 generally implement the functions and / or methods of embodiments of the present invention described herein.

[0035] The computer system / server 12 may also communicate with one or more external devices 14, such as a keyboard, a pointing device, a display 24, one or more devices that allow a user to interact with the computer system / server 12, or any device (e.g., a network card, a modem, etc.) that allows the computer system / server 12 to communicate with one or more other computing devices, or a combination thereof. Such communication may occur via an input / output (I / O) interface 22. The computer system / server 12 may also communicate with one or more networks (e.g., a local area network (LAN), a general-purpose wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof) via a network adapter 20. As shown, the network adapter 20 communicates with other components of the computer system / server 12 via a bus 18. It should be noted that other hardware and / or software components (not shown) may be used with the computer system / server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data archive storage systems, and the like.

[0036] An exemplary cloud computing environment 50 is shown in FIG. 2. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10, to which local computing devices used by cloud consumers (e.g., PDA or cell phone 54A, desktop computer 54B, laptop computer 54C, or automobile computer system 54N, or combinations thereof, etc.) can communicate. The nodes 10 can communicate with each other. The nodes 10 can be physically or virtually grouped (not shown) in one or more networks, such as, for example, a private, community, public, or hybrid cloud, or combinations thereof, as described above. This allows the cloud computing environment 50 to provide infrastructure, platform, or software, or combinations thereof, as a service, for which the cloud consumer does not need to maintain resources on the local computing device. It should be understood that the types of computing devices 54A-N shown in FIG. 2 are merely exemplary, and that the computing nodes 10 and the cloud computing environment 50 can communicate with any type of electronic device over any type of network or network addressable connection (e.g., using a web browser), or both.

[0037] A set of functional abstraction layers provided by the cloud computing environment 50 (FIG. 2) is now illustrated in FIG. 3. It should be understood in advance that the components, layers, and functions illustrated in FIG. 3 are merely exemplary, and embodiments of the present invention are not limited thereto. As illustrated, the following layers and corresponding functions are provided:

[0038] Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframe 61, reduced instruction set computer (RISC) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and network components 66. In some embodiments, software components include network application server software 67 and database software 68.

[0039] The virtualization layer 70 provides an abstraction layer from which virtual entities such as, for example, virtual servers 71, virtual storage 72, virtual networks including virtual private networks 73, virtual applications and operating systems 74, and virtual clients 75 can be provided.

[0040] By way of example, the management layer 80 may provide the following functions: Resource provisioning 81 allows dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 allows cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the consumption of these resources. By way of example, these resources may include application software licenses. Security allows for identification and verification of cloud consumers and tasks as well as protection for data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 allows for allocation and management of cloud computing resources such that requested service levels are met. Service level agreement (SLA) planning and fulfillment 85 allows for pre-arranging and procurement of cloud computing resources anticipated to be needed in the future according to SLAs.

[0041] The workload layer 90 provides examples of functionality that can utilize a cloud computing environment. Examples of workloads and functionality that can be provided from this layer include mapping and navigation 91, software development and lifecycle management 92, virtual classroom instruction delivery 93, data analytics processing 94, transaction processing 95, and task failover 96.

[0042] Spot instances have been widely used recently. With spot instances, computing resources provided by computing nodes (hereinafter referred to as nodes) can be provided when they are available, but in return for low-price service, the resources are reclaimed when there is a high-priority request from other subscribers. The drawback is that the nodes of spot instances can be reclaimed at any time. This means that the data (computation results) executed on each node can be abandoned at any time, so the nodes of spot instances are unstable and computational resources are wasted.

[0043] Parent-child workloads are commonly used in data analysis and forecasting. In this scheme, a single computation is split into multiple parallel tasks to obtain a result. A parent task running on a parent node may be split into multiple intermediate tasks to run on intermediate nodes, and each intermediate task may be further split into multiple child tasks to run on multiple child nodes. A higher-level task may depend on the computation results of a lower-level task. That is, an intermediate node can complete its task only after all its child nodes have completed their tasks, and a parent node completes its task only after all its intermediate nodes have completed their tasks. This is known as a parent-child workload pattern. For example, if a bank uses this workload pattern to analyze data and calculate the total loan amount for the entire country (parent task), an intermediate task is created to calculate the total loan amount for each state, and a child task is created to calculate the loan amount for each city. This is how a task tree grows.

[0044] Parent-child workload distribution can also be employed with Spot Instances. When a node running a parent task is reclaimed, task execution is stopped on all its child nodes, and the computational resources spent on the task on the reclaimed node and all its child nodes are wasted. The workload scheduler reassigns the task and its associated child tasks to other nodes and repeats the previous computation. Of course, if any of these other nodes are reclaimed, the task reassignment must be done again. Thus, the subscriber may have to wait longer to get the results he needs, potentially reducing predictability.

[0045] To address at least one of the problems discussed above, at least one aspect of the present invention provides an optimal task failover methodology.

[0046] FIG. 4 is a flowchart of a task failover according to an embodiment of the present invention. As shown in FIG. 4, process 400 includes an example of a process of task failover in an unstable environment, where the unstable environment includes multiple reclaimable nodes. Process 400 begins in step 401, where a processing unit monitors whether any of the multiple reclaimable nodes is reclaimed. In an unstable environment such as a spot instance, a node may be reclaimed to perform other tasks, which may result in the existing tasks (including computation results) running on the reclaimed node and all associated tasks running on all its child nodes being abandoned, which may result in a significant waste of computation resources and delayed response.

[0047] FIG. 8 illustrates an example of an unstable environment 800 in which an intermediate node (Intermediate 1) is retired. Specifically, a task scheduler 801 can assign a task to a parent node (Parent 1 and / or Parent 2). The parent node (Parent 1 and / or Parent 2) can further distribute tasks to their corresponding child nodes (Intermediate 1, Intermediate 2, Intermediate 3, and Intermediate 4). In addition, Intermediate 1, Intermediate 2, Intermediate 3, and Intermediate 4 can further distribute their tasks to their respective child nodes (Child 1, Child 2, Child 3, Child 4, Child 5, and Child 6). Note that for simplicity, only three layers of nodes are shown, and only a few nodes are shown in each layer. As can be understood by those skilled in the art, in various embodiments, more or fewer nodes can be implemented in more or fewer layers according to actual business needs. The "x" symbol indicates that Intermediate 1 is retired to execute other tasks. Therefore, the associated tasks running on its child nodes, namely Child1 and Child2, may also be terminated and all the corresponding data stored in Child1 and Child2 may also be discarded.

[0048] Returning to Figure 4, the processing unit may determine whether a task on any of the multiple recoverable nodes is recoverable at step 403. If a task is determined to be recoverable, the associated node may not simply be recovered by simply abandoning all associated data (i.e., computation results).

[0049] Therefore, if a task is of considerable importance, or if the corresponding computation result will be directly abandoned and will cause great waste, or if the corresponding computation result will be directly abandoned and will seriously impair the user experience, the task may be defined as a recoverable task. In an embodiment of the present invention, the determination is based on at least one factor among the following, which are related to the task on the recovered node: task execution time, task execution ratio, size of task execution result, number of child nodes, and number of task re-executions. Specifically, if the execution time of a task is longer than a threshold A (e.g., 1 hour), the task may be defined as a recoverable task; if the execution ratio of a task is higher than a threshold B (e.g., 90%), the task may be defined as a recoverable task; if the size of the task execution result is sufficiently large, such as larger than a threshold C, the task may be defined as a recoverable task. Alternatively, if the number of child nodes is large, such as the number of child nodes is larger than a threshold D, the task may be defined as a recoverable task because a large impact will be generated if the execution of related tasks in all child nodes is stopped at the same time. Alternatively, if a task has been retried many times due to node retrieval (e.g., the number of retry attempts for the task is greater than a threshold E), the task may be defined as a recoverable task because further delays may lead to an unpleasant user experience. It should be understood by those skilled in the art that the above criteria for determining a recoverable task are provided for reference only, and do not limit the scope of the present invention.

[0050] If the task is recoverable, the processing unit may store the data of the recoverable task, for example in a remote storage, in step 405. Note that the term "remote storage" refers to storage accessed over a network and may provide the option of storing the data in a persistent remote storage device. Storing the data of the recoverable task, i.e. the computation results (including intermediate results), may avoid repeated computations and unnecessary consumption of computational resources.

[0051] In an embodiment of the present invention, steps 403 and 405 can be performed in parallel with step 401. In other words, steps 403 and 405 can be performed independently of step 401, so that the data of the recoverable tasks can be stored periodically or on demand. Thus, when a node is reclaimed, there is no need to spend additional time to store the data of the recoverable tasks. In other words, a reclaimable node can be reclaimed at any time without incurring additional delays associated with storing the data.

[0052] When a node is collected and a task on the collected node is recoverable, the processing unit may notify at least one associated task of at least one associated node of the collected node to wait in step 407. In an embodiment of the present invention, the associated node of the collected node is selected from at least one of the parent node of the collected node and the child node of the collected node. For example, when the collected node has both a parent node and a child node, the associated tasks running on both the parent node and the child node may be notified to wait. Alternatively, when the collected node does not have a parent node (e.g., when the collected node is itself a root node), only the associated tasks running on the child node may be notified. On the other hand, when the collected node does not have a child node, only the associated tasks running on the parent node may be notified.

[0053] FIG. 5 is a flow chart of a task failover process 500 for a recoverable task according to a more detailed embodiment of the present invention. In this embodiment, a recovered node can be replaced with a stable node. A stable node is a node that will not be recovered again and interrupt task execution again. In step 501, the processing unit can monitor whether any node of the multiple recoverable nodes is recovered. In step 503, the processing unit can determine whether a task on any node of the multiple recoverable nodes is recoverable. If the task is recoverable, the processing unit can store data of the recoverable task in step 505. Furthermore, step 505 can further include storing data of the recoverable task in the stable node. In an embodiment of the present invention, step 503 and step 505 can be performed in parallel with step 501. If a node is recovered and a task on the recovered node is recoverable, the processing unit can notify at least one associated task of at least one associated node of the recovered node to wait in step 507. Steps 501, 503, 505, and 507 of process 500 are the same or similar to steps 401, 403, 405, and 407 of FIG. 4, respectively, and therefore, for brevity, the details of these steps will not be repeated below.

[0054] At step 509, the processing unit may connect at least one associated node of the recovered node to the stable node, such that the stable node may take over recoverable tasks previously performed on the recovered node and continue communication with the recovered node's previous parent node and previous child nodes.

[0055] FIG. 9 illustrates an example of task failover in an unstable environment 900 according to a more detailed embodiment of the present invention. The unstable environment may include stable nodes. Similar to FIG. 8, an intermediate node (Intermediate 1) is a node to be salvaged, and at least one task running in Intermediate 1 is a recoverable task. Thus, the stable node takes over the task execution of the recoverable task previously running in Intermediate 1, the parent node (Parent 1) becomes the new parent node of the stable node, and the child nodes (Child 1 and Child 2) become the new child nodes of the stable node. Since all data related to the recoverable tasks in Intermediate 1 are migrated to the stable node, all past calculation results related to the recoverable tasks can be saved without waste, and further task execution in the stable node can be ensured. Furthermore, the stable node can continue the task execution of the recoverable tasks according to the completion of the task migration, and the stable node will not be further salvaged, thereby reducing the delay of task execution. Note that since the data migration is performed at the task level, data related to unrecoverable tasks does not need to be migrated to the stable node.

[0056] In another embodiment, the reclaimed node may be replaced with an unstable node, i.e., a reclaimable node. Step 405 of FIG. 4 for storing data of the recoverable task may further include storing data of the recoverable task in an unstable node, and process 400 may further include connecting at least one associated node of the reclaimed node to the unstable node. In this embodiment, except that the stable node in the embodiment of FIG. 5 is replaced with an unstable node, all other steps are the same or very similar to those described with reference to FIG. 5, so all other details are not repeated for brevity.

[0057] FIG. 10 illustrates an example of task failover in an unstable environment 1000 according to another more detailed embodiment of the present invention. Similar to FIG. 8, the intermediate node (Intermediate 1) is a node to be recovered, and at least one task executed on Intermediate 1 is a recoverable task. Thus, the unstable node takes over the task execution of the recoverable task previously executed on Intermediate 1, the parent node (Parent 1) becomes the new parent node of the unstable node, and the child nodes (Child 1 and Child 2) become the new child nodes of the unstable node. Since all data related to the recoverable tasks of Intermediate 1 are migrated to the unstable node, all past calculation results related to the recoverable tasks can be saved without waste. Then, according to the completion of the data migration, the recoverable tasks on the unstable node and the corresponding task execution of Parent 1, Child 1, and Child 2 can be continued.

[0058] FIG. 6 is a flow chart of a task failover process 600 for a recoverable task according to another more detailed embodiment of the present invention. In this embodiment, a recovered node may not be replaced by another node, and the associated tasks running on the associated node of the recovered node wait until the recovered node is returned. In step 601, the processing unit may monitor whether any node of the multiple recoverable nodes is recovered. In step 603, the processing unit may determine whether a task on any node of the multiple recoverable nodes is recoverable. If the task is recoverable, the processing unit may remotely store data of the recoverable task in step 605. In an embodiment of the present invention, steps 603 and 605 may be performed in parallel with step 601. If a node is recovered and a task on the recovered node is recoverable, the processing unit may notify at least one associated task of at least one associated node of the recovered node to wait in step 607. Steps 601, 603, 605, and 607 of process 600 are the same as or similar to steps 401, 403, 405, and 407, respectively, of FIG. 4, so the details of these steps will not be repeated below.

[0059] In response to returning the recovered node, the processing unit may reload the stored data of the recoverable task to the recovered node in step 609. This allows the execution of the recoverable task on the recovered node to continue from its original location. In step 611, the processing unit may further reconnect the recovered node to at least one associated node that was previously disconnected from the recovered node. In step 613, the processing unit may continue the execution of the recoverable task on the recovered node and the associated task that was running on the at least one associated node. In this embodiment, the data related to the recoverable task is not discarded, thus saving computational resources.

[0060] Figure 11 illustrates an example of task failover in an unstable environment 1100 according to a further detailed embodiment of the present invention. Similar to Figure 8, an intermediate node (Intermediate 1) is a node to be salvaged, and at least one task running in Intermediate 1 is a recoverable task. When Intermediate 1 is salvaged for other tasks, task execution of all parent nodes (Parent 1) and child nodes (Child 1, Child 2) related to the recoverable tasks is suspended until Intermediate 1 is returned. Of course, data related to the recoverable tasks in the salvaged node is temporarily stored (such as in remote storage) and reloaded to the salvaged node when it is returned.

[0061] Returning to FIG. 6, in a further embodiment of the present invention, the execution of the corresponding task running on the short running child node of the collected node may be terminated. This may free up the computational resources of the short running child node for the execution of other tasks. Specifically, step 607 may further include notifying the associated tasks of the parent node and the long running child node of the collected node to wait. And the process 600 may further include the steps of terminating the execution of the corresponding task on the short running child node of the collected node and determining a backup node of the short running child node. These additional steps may be performed between step 607 and step 611. And step 611 may further include reconnecting the collected node with at least one of the parent node, the long running child node, and the backup node of the short running child node. It should be noted that the criteria for determining the short running child node and the long running child node may be determined based on actual technical / business needs.

[0062] FIG. 7 is a flowchart of a task failover process 700 for an unrecoverable task according to a more detailed embodiment of the present invention. In step 701, the processing unit may monitor whether any of the multiple recoverable nodes is recovered. In step 703, the processing unit may determine whether a task on any of the multiple recoverable nodes is recoverable. In an embodiment of the present invention, step 703 may be performed in parallel with step 701. Steps 701 and 703 in the process 700 are identical or similar to steps 401 and 403 in FIG. 4, respectively, so the details of these steps are not repeated below. If a node is recovered and a task is unrecoverable, the processing unit in step 705 terminates the corresponding execution of the unrecoverable task on the recovered node and the execution of tasks related to the unrecoverable task on child nodes of the recovered node without storing the data of the corresponding tasks. This data may include data of the unrecoverable task on the recovered node and data about the related tasks of the unrecoverable task running on its child nodes.

[0063] It should be noted that the method / system / computer program product for task failover according to the embodiment of the present invention can be implemented by the computer system / server 12 of Fig. 1. Advantageously, the embodiment of the present invention can provide an optimal failover solution in an unstable environment by identifying recoverable tasks, which can save computing resources, improve computing efficiency, reduce response time, or improve user experience.

[0064] The present invention may be a system, method or computer program product, or combination thereof, integrated at any possible level of technical detail. The computer program product may include a computer readable storage medium having stored thereon computer readable program instructions for causing a processor to carry out aspects of the present invention.

[0065] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may be, for example, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or a suitable combination thereof. More specific examples of computer-readable storage media include portable computer diskettes, hard disks, RAM, ROM, erasable programmable ROM (EPROM or flash memory), static random access memory (SRAM), CD-ROM, DVD, memory stick, floppy disk, punch cards or mechanically encoded devices with instructions recorded on ridges in grooves, and the like, and suitable combinations thereof. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a wave guide or other transmission medium (e.g., a light pulse passing through a fiber optic cable), or an electric signal transmitted through a wire.

[0066] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing device / processing device. Alternatively, they can be downloaded to an external computer or external storage device via a network (e.g., the Internet, a LAN, a WAN, or a wireless network, or a combination thereof). The network can include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing device / processing device receives the computer-readable program instructions from the network and transfers the computer-readable program instructions to a computer-readable storage medium in the respective computing device / processing device for storage.

[0067] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages ​​such as Smalltalk and C++, and procedural programming languages ​​such as the "C" programming language and similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, or partially on the user's computer, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a LAN or WAN, or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry, including, for example, programmable logic circuitry, field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), can execute computer readable program instructions by utilizing state information of the computer readable program instructions to customize the electronic circuitry for carrying out aspects of the present invention.

[0068] Aspects of the present invention are described herein with reference to flowchart and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. Each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer readable program instructions.

[0069] These computer readable program instructions can be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, whereby the instructions executed via the processor of such computer or other programmable data processing apparatus create means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions can further be stored on a computer readable storage medium capable of instructing a computer, programmable data processing apparatus or other device, or combination thereof, to function in a particular manner. The computer readable storage medium having instructions stored thereon thereby constitutes an article of manufacture including instructions for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0070] Also, computer-readable program instructions may be loaded into a computer, other programmable apparatus, or other device and a sequence of operational steps executed on the computer, other programmable apparatus, or other device to generate a computer-implemented process, whereby the instructions executing on the computer, other programmable apparatus, or other device perform the functions / operations identified in one or more blocks in the flowcharts and / or block diagrams.

[0071] The flowcharts and block diagrams in the drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for performing a specific logical function. In some other implementations, the functions shown in the blocks may be performed in a different order than the order shown in the figures. For example, depending on the functions involved, two blocks shown in succession may actually be accomplished as one step, may be performed simultaneously or nearly simultaneously, may be performed in a partially or fully overlapping manner, or the blocks may be performed in reverse order in some cases. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of multiple blocks in the block diagrams and / or flowcharts, may be executed by a dedicated hardware-based system that performs a specific function or operation or executes a combination of dedicated hardware and computer instructions.

[0072] Various embodiments of the present invention have been described by way of example, but are not intended to be exhaustive or limited to the disclosed embodiments. As will be apparent to those skilled in the art, many modifications and variations are possible without departing from the scope of the described embodiments. The terms used in this specification are selected in order to best explain the principles of the embodiments, their practical applications, or technical improvements to the technology recognized in the market, or to allow other skilled in the art to understand the embodiments disclosed herein.

Claims

1. 1. A computer-implemented method for task failover in an unstable environment including multiple salvageable nodes, comprising: monitoring, by one or more processing units, whether any of the plurality of retrievable nodes is to be retrievable; determining, by one or more processing units, whether a task on any node of the plurality of recoverable nodes is recoverable; storing, by one or more processing units, data of the recoverable task in response to the task being recoverable; In response to a node being retired and the task on the retired node being recoverable, notifying, by one or more processing units, at least one associated task of at least one associated node of the retired node to wait; A method comprising:

2. 2. The method of claim 1, wherein determining whether a task is recoverable is based on at least one of the following factors associated with the task on the node being recovered: task execution time, task execution rate, task execution result size, number of child nodes, and number of re-executions.

3. The method of claim 1 , wherein the associated node of the retired node is selected from at least one of a parent node of the retired node and a child node of the retired node.

4. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a stable node, the method comprising: The method of claim 1 , further comprising connecting, by one or more processing units, the at least one associated node of the retrieved node to the stable node.

5. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a recoverable node, the method comprising: The method of claim 1 , further comprising connecting, by one or more processing units, the at least one associated node of the salvaged node to the salvageable node.

6. In response to the withdrawn node being returned, reloading, by one or more processing units, the stored data of the recoverable task onto the salvaged node; reconnecting, by one or more processing units, the retrieved node to the at least one associated node; continuing task execution on the retrieved node and the at least one associated node by one or more processing units; The method of claim 1 further comprising:

7. Notifying at least one associated task of at least one associated node of the retired node to wait further includes notifying at least one associated task of at least one of a parent node and a long-running child node of the retired node to wait, the method comprising: terminating, by one or more processing units, corresponding task execution associated with the recoverable task on short-running child nodes of the retired node; determining, by one or more processing units, a backup node for the short-running child node; 7. The method of claim 6, wherein reconnecting the retired node to the at least one associated node further comprises reconnecting the retired node to at least one of the parent node, the long-running child node, and the backup node of the short-running child node.

8. 2. The method of claim 1, further comprising: in response to the at least one node being retired and the task being unrecoverable, terminating, by one or more processing units, task execution of the unrecoverable task on the retired node and task execution related to the unrecoverable task on child nodes of the retired node.

9. 1. A computer program product for task failover in an unstable environment including multiple salvageable nodes, comprising: A computer-readable storage medium having program instructions embodied therein, the program instructions being executable by a computer, the computer being configured to: monitoring whether any node among the plurality of retrievable nodes is to be retrievable; determining whether a task on any node of the plurality of recoverable nodes is recoverable; responsive to the task being recoverable, storing data of the recoverable task; In response to a node being retired and the task on the retired node being recoverable, notifying at least one associated task of at least one associated node of the retired node to wait; A computer program product for causing a computer to carry out a method comprising:

10. 10. The computer program product of claim 9, wherein determining whether a task is recoverable is based on at least one of the following factors associated with the task on the recovered node: task execution time, task execution rate, task execution result size, number of child nodes, and number of re-executions.

11. 10. The computer program product of claim 9, wherein the associated node of the retired node is selected from at least one of a parent node of the retired node and a child node of the retired node.

12. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a stable node, the method comprising:

10. The computer program product of claim 9, further comprising connecting the at least one associated node of the retrieved node to the stable node.

13. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a recoverable node, the method comprising: The computer program product of claim 9 , further comprising connecting the at least one associated node of the salvaged node to the salvageable node.

14. The method comprises: In response to the withdrawn node being returned, reloading the stored data of the recoverable task onto the retired node; reconnecting the withdrawn node to the at least one associated node; continuing task execution on the retired node and the at least one associated node; 10. The computer program product of claim 9, further comprising:

15. 1. A computer system for task failover in an unstable environment including multiple recoverable nodes, comprising: one or more processors; a memory coupled to at least one of the processors; a set of computer program instructions stored in said memory, said set of computer program instructions being executed by at least one of said processors to: monitoring whether any node among the plurality of retrievable nodes is to be retrievable; determining whether a task on any node of the plurality of recoverable nodes is recoverable; responsive to the task on the retired node being recoverable, storing data of the recoverable task; In response to a node being retired and the task on the retired node being recoverable, notifying at least one associated task of at least one associated node of the retired node to wait; A computer system executed to carry out a method comprising:

16. 16. The computer system of claim 15, wherein determining whether a task is recoverable is based on at least one of the following factors associated with the task on the recovered node: task execution time, task execution rate, task execution result size, number of child nodes, and number of re-executions.

17. 16. The computer system of claim 15, wherein the associated node of the retired node is selected from at least one of a parent node of the retired node and a child node of the retired node.

18. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a stable node, the method comprising:

16. The computer system of claim 15, further comprising connecting the at least one associated node of the withdrawn node to the stable node.

19. Storing the data of the recoverable task further comprises storing the data of the recoverable task in a recoverable node, the method comprising: The computer system of claim 15 , further comprising connecting the at least one associated node of the salvaged node to the salvageable node.

20. The method comprises: In response to the withdrawn node being returned, reloading the stored data of the recoverable task onto the retired node; reconnecting the withdrawn node to the at least one associated node; continuing task execution on the retired node and the at least one associated node; 16. The computer system of claim 15, further comprising:

Citation Information

Patent Citations

  • Interdependent virtual machine management

    US20150154046A1

  • Computing on transient resources

    US20180203728A1