# US 2022/0283846 A1 · Pod deployment method and apparatus

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

- Number: US 2022/0283846 A1
- Document ID: US20220283846A1
- Status: Published application
- Kind: A1
- Application number: 17/752,102
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2019-11-26
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wenbo ZHANG; Hai XIA
- Web page: https://patentgrep.com/patent/US20220283846A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- 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/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2209/5011: Pool
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This application relates to the field of cloud computing technologies, and discloses a pod deployment method and apparatus. A master node receives an instruction for deploying one or more scheduling domains, where the instruction includes a quantity of each type of resources occupied by each of the scheduling domains; selects a worker node for deploying the one or more scheduling domains, and sends, to the worker node, the instruction for deploying the one or more scheduling domains, where the instruction includes the quantity of each type of resources occupied by the scheduling domain; and sends, to the worker node based on association information of a scheduling domain, an instruction for deploying one or more pods, where the instruction includes a quantity of pods, a quantity of containers included in each pod, and an identifier of the scheduling domain to which resources used by the one or more pods belong.

## Claims

### Claim 1

A pod deployment method, wherein the method comprises:
receiving, by a master node, an instruction for deploying one or more scheduling domains, wherein the instruction comprises a quantity of each type of resources occupied by each of the scheduling domains, and the resources occupied by the scheduling domain are used by at least one pod;
selecting, by the master node, a worker node for deploying the one or more scheduling domains, and sending, to the worker node, the instruction for deploying the one or more scheduling domains, wherein the instruction comprises the quantity of each type of resources occupied by each of the scheduling domains;
receiving, by the master node, an instruction for deploying one or more pods, wherein the instruction comprises a quantity of pods, a quantity of containers comprised in each pod, and association information of a scheduling domain; and
sending, by the master node to the worker node based on the association information of the scheduling domain, the instruction for deploying the one or more pods, wherein the instruction comprises the quantity of pods, the quantity of containers comprised in each pod, and an identifier of the scheduling domain to which resources used by the one or more pods belong.

### Claim 2 (depends on 1)

The method according to claim 1, wherein for any type of resources that are occupied by the scheduling domain and that are used by the pod, a quantity of the type of resources is less than a sum of a maximum quantity of the type of resources needed by each container when working, and is not less than a maximum quantity of the type of resources needed by any container when working.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the association information of the scheduling domain is an identifier of the scheduling domain, a type of the scheduling domain, or an identifier of the worker node.

### Claim 4 (depends on 1)

The method according to claim 1, wherein after the sending, by the master node to the worker node, the instruction for deploying the one or more scheduling domains, the method further comprises:
updating, by the master node, a remaining quantity of each type of resources in the worker node in a resource list, and updating a remaining quantity of each type of resources in a resource pool, wherein the resource pool comprises a plurality of worker nodes.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the selecting, by the master node, a worker node for the deploying one or more scheduling domains comprises:
selecting, by the master node from the plurality of worker nodes according to an optimal resource policy, the worker node for deploying the one or more scheduling domains; or
when the instruction for deploying the one or more scheduling domains received by the master node further comprises the identifier of the worker node, using, by the master node, the worker node corresponding to the identifier as the worker node for deploying the one or more scheduling domains.

### Claim 6 (depends on 1)

The method according to claim 1, wherein if the quantity of each type of resources occupied by the scheduling domain comprises a quantity of CPUs occupied by the scheduling domain,
the instruction for deploying the one or more scheduling domains further comprises a quantity of CPUs for isolated use of a container in a pod and/or a quantity of CPUs for shared use of containers in a pod, and
the instruction for deploying the one or more pods further comprises: an identifier of a first container that uses a CPU in isolation from another container.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the master node, an instruction for deleting a scheduling domain, wherein the instruction comprises an identifier of the scheduling domain;
determining, by the master node, whether there is a pod that uses a resource in the scheduling domain with the identifier; and
if yes, sending prompt information indicating that the scheduling domain cannot be deleted; or
if no, sending the instruction for deleting the scheduling domain to a worker node on which the scheduling domain is deployed.

### Claim 8

A pod deployment method, wherein the method comprises:
receiving, by a worker node, an instruction that is for deploying one or more scheduling domains and that is sent by a master node, wherein the instruction comprises a quantity of each type of resources occupied by each of the scheduling domains; deploying the one or more scheduling domains, wherein the scheduling domain comprises a corresponding quantity of a corresponding type of resources;
receiving, by the worker node, an instruction that is for deploying one or more pods and that is sent by the master node, wherein the instruction comprises a quantity of pods, a quantity of containers comprised in each pod, and an identifier of a scheduling domain to which resources used by the one or more pods belong; and
deploying, by the worker node, a corresponding quantity of pods, wherein each pod comprises a corresponding quantity of containers; and controlling, by the worker node when any container is working, the container to use a resource in the scheduling domain.

### Claim 9 (depends on 8)

The method according to claim 8, wherein for any type of resources that are occupied by the scheduling domain and that are used by the pod, a quantity of the type of resources is less than a sum of a maximum quantity of the type of resources needed by each container when working, and is not less than a maximum quantity of the type of resources needed by any container when working.

### Claim 10 (depends on 8)

