# US 2022/0283869 A1 · Resource Scheduling Method, Apparatus and System

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

- Number: US 2022/0283869 A1
- Document ID: US20220283869A1
- Status: Published application
- Kind: A1
- Application number: 17/637,840
- Filed: 2020-11-12
- Published: 2022-09-08
- Earliest claimed: 2019-11-28
- Assignees: Zte Corporation
- Applicants: ZTE Corporation
- Inventors: Bo TANG; Kewen WANG
- Web page: https://patentgrep.com/patent/US20220283869A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F 9/5072: {Grid computing}
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F 2209/5011: Pool
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The embodiments of the present disclosure disclose a resource scheduling method, apparatus and system. The method comprises: receiving, by a management node, a Pod creation request from a user, wherein the Pod creation request comprises: requirements of each container for each type of shareable resources; selecting, by the management node, a node for a Pod object to be created, and allocating each type of shareable resources of each container to the Pod object according to shareable resource information of a shareable device in the selected node; and binding the Pod object, the selected node and allocated resources, and storing the Pod object bound to the selected node and the allocated resources. The embodiments of the present disclosure introduce a management and scheduling mechanism for shared resources, thereby saving resources and increasing the resource utilization.

## Claims

### Claim 1

A resource scheduling method, comprising:
receiving, by a management node, a Pod creation request from a user, wherein the Pod creation request comprises: requirements of each container for each type of shareable resources; and
selecting, by the management node, a node for a Pod object to be created, and allocating each type of shareable resources of each container to the Pod object according to shareable resource information of a shareable device in the selected node, wherein the shareable resource information comprises: an identifier (ID) of the shareable device, resource property information of the shareable device and a maximum shareable number of the shareable device.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the management node, shareable resource information of a shareable device reported by a slave node, and storing or updating the shareable resource information of the shareable device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the requirements for each type of shareable resources comprise: the number of shareable resources requested; or the number of shareable resources requested and resource property requirements corresponding to the shareable resources, wherein the resource property requirements comprise: a resource property value requested or an expression that the resource property value satisfies.

### Claim 4 (depends on 3)

The method according to claim 3, wherein allocating each type of shareable resources of each container to the Pod object according to shareable resource information of a shareable device in the selected node comprises any one or more of the following:
for each type of shareable resources of each container, in a case where the selected node has a shareable device comprising allocated shareable resources, allocating shareable resources in a first device to the Pod object; and
for each type of shareable resources of each container, in a case where none of shareable devices in the selected node comprises allocated shareable resources, allocating shareable resources in a second device to the Pod object;
wherein the first device comprises:
a shareable device satisfying conditions that the shareable device comprises allocated shareable resources and the number of shareable resources requested is less than or equal to a difference between the maximum shareable number of the shareable device and the number of the allocated shareable resources;
or a shareable device satisfying conditions that the shareable device comprises allocated shareable resources, the number of shareable resources requested is less than or equal to a difference between the maximum shareable number of the shareable device and the number of the allocated shareable resources, and an amount of resource properties requested is less than or equal to a product of a ratio of the number of shareable resources requested to the maximum shareable number of the shareable device multiplied by the resource property value;
or a shareable device satisfying conditions that the shareable device comprises allocated shareable resources, the number of shareable resources requested is less than or equal to a difference between the maximum shareable number of the shareable device and the number of the allocated shareable resources, and an amount of resource properties satisfies the expression in the resource property requirements; and
the second device comprises:
a shareable device satisfying conditions that the shareable device does not comprise allocated shareable resources and the number of shareable resources requested is less than or equal to the maximum shareable number of the shareable device;
or a shareable device satisfying conditions that the shareable device does not comprise allocated shareable resources, the number of shareable resources requested is less than or equal to the maximum shareable number of the shareable device, and an amount of resource properties requested is less than or equal to a product of a ratio of the number of shareable resources requested to the maximum shareable number of the shareable device multiplied by the resource property value;
or a shareable device satisfying conditions that the shareable device does not comprise allocated shareable resources, the number of shareable resources requested is less than or equal to the maximum shareable number of the shareable device, and an amount of resource properties satisfies the expression in the resource property requirements.

### Claim 5

