# US 2013/0254778 A1 · Decentralized load distribution to reduce power and/or cooling costs in an event-driven system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254778 A1
- Document ID: US20130254778A1
- Status: Published application
- Kind: A1
- Application number: 13/892,264
- Filed: 2013-05-11
- Published: 2013-09-26
- Earliest claimed: 2009-08-18
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Geetika Tewari Lakshmanan; Yuri G. Rabinovich; Robert Jeffrey Schloss
- Web page: https://patentgrep.com/patent/US20130254778A1

## CPC

- G06F 9/5088: {involving task migration}
- G06F 9/505: {considering the load}
- G06F 9/5094: {where the allocation takes into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- H04L 67/1001: for accessing one among a plurality of replicated servers
- G06F 9/4893: {taking into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A computer program product and computer readable storage medium directed to decentralized load placement in an event-driven system so as to minimize energy and cooling related costs. Included are receiving a data flow to be processed by a plurality of tasks at a plurality of nodes in the event-driven system having stateful and stateless event processing components, wherein the plurality of tasks are selected from the group consisting of hierarchical tasks (a task that is dependent on the output of another task), nonhierarchical tasks (a task that is not dependent on the output of another task) and mixtures thereof. Nodes are considered for quiescing whose current tasks can migrate to other nodes while meeting load distribution and energy efficiency parameters and the expected duration of the quiesce provides benefits commensurate with the costs of quiesce and later restart.

## Claims

### Claim 1

A method of decentralized load distribution in an event-driven system, the method comprising the steps of:
receiving a data flow to be processed by a plurality of tasks at a plurality of nodes in the event-driven system having stateful and stateless event processing components, wherein the plurality of tasks are selected from the group consisting of hierarchical tasks, wherein a hierarchical task is a task that is dependent on the output of another task, nonhierarchical tasks, wherein a nonhierarchical task is a task that is not dependent on the output of another task, and mixtures thereof;
collecting statistics about each task hosted at each node;
creating a list of neighbor nodes, using the collected statistics, to which a task can be partially or wholly transferred;
selecting at least one node, known as the donor node, to transition into quiescent mode;
selecting the tasks at the donor node for consideration to migrate, known as the target tasks, to a neighbor node, known as the target node, from the list of neighbor nodes;
choosing the target node to which the target tasks can be migrated wherein the target node meets predetermined criteria in terms of load distribution quality;
establishing a load exchange protocol at each node for governing the number of migrations of target tasks, wherein decentralized load migrations lead to overall system load distribution in the event-driven system;
migrating the target tasks from the donor node to the target node and transitioning the donor node into quiescent mode.

### Claim 2 (depends on 1)

The method of claim 1 wherein the step of selecting at least one node to transition into quiescent mode comprises:
analyzing the incoming traffic and expected duration of a quiescent mode period at the donor node;
evaluating other nodes that can also transition into quiescent mode;
evaluating the latency and power/cooling costs at the donor node of transitioning into quiescent mode; and
evaluating the power/cooling benefits at the donor node of transitioning into quiescent mode; and
migrating the target tasks from the donor node to the target node and transitioning the donor node into quiescent mode if the benefits of transitioning to quiescent mode exceed the costs of transitioning to quiescent mode.

### Claim 3 (depends on 1)

The method of claim 1 further comprising splitting the target tasks into 2 or more groups of target subtasks.

### Claim 4 (depends on 1)

The method of claim 1 wherein the predetermined criteria in terms of load distribution quality comprises:
(i) the target node must be physically connected to: (a) the node hosting the target task, (b) a node hosting a task that is a parent to the target task, and (c) a node hosting a task that is a child to the target task;
(ii) the target node must have sufficient available load and memory to host the target task;
(iii) minimizing the number of physical links in the data flow which passes through the target task;
(iv) eliminating cycles;
(v) target node should have negative load correlation coefficient; and
(vi) post-migration utilization of the node hosting the target task and the target node are less than a predetermined maximum threshold value.

### Claim 5 (depends on 1)

The method of claim 1 wherein the load exchange protocol comprises:
(i) a decision to migrate the target task should not lead to oscillation;
(ii) no simultaneous migrations of 2 or more tasks to a single target node in a single machine cycle shall occur;
(iii) no simultaneous migrations of 2 or more tasks from a node in a single machine cycle shall occur; and
(iii) an end result of target task migration should improve load distribution in some manner.

### Claim 6 (depends on 1)

The method of claim 1 wherein each node has the following load exchange constraints:
(i) during a first predetermined period of time, all target tasks are migrated either upstream or downstream and after a second predetermined period of time, the direction of target task migration may be switched;
(ii) if a target task is migrated to a target node, then any nearest neighbor downstream target tasks prior to the migration cannot be migrated for a predetermined amount of time;
(iii) after migration to a target node, a target task must remain at the target node for a predetermined amount of time; and
(iv) two nodes cannot migrate target tasks to a target node at the same time.

### Claim 7 (depends on 1)

The method of claim 1 further comprising the step of collecting statistics about the execution of the target tasks on the target node.

### Claim 8

A computer program product comprising:
a non-transitory computer recordable storage medium having computer readable program code for decentralized load distribution in an event-driven system comprising:
computer readable program code configured for receiving a data flow to be processed by a plurality of tasks at a plurality of nodes in the event-driven system having stateful and stateless event processing components, wherein the plurality of tasks are selected from the group consisting of hierarchical tasks, wherein a hierarchical task is a task that is dependent on the output of another task, nonhierarchical tasks, wherein a nonhierarchical task is a task that is not dependent on the output of another task, and mixtures thereof;
computer readable program code configured for collecting statistics about each task hosted at each node;
computer readable program code configured for creating a list of neighbor nodes, using the collected statistics, to which a task can be partially or wholly transferred;
computer readable program code configured for selecting at least one node, known as the donor node, to transition into quiescent mode;
computer readable program code configured for selecting the tasks at the donor node for consideration to migrate, known as the target tasks, to a neighbor node, known as the target node, from the list of neighbor nodes;
computer readable program code configured for choosing the target node to which the target tasks can be migrated wherein the target node meets predetermined criteria in terms of load distribution quality;
computer readable program code configured for establishing a load exchange protocol at each node for governing the number of migrations of target tasks, wherein decentralized load migrations lead to overall system load distribution in the event-driven system;
computer readable program code configured for migrating the target tasks from the donor node to the target node and transitioning the donor node into quiescent mode.

### Claim 9 (depends on 8)

The computer program product of claim 8 wherein computer readable program code configured for selecting at least one node to transition into quiescent mode comprises:
computer readable program code configured for analyzing the incoming traffic and expected duration of a quiescent mode period at the donor node;
computer readable program code configured for evaluating other nodes that can also transition into quiescent mode;
computer readable program code configured for evaluating the latency and power/cooling costs at the donor node of transitioning into quiescent mode; and
computer readable program code configured for evaluating the power/cooling benefits at the donor node of transitioning into quiescent mode; and
computer readable program code configured for migrating the target tasks from the donor node to the target node and transitioning the donor node into quiescent mode if the benefits of transitioning to quiescent mode exceed the costs of transitioning to quiescent mode.

### Claim 10 (depends on 8)

The computer program product of claim 8 wherein the predetermined criteria in terms of load distribution quality comprises:
(i) the target node must be physically connected to: (a) the node hosting the target task, (b) a node hosting a task that is a parent to the target task, and (c) a node hosting a task that is a child to the target task;
(ii) the target node must have sufficient available load and memory to host the target task;
(iii) minimizing the number of physical links in the data flow which passes through the target task;
(iv) eliminating cycles;
(v) target node should have negative load correlation coefficient; and
(vi) post-migration utilization of the node hosting the target task and the target node are less than a predetermined maximum threshold value.

### Claim 11 (depends on 8)

The computer program product of claim 8 wherein the load exchange protocol comprises:
(i) a decision to migrate the target task should not lead to oscillation;
(ii) no simultaneous migrations of 2 or more tasks to a single target node in a single machine cycle shall occur;
(iii) no simultaneous migrations of 2 or more tasks from a node in a single machine cycle shall occur; and
(iii) an end result of target task migration should improve load distribution in some manner.

### Claim 12 (depends on 8)

The computer program product of claim 8 wherein each node has the following load exchange constraints:
(i) during a first predetermined period of time, all target tasks are migrated either upstream or downstream and after a second predetermined period of time, the direction of target task migration may be switched;
(ii) if a target task is migrated to a target node, then any nearest neighbor downstream target tasks prior to the migration cannot be migrated for a predetermined amount of time;
(iii) after migration to a target node, a target task must remain at the target node for a predetermined amount of time; and
(iv) two nodes cannot migrate target tasks to a target node at the same time.

### Claim 13 (depends on 8)

The computer program product of claim 8 further comprising computer readable program code configured for collecting statistics about the execution of the target tasks on the target node.
