# US 11,119,786 B2 · Automated multidimensional elasticity for streaming application runtimes

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

- Number: US 11,119,786 B2
- Document ID: US11119786B2
- Status: Granted
- Kind: B2
- Application number: 16/426,644
- Filed: 2019-05-30
- Published: 2020-12-03
- Granted: 2021-09-14
- Earliest claimed: 2019-05-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Xiang Ni; Scott Schneider; Kun-Lung Wu
- Web page: https://patentgrep.com/patent/US11119786B2

## CPC

- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 9/3009: {Thread control instructions}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 8/77: Software metrics
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F 11/3447: {Performance evaluation by modeling}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments for automating multidimensional elasticity for streaming applications in a computing environment. Each operator in a streaming application may be identified and assigned into one of a variety of groups according to similar performance metrics. One or more threading models may be adjusted for one or more of the groups to one or more different regions of the streaming application.

## Claims

### Claim 1

A method, by a processor, for automating multidimensional elasticity operations for streaming applications in a computing environment, comprising:
assigning each operator in a streaming application into one of a plurality of groups according to similar operator performance metrics of an operator performance metric computed for each operator, wherein the operator performance metric is a measure of a percentage of processing time spent by the processor on a respective operator in comparison to each other operator running on the processor, and wherein the operator performance metric is periodically collected by a profiler by taking a snapshot of all actively running threads on the processor and incrementing a counter by a number of times each operator appears in the snapshot; and
adjusting one or more threading models for one or more of the plurality of groups to one or more different regions of the streaming application.

### Claim 2 (depends on 1)

The method of claim 1, further including evaluating each adjustment of the one or more threading model selections and retaining information associated with the adjustment.

### Claim 3 (depends on 1)

The method of claim 1, further including defining the adjusting of the one or more threading model selections to be performed as a multidimensional elasticity performance operation; wherein the multidimensional elasticity performance operation includes a primary adjustment and a secondary adjustment to one or more threading models or thread counts.

### Claim 4 (depends on 1)

The method of claim 1, further including adjusting the one or more threading model selections, wherein adjusting the one or more threading model selections triggers a search to identify an appropriate number of thread counts for the adjusted one or more threading model selections.

### Claim 5 (depends on 1)

The method of claim 1, further including adjusting a thread count, wherein adjusting the thread count triggers a search to identify an appropriate threading model for the adjusted thread count.

### Claim 6 (depends on 1)

The method of claim 1, further including learning a range of N number of thread counts for a selected threading model, wherein the range of N number of thread counts include a maximum number of thread counts and a minimum number of thread counts.

### Claim 7 (depends on 6)

The method of claim 6, further including retaining a configuration for the selected threading model while adjusting the range of the N number of thread counts for the selected threading model.

### Claim 8

A system for automating multidimensional elasticity operations for streaming applications in a computing environment, comprising:
one or more computers with executable instructions that when executed cause the system to:
assign each operator in a streaming application into one of a plurality of groups according to similar operator performance metrics of an operator performance metric computed for each operator, wherein the operator performance metric is a measure of a percentage of processing time spent by the processor on a respective operator in comparison to each other operator running on the processor, and wherein the operator performance metric is periodically collected by a profiler by taking a snapshot of all actively running threads on the processor and incrementing a counter by a number of times each operator appears in the snapshot; and
adjust one or more threading models for one or more of the plurality of groups to one or more different regions of the streaming application.

### Claim 9 (depends on 8)

The system of claim 8, wherein the executable instructions further evaluate each adjustment of the one or more threading model selections and retaining information associated with the adjustment.

### Claim 10 (depends on 8)

The system of claim 8, wherein the executable instructions further define the adjusting of the one or more threading model selections to be performed as a multidimensional elasticity performance operation; wherein the multidimensional elasticity performance operation includes a primary adjustment and a secondary adjustment to one or more threading models or thread counts.

### Claim 11 (depends on 8)

The system of claim 8, wherein the executable instructions further adjust the one or more threading model selections, wherein adjusting the one or more threading model selections triggers a search to identify an appropriate number of thread counts for the adjusted one or more threading model selections.

### Claim 12 (depends on 8)

The system of claim 8, wherein the executable instructions further adjust a thread count, wherein adjusting the thread count triggers a search to identify an appropriate threading model for the adjusted thread count.

### Claim 13 (depends on 8)

The system of claim 8, wherein the executable instructions further learn a range of N number of thread counts for a selected threading model, wherein the range of N number of thread counts include a maximum number of thread counts and a minimum number of thread counts.

### Claim 14 (depends on 13)

The system of claim 13, wherein the executable instructions further retain a configuration for the selected threading model while adjusting the range of the N number of thread counts for the selected threading model.

### Claim 15

A computer program product for automating multidimensional elasticity operations for streaming applications by a processor, the computer program product comprising a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
an executable portion that assigns each operator in a streaming application into one of a plurality of groups according to similar operator performance metrics of an operator performance metric computed for each operator, wherein the operator performance metric is a measure of a percentage of processing time spent by the processor on a respective operator in comparison to each other operator running on the processor, and wherein the operator performance metric is periodically collected by a profiler by taking a snapshot of all actively running threads on the processor and incrementing a counter by a number of times each operator appears in the snapshot; and
an executable portion that adjusts one or more threading models for one or more of the plurality of groups to one or more different regions of the streaming application.

### Claim 16 (depends on 15)

The computer program product of claim 15, further including an executable portion that evaluates each adjustment of the one or more threading model selections and retaining information associated with the adjustment.

### Claim 17 (depends on 15)

The computer program product of claim 15, further including an executable portion that define the adjusting of the one or more threading model selections to be performed as a multidimensional elasticity performance operation; wherein the multidimensional elasticity performance operation includes a primary adjustment and a secondary adjustment to one or more threading models or thread counts.

### Claim 18 (depends on 15)

The computer program product of claim 15, further including an executable portion that adjusts the one or more threading model selections, wherein adjusting the one or more threading model selections triggers a search to identify an appropriate number of thread counts for the adjusted one or more threading model selections.

### Claim 19 (depends on 15)

The computer program product of claim 15, further including an executable portion that adjusts a thread count, wherein adjusting the thread count triggers a search to identify an appropriate threading model for the adjusted thread count.

### Claim 20 (depends on 15)

The computer program product of claim 15, further including an executable portion that:
learns a range of N number of thread counts for a selected threading model, wherein the range of N number of thread counts include a maximum number of thread counts and a minimum number of thread counts; and
retains a configuration for the selected threading model while adjusting the range of the N number of thread counts for the selected threading model.