A resource scheduling method, comprising:
acquiring, by a slave node, shareable information of each shareable device, wherein the shareable information comprises: an identifier (ID) of the shareable device, a maximum shareable number of the shareable device, and a device state and resource property information of the shareable device; and the device state comprises: whether the shareable device is healthy and whether the shareable device is available; and
converting, by the slave node, the shareable information into shareable resource information, and reporting the shareable resource information to a management node, wherein the shareable resource information comprises: the ID of the shareable device, the resource property information of the shareable device and the maximum shareable number of the shareable device.

### Claim 6 (depends on 1)

A resource scheduling apparatus, comprising a processor and a computer-readable storage medium, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed by the processor, the following operations in the method according to claim 1 are implemented.

### Claim 7 (depends on 1)

A non-transitory computer-readable storage medium, on which computer programs are stored, wherein when the computer programs are executed by a processor, the operations in the method according to claim 1 are implemented.

### Claim 8 (depends on 5)

A resource scheduling apparatus, comprising a processor and a computer-readable storage medium, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed by the processor, the operations in the method according to claim 5 are implemented.

### Claim 9 (depends on 5)

A non-transitory computer-readable storage medium, on which computer programs are stored, wherein when the computer programs are executed by a processor, the operations in the method according to claim 5 are implemented.

### Claim 10

(canceled)

### Claim 11

(canceled)

### Claim 12

A resource scheduling system, comprising:
a slave node, configured to acquire shareable information of each shareable device, wherein the shareable information comprises: an identifier (ID) of the shareable device, a maximum shareable number of the shareable device, and a device state and resource property information of the shareable device; and the device state comprises: whether the shareable device is healthy and whether the shareable device is available; and configured to convert the shareable information into shareable resource information, and report the shareable resource information to a management node, wherein the shareable resource information comprises: the ID of the shareable device, the resource property information of the shareable device and the maximum shareable number of the shareable device; and
the management node, configured to receive the shareable resource information of the shareable device reported by the slave node, and store or update the shareable resource information of the shareable device, wherein the shareable resource information comprises: the ID of the shareable device, the resource property information of the shareable device and the maximum shareable number of the shareable device; configured to receive a Pod creation request from a user, wherein the Pod creation request comprises the following description information: requirements of each container for each type of shareable resources; and configured to select a node for a Pod object to be created, and allocate each type of shareable resources of each container to the Pod object according to the shareable resource information of the shareable device in the selected node.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the maximum shareable number of the shareable device refers to the number of all sub-resources obtained by segmenting the shareable device as a shareable resource.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the Pod creation request further comprises: image information of containers, and basic information of the Pod.

### Claim 15 (depends on 1)

The method according to claim 1, wherein in a case where a unit is not specified for the number of each type of shareable resources requested in the Pod creation request, the unit of the shareable resource requested is device by default and the device is processed according to an exclusive mode, and the unit of the number of each type of shareable resources requested is converted into slice;
in a case where a unit is specified for the number of each type of shareable resources requested in the Pod creation request, the device is processed according to a sharing mode, and the number of each type of shareable resources requested is required to be less than or equal to the maximum shareable number of the shareable device.

### Claim 16 (depends on 15)

The method according to claim 15, wherein
the exclusive mode means that one device is exclusively used by one container; and
the sharing mode means that one device is used concurrently by multiple containers.

### Claim 17 (depends on 1)

The method according to claim 1, wherein selecting, by the management node, a node for a Pod object to be created comprises:
selecting, for the Pod object to be created, that node that has a device that satisfies the requirements of the requested shareable resources for each type of shareable resources requested.

### Claim 18 (depends on 1)

The method according to claim 1, further comprising:
binding the Pod object, the selected node and the allocated resources, and storing the Pod object bound to the selected node and the allocated resources.

### Claim 19 (depends on 18)

The method according to claim 18, wherein binding the Pod object, the selected node and the allocated resources comprises:
storing information of the selected node and information of the allocated resources in the Pod object.

### Claim 20 (depends on 5)

The method according to claim 5, further comprising:
acquiring, from the management node by the slave node, a Pod object which is bound to the slave node but is not started, and creating, by the slave node, a Pod according to allocated resources bound to the Pod object.

### Claim 21 (depends on 20)

The method according to claim 20, wherein creating, by the slave node, a Pod according to allocated resources bound to the Pod object comprises:
according to the allocated resources bound to the Pod object, triggering loading of a device and acquiring configuration information, and creating the Pod according to the configuration information and information of the allocated resources.

### Claim 22 (depends on 21)

The method according to claim 21, wherein the allocated resources include shareable resources, or shareable resources and non-shareable resources.
