# US 2019/0171495 A1 · Multistep automated scaling for cluster containers

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

- Number: US 2019/0171495 A1
- Document ID: US20190171495A1
- Status: Published application
- Kind: A1
- Application number: 15/832,370
- Filed: 2017-12-05
- Published: 2019-06-06
- Earliest claimed: 2017-12-05
- Assignees: D2iQ, Inc.
- Applicants: Mesosphere, Inc.
- Inventors: Tobias Günter Knaup; Christopher John Barkley Gutierrez
- Web page: https://patentgrep.com/patent/US20190171495A1

## CPC

- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/5088: {involving task migration}
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/5044: {considering hardware capabilities}
- G06F 2209/508: Monitor
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system for managing a cluster computing system includes a storage system and a processor. The storage system is configured to store a resource usage history for a set of tasks running on a computer cluster comprising a plurality of worker systems. The processor is configured to determine a required resource size for a task of the set of tasks based at least in part on the resource usage history for the task; resize resources allocated to the task to the required resource size; arrange tasks of the set of tasks on the plurality of worker systems to reduce a number of worker systems running tasks; and deallocate worker systems no longer running tasks.

## Claims

### Claim 1

A system for managing a cluster computing system, comprising:
a storage system configured to:
store a resource usage history for a set of tasks running on a computer cluster comprising a plurality of worker systems;
a processor configured to:
determine a required resource size for a task of the set of tasks based at least in part on the resource usage history for the task;
resize resources allocated to the task to the required resource size;
arrange tasks of the set of tasks on the plurality of worker systems to reduce a number of worker systems running tasks; and
deallocate worker systems no longer running tasks.

### Claim 2 (depends on 1)

The system of claim 1, wherein the required resource size for the task is based at least in part on resource usage history over a period of a day, a week, a month, or a year.

### Claim 3 (depends on 1)

The system of claim 1, wherein the required resource size for the task is based at least in part on a maximum observed resource usage.

### Claim 4 (depends on 1)

The system of claim 1, wherein a resource of the resources allocated to the task comprises one of a memory utilization, storage system utilization, a processor utilization, a graphics processing unit utilization, memory bandwidth utilization, available port usage, or a network bandwidth utilization.

### Claim 5 (depends on 1)

The system of claim 1, wherein resizing the resources allocated to the task comprises reducing an amount of resources allocated to the task.

### Claim 6 (depends on 1)

The system of claim 1, wherein resizing the resources allocated to the task comprises increasing an amount of resources allocated to the task.

### Claim 7 (depends on 6)

The system of claim 6, wherein increasing the amount of resources allocated to the task comprises determining whether resources are available to increase the amount of resources allocated to the task to the required resource size.

### Claim 8 (depends on 7)

The system of claim 7, wherein, in the event it is determined that resources are not available to increase the amount of resources allocated to the task to the required resource size, the amount of resources allocated to the task are increased to a maximum available size.

### Claim 9 (depends on 7)

The system of claim 7, wherein, in the event it is determined that resources are not available to increase the amount of resources allocated to the task to the required resource size, s an indication of the required resource size for the task is stored.

### Claim 10 (depends on 1)

The system of claim 1, wherein resizing the resources allocated to the task to the required resource size comprises stopping the task and restarting the task with the resource allocation set to the required resource size.

### Claim 11 (depends on 1)

The system of claim 1, wherein resizing the resources allocated to the task to the required resource size comprises resizing the resources allocated to the task without stopping the task.

### Claim 12 (depends on 1)

The system of claim 1, wherein the processor is further configured to determine a single required resource size for all tasks of a task group, wherein the task group comprises a subset of the set of tasks comprising multiple instances of a same task or a group of related tasks.

### Claim 13 (depends on 1)

The system of claim 1, wherein the required resource size comprises a projected required is resource size.

### Claim 14 (depends on 1)

The system of claim 1, wherein arranging the tasks on the worker systems of the cluster to reduce the number of worker systems running tasks comprises:
selecting the task of the set of tasks running on the cluster, wherein the task is selected in an order of high to low resource usage;
when the task is selected:
determining a most loaded worker system that has resources available to run the task; and
moving the task to the most loaded worker system that has the resources available to run the task.

### Claim 15 (depends on 14)

The system of claim 14, wherein the task is selected in the order of high to low resource usage for a most constrained resource.

### Claim 16 (depends on 1)

The system of claim 1, wherein deallocating cluster machines no longer running tasks comprises shutting down one or more physical worker systems no longer running tasks.

### Claim 17 (depends on 1)

The system of claim 1, wherein deallocating cluster machines no longer running tasks comprises releasing one or more virtual worker systems no longer running tasks.

### Claim 18 (depends on 1)

The system of claim 1, wherein the processor is further configured to receive a performance target for the task of the set of tasks.

### Claim 19 (depends on 18)

The system of claim 18, wherein the required resource size for the task is based at least in s part on the performance target.

### Claim 20 (depends on 1)

The system of claim 1, wherein the required resource size is determined for each task of the set of tasks.

### Claim 21 (depends on 20)

The system of claim 20, wherein resources allocated to each task of the set of tasks are resized according to the required resource size.

### Claim 22

A method for managing a cluster computing system, comprising:
storing a resource usage history for a set of tasks running on a computer cluster comprising a plurality of worker systems;
determining, using a processor, a required resource size for a task of the set of tasks based at least in part on the resource usage history for the task;
is resizing resources allocated to the task to the required resource size;
arranging the set of tasks on the plurality of worker systems to reduce a number of worker systems running tasks; and
deallocating worker systems no longer running tasks.

### Claim 23

A computer program product for managing a cluster computing system, the computer program product being embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
storing a resource usage history for a set of tasks running on a computer cluster comprising a plurality of worker systems;
determining a required resource size for a task of the set of tasks based at least in part on the resource usage history for the task;
resizing resources allocated to the task to the required resource size;
arranging the set of tasks on the plurality of worker systems to reduce a number of worker systems running tasks; and
deallocating worker systems no longer running tasks.
