Image subunit based guest scheduling
AssigneeRed Hat, Inc.
InventorHuamin Chen
Life of this patent
Estimating the term…
Abstract
Image subunit based guest scheduling is disclosed. For example, a memory stores an image registry, which stores a plurality of reference entries each associated with subunits hosted on each node of a plurality of nodes. A scheduler executing on a processor manages deployment of guests to the plurality of nodes including a first node and a second node, where a first guest is associated with an image file that includes a first subunit and a second subunit. The image registry is queried for at least one node of the plurality of nodes hosting the first subunit and/or the second subunit and the first node is determined to host the first subunit. The first guest is scheduled to the first node based on the first node hosting the first subunit.
Claims20
A method comprising:
- deploying guests to a plurality of nodes including first and second nodes, wherein a guest is associated with an image file, the image file includes a plurality of layers including a first layer, the first layer includes a first subunit of a first size and a second subunit of a second size, an image registry stores metadata associated with respective identifiers and sizes of each subunit hosted on each of the first and second nodes, and the image registry is executed on a third node separated from the plurality of nodes by a network;
- querying the image registry for at least one node across the network hosting at least one of the first subunit and the second subunit of the image file;
- determining, using identifiers of subunits, that the first node hosts the first subunit and the second node hosts the second subunit;
- comparing sizes, including the first size and the second size, between the first and second nodes based on the metadata stored in the image registry;
- and
- scheduling the guest to execute on the first node based on the first node hosting the first subunit and on the first size of the first subunit being larger than the second size of the second subunit.
The method of claim 16, wherein the metadata includes identifiers of each subunit of each guest hosted on each of the plurality of nodes.
A system comprising:
- a memory storing an image registry;
- and
- one or more processors configured to execute to:
- deploy guests to a plurality of nodes including first and second nodes, wherein a guest is associated with an image file, the image file includes a plurality of layers including a first layer, the first layer includes a first subunit of a first size and a second subunit of a second size, the image registry stores metadata associated with respective identifiers and sizes of each subunit hosted on each of the first and second nodes, and the image registry is executed on a third node separated from the plurality of nodes by a network;
- query the image registry for at least one node across the network hosting at least one of the first subunit and the second subunit of the image file;
- determine, using identifiers of subunits, that the first node hosts the first subunit and the second node hosts the second subunit;
- compare sizes, including the first size and the second size, between the node and second nodes based on the metadata stored in the image registry;
- and
- schedule the guest to execute on the first node based on the first node hosting the first subunit and on the first size of the first subunit being larger than the second size of the second subunit.
A computer-readable non-transitory storage medium storing executable instructions, which when executed by a computer system, cause the computer system to:
- deploy guests to a plurality of nodes including first and second nodes, wherein a guest is associated with an image file, the image file includes a plurality of layers including a first layer, the first layer includes a first subunit of a first size and a second subunit of a second size, an image registry stores metadata associated with respective identifiers and sizes of each subunit hosted on each of the first and second nodes, and the image registry is executed on a third node separated from the plurality of nodes by a network;
- query the image registry for at least one node across the network hosting at least one of the first subunit and the second subunit of the image file;
- determine, using identifiers of subunits, that the first node hosts the first subunit and the second node hosts the second subunit;
- compare sizes, including the first size and the second size, between the first and second nodes based on the metadata stored in the image registry;
- and
- schedule the guest to execute on the first node based on the first node hosting the first subunit and on the first size of the first subunit being larger than the second size of the second subunit.
Dependencies are inferred from the claim text.