The method according to claim 8, wherein if the quantity of each type of resources occupied by the scheduling domain comprises a quantity of CPUs occupied by the scheduling domain,
the instruction for deploying the one or more scheduling domains further comprises a quantity of CPUs for isolated use of a container in a pod and/or a quantity of CPUs for shared use of containers in a pod,
the instruction for deploying the one or more pods further comprises: an identifier of a first container that uses a CPU in isolation from another container; and
the controlling, by the worker node when any container is working, the container to use a resource in the scheduling domain comprises:
controlling, by the worker node when the first container is working, the first container to use a CPU for isolated use in the scheduling domain, and controlling, when another container different from the first container is working, the another container to use another CPU that is in the scheduling domain and that is not for isolated use.

### Claim 11

A pod deployment apparatus, wherein the apparatus comprises a transceiver; at least one processor; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the pod deployment apparatus to::
receive an instruction for deploying one or more scheduling domains, wherein the instruction comprises a quantity of each type of resources occupied by each of the scheduling domains, and the resources occupied by the scheduling domain are used by at least one pod; and
select a worker node for deploying the one or more scheduling domains, wherein
send, to the worker node, the instruction for deploying the one or more scheduling domains, wherein the instruction comprises the quantity of each type of resources occupied by the scheduling domain; receive an instruction for deploying one or more pods, wherein the instruction comprises a quantity of pods, a quantity of containers comprised in each pod, and association information of a scheduling domain; send, to the worker node based on the association information of the scheduling domain, the instruction for deploying the one or more pods, wherein the instruction comprises the quantity of pods, the quantity of containers comprised in each pod, and an identifier of the scheduling domain to which resources used by the one or more pods belong.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein for any type of resources that are occupied by the scheduling domain and that are used by the pod, a quantity of the type of resources is less than a sum of a maximum quantity of the type of resources needed by each container when working, and is not less than a maximum quantity of the type of resources needed by any container when working.

### Claim 13 (depends on 11)

The apparatus according to claim 11, wherein the association information of the scheduling domain is an identifier of the scheduling domain, a type of the scheduling domain, or an identifier of the worker node.

### Claim 14 (depends on 11)

The apparatus according to claim 11, wherein the programming instructions, when executed by the at least one processor, cause the apparatus to update a remaining quantity of each type of resources in the worker node in a resource list, and update a remaining quantity of each type of resources in a resource pool, wherein the resource pool comprises a plurality of worker nodes.

### Claim 15 (depends on 11)

The apparatus according to claim 11, wherein the programming instructions, when executed by the at least one processor, cause the apparatus to:
select, from the plurality of worker nodes according to an optimal resource policy, the worker node for deploying the one or more scheduling domains; or
when the received instruction for deploying the one or more scheduling domains further comprises the identifier of the worker node, use the worker node corresponding to the identifier as the worker node for deploying the one or more scheduling domains.

### Claim 16 (depends on 11)

The apparatus according to claim 11, wherein if the quantity of each type of resources occupied by the scheduling domain comprises a quantity of CPUs occupied by the scheduling domain,
the instruction for deploying the one or more scheduling domains further comprises a quantity of CPUs for isolated use of a container in a pod and/or a quantity of CPUs for shared use of containers in a pod, and
the instruction for deploying the one or more pods further comprises: an identifier of a first container that uses a CPU in isolation from another container.

### Claim 17 (depends on 11)

The apparatus according to claim 11, wherein the programming instructions, when executed by the at least one processor, cause the apparatus to receive an instruction for deleting a scheduling domain, wherein the instruction comprises an identifier of the scheduling domain; and
determine whether there is a pod that uses a resource in the scheduling domain with the identifier, and if yes, send prompt information indicating that the scheduling domain cannot be deleted, or if no, send, by using the transceiver module, the instruction for deleting the scheduling domain to a worker node on which the scheduling domain is deployed.

### Claim 18

A pod deployment apparatus, wherein the apparatus comprises a transceiver; at least one processor; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the pod deployment apparatus to::
receive an instruction that is for deploying one or more scheduling domains and that is sent by a master node, wherein the instruction comprises a quantity of each type of resources occupied by each of the scheduling domains; and
deploy the one or more scheduling domains, wherein the scheduling domain comprises a corresponding quantity of a corresponding type of resources;
receive an instruction that is for deploying one or more pods and that is sent by the master node, wherein the instruction comprises a quantity of pods, a quantity of containers comprised in each pod, and an identifier of a scheduling domain to which resources used by the one or more pods belong; and
deploy a corresponding quantity of pods, wherein each pod comprises a corresponding quantity of containers; and control, when any container is working, the container to use a resource in the scheduling domain.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein for any type of resources that are occupied by the scheduling domain and that are used by the pod, a quantity of the type of resources is less than a sum of a maximum quantity of the type of resources needed by each container when working, and is not less than a maximum quantity of the type of resources needed by any container when working.

### Claim 20 (depends on 18)

The apparatus according to claim 18, wherein if the quantity of each type of resources occupied by the scheduling domain comprises a quantity of CPUs occupied by the scheduling domain,
the instruction for deploying the one or more scheduling domains further comprises a quantity of CPUs for isolated use of a container in a pod and/or a quantity of CPUs for shared use of containers in a pod,
the instruction for deploying the one or more pods further comprises: an identifier of a first container that uses a CPU in isolation from another container; and
the programming instructions, when executed by the at least one processor, cause the apparatus to: control, when the first container is working, the first container to use a CPU for isolated use in the scheduling domain; and when another container different from the first container is working, control the another container to use another CPU that is in the scheduling domain and that is not for isolated use.
