# US 2017/0364392 A1 · Distributed hierarchical scheduler

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

- Number: US 2017/0364392 A1
- Document ID: US20170364392A1
- Status: Published application
- Kind: A1
- Application number: 15/187,772
- Filed: 2016-06-20
- Published: 2017-12-21
- Earliest claimed: 2016-06-20
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Vadim SPIVAK; Amar PADMANABHAN; Anfernee Yongkun GUI; Badhri SAMPATHKUMAR; Luca CASTELLANO; Maithem MUNSHED; Michi MUTSUZAKI; Vui Chiap LAM
- Web page: https://patentgrep.com/patent/US20170364392A1

## CPC

- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques disclosed herein provide an approach for assigning resource consumers to available resources. In one embodiment, components of a distributed scheduler are organized into a hierarchy, such as a tree. A placement request received at a root scheduler of the hierarchy is propagated down the hierarchy, either to all children or to randomly selected subsets of children of each scheduler in the hierarchy. Leaf schedulers in the hierarchy that receive the request each propagate back up a score indicating the amount of free resources in its corresponding resource bucket. Branch schedulers then compare scores that they receive, and each further propagate one of the received scores, such as the highest score, based on the comparison, until the root scheduler is reached. The root scheduler makes an additional comparison and returns one of the resource buckets in response to the received placement request.

## Claims

### Claim 1

A computer-implemented method of assigning a resource consumer to one of a plurality of resource buckets, comprising:
receiving a request to assign the resource consumer;
propagating the request to assign the resource consumer down a hierarchy of schedulers to one or more leaf schedulers, wherein each of the one or more leaf schedulers responds to the request by propagating up the hierarchy of schedulers a respective score indicating available resources in a corresponding resource bucket, and wherein parent schedulers in the hierarchy of schedulers each compare received scores propagated up the hierarchy of schedulers and further propagate up one of the received scores based on the comparison; and
assigning the resource consumer to one of the resource buckets based on a comparison of scores that are propagated completely up the hierarchy.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein propagating the request down the hierarchy of schedulers includes propagating the request to a random subset of children of each scheduler in the hierarchy which receives the request.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the one of the received scores that is further propagated up based on the comparison corresponds to a resource bucket with either the largest quantity of free resources or the largest percentage of free resources compared to other resource buckets for which scores are received.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the one of the received scores that is further propagated up based on the comparison is randomly selected from a subset of the received scores indicating resource buckets with either the largest quantities of free resources or the largest percentages of free resources.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising, adding at least one of a leaf scheduler, a branch scheduler, and a root scheduler to the hierarchy of schedulers in response to addition of a resource bucket to the plurality of resource buckets.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising, deactivating at least one of a branch scheduler and a root scheduler in response to removal of a corresponding one of the resource buckets from the plurality of resource buckets.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the hierarchy of schedulers is a tree hierarchy.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the hierarchy of schedulers is one of a plurality of hierarchies of schedulers that receive and service requests to assign resource consumers, each of the hierarchy of schedulers including the same leaf schedulers but different root and branch schedulers.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein:
the resource consumer is a virtual computing instance; and
the resource buckets are host computers.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein:
a respective agent running in each of the host computers acts as the leaf scheduler for the host computer; and
one or more of the agents further act as the root scheduler and the branch schedulers.

### Claim 11

A non-transitory computer-readable storage medium containing a program which, when executed by one or more processors, performs operations for assigning a resource consumer to one of a plurality of resource buckets, the operations comprising:
receiving a request to assign the resource consumer;
propagating the request to assign the resource consumer down a hierarchy of schedulers to one or more leaf schedulers, wherein each of the one or more leaf schedulers responds to the request by propagating up the hierarchy of schedulers a respective score indicating available resources in a corresponding resource bucket, and wherein parent schedulers in the hierarchy of schedulers each compare received scores propagated up the hierarchy of schedulers and further propagate up one of the received scores based on the comparison; and
assigning the resource consumer to one of the resource buckets based on a comparison of scores that are propagated completely up the hierarchy.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein propagating the request down the hierarchy of schedulers includes propagating the request to a random subset of children of each scheduler in the hierarchy which receives the request.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the one of the received scores that is further propagated up based on the comparison corresponds to a resource bucket with either the largest quantity of free resources or the largest percentage of free resources compared to other resource buckets for which scores are received.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the one of the received scores that is further propagated up based on the comparison is randomly selected from a subset of the received scores indicating resource buckets with either the largest quantities of free resources or the largest percentages of free resources.

### Claim 15 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, the operations further comprising, adding at least one of a leaf scheduler, a branch scheduler, and a root scheduler to the hierarchy of schedulers in response to addition of a resource bucket to the plurality of resource buckets.

### Claim 16 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, the operations further comprising, deactivating at least one of a branch scheduler and a root scheduler in response to removal of a corresponding one of the resource buckets from the plurality of resource buckets.

### Claim 17 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the hierarchy of schedulers is a tree hierarchy.

### Claim 18 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the hierarchy of schedulers is one of a plurality of hierarchies of schedulers that receive and service requests to assign resource consumers, each of the hierarchy of schedulers including the same leaf schedulers but different root and branch schedulers.

### Claim 19 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein:
the resource consumer is a virtual computing instance; and
the resource buckets are host computers.

### Claim 20

A computer-implemented method of assigning a resource consumer to one of a plurality of resource buckets, comprising:
monitoring available resources on one of the resource buckets;
receiving a request to assign the resource consumer, wherein the request has been propagated down a hierarchy of schedulers from a root scheduler; and
propagating up the hierarchy of schedulers a score indicating available resources in the one of the resource buckets,
wherein parent schedulers in the hierarchy of schedulers each compare received scores that have been propagated up the hierarchy of schedulers and further propagate up one of the received scores based on the comparison, and
wherein the resource consumer is assigned to one of the resource buckets by the root scheduler based on a comparison of scores that are propagated completely up the hierarchy.
