Task Failover in Reclaimable Cloud Nodes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In cloud computing environments, spot instances often lead to unstable nodes that can be reclaimed at any time, resulting in wasted calculation resources and delayed responses due to the need to reassign tasks and recompute results.
Innovation Solution
A method for task failover in unstable environments with reclaimable nodes involves monitoring node reclamations, determining if tasks are recoverable, storing recoverable task data, and notifying associated tasks to wait when a node is reclaimed, allowing for seamless continuation of tasks on stable nodes.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of energy
If spot instances are used to reduce costs, then calculation resource utilization improves, but system stability deteriorates due to node reclamation
Solution Approach 1:
The system performs preliminary actions by monitoring node reclamation signals and proactively preparing task migration before the node is actually reclaimed. The method detects reclamation signals, identifies recoverable tasks, and initiates migration processes in advance, allowing the system to maintain stability despite spot instance reclamation events.
Solution Approach 2:
The system introduces an intermediary mechanism - a message queue or notification system - that mediates between the reclaimed node and the task scheduling system. When a node is reclaimed, the system sends notifications through this intermediary to coordinate task migration and data synchronization, enabling smooth transitions without direct disruption to running tasks.
2Reliability
If tasks are migrated upon node reclamation, then system reliability improves, but calculation efficiency deteriorates due to task interruption and data transfer overhead
Solution Approach 1:
The system applies partial action by selectively migrating only recoverable tasks that can be resumed from checkpoint data, rather than migrating all tasks. The method determines whether a task is recoverable based on the presence of checkpoint data, performing migration only when necessary and beneficial, thus minimizing unnecessary task interruptions and data transfers.
Solution Approach 2:
The system changes the state parameter of tasks by storing checkpoint data that marks the completion status of task stages. When a node is reclaimed, the system checks these parameter changes to determine if and how to resume tasks, allowing efficient recovery without full task re-execution and maintaining calculation progress.
3Loss of information
If all tasks are migrated upon node reclamation, then task recovery improves, but resource waste increases due to unnecessary data transfer and computation
Solution Approach 1:
The system performs partial migration by assessing each task's recoverability individually based on checkpoint data availability. Only tasks with recoverable checkpoint data are migrated, while tasks without checkpoints or already completed tasks are left on the reclaimed node or terminated without migration, avoiding unnecessary data transfer and computation overhead.
Solution Approach 2:
The system enables tasks to essentially self-determine their migration needs by checking their own checkpoint data status. The task recovery mechanism automatically identifies which tasks can be recovered and which cannot, performing selective migration without requiring external intervention for each task, thus optimizing resource utilization.
Data Source
AI summary
The present invention relates to a method, system and computer program product for task failover in an unstable environment, wherein the unstable environment includes a plurality of reclaimable nodes. According to the method, it is monitored if any node of the plurality of reclaimable nodes is to be reclaimed. Whether a task on any node of the plurality of reclaimable nodes is recoverable is determined. Responsive to the task being recoverable, data of the recoverable task is stored. Responsive to a node being reclaimed and the task on the reclaimed node being recoverable, at least one associated task of at least one associated node of the reclaimed node is notified to wait.


