Copying container images
AssigneeRed Hat, Inc.
InventorsHuamin Chen, Dennis Keefe
Life of this patent
Estimating the term…
Abstract
Container images can be copied. For example, a computing device can segment a container image into at least two data chunks. The computing device can determine a reference count for a data chunk among the at least two data chunks. The computing device can determine that the reference count for the data chunk is below a threshold value. In response to determining that the reference count for the data chunk is below the threshold value, the computing device can prevent a destination device from being queried about the data chunk prior to transmitting the data chunk to the destination device.
Claims17
A system comprising:
- a processing device;
- and
- a memory device including instructions that are executable by the processing device for causing the processing device to:
- for each respective data chunk of at least two data chunks in a container image:
- determine a respective reference count for the respective data chunk;
- hash the respective data chunk to generate a hashed key;
- determine a logical address for the respective data chunk on a physical storage medium of a content addressable storage (CAS) system;
- and
- store the hashed key, the respective reference count, and the logical address for the respective data chunk in a data table of the CAS system;
- receive a request for the container image from a client device;
- and
- in response to receiving the request:
- determine that the container image includes the at least two data chunks;
- determine a reference count for a data chunk among the at least two data chunks by accessing the data table, the reference count indicating how many times the data chunk is present in a plurality of container images;
- determine that the reference count for the data chunk is below a threshold value;
- and
- in response to determining that the reference count for the data chunk is below the threshold value, prevent the client device from being queried about the data chunk prior to transmitting the data chunk to the client device.
A method comprising:
- for each respective data chunk of at least two data chunks in a container image:
- determining, by a processing device, a respective reference count for the respective data chunk;
- hashing, by the processing device, the respective data chunk to generate a hashed key;
- determining, by the processing device, a logical address for the respective data chunk on a physical storage medium of a content addressable storage (CAS) system;
- and
- storing, by the processing device, the hashed key, the respective reference count, and the logical address for the respective data chunk in a data table of the CAS system;
- receiving, by the processing device, a request for the container image from a client device;
- and
- in response to receiving the request from the client device:
- determining, by the processing device, that the container image includes the at least two data chunks;
- determining, by the processing device, a reference count for a data chunk among the at least two data chunks by accessing the data table, the reference count indicating how many times the data chunk is present in a plurality of container images;
- determining, by the processing device, that the reference count for the data chunk is below a threshold value;
- and
- in response to determining that the reference count for the data chunk is below the threshold value, preventing, by the processing device, the client device from being queried about the data chunk prior to transmitting the data chunk to the client device.
A non-transitory computer-readable medium comprising program code that is executable by a processing device for causing the processing device to:
- for each respective data chunk of at least two data chunks in a container image:
- determine a respective reference count for the respective data chunk;
- hash the respective data chunk to generate a hashed key;
- determine a logical address for the respective data chunk on a physical storage medium of a content addressable storage (CAS) system;
- and
- store the hashed key, the respective reference count, and the logical address for the respective data chunk in a data table of the CAS system;
- receive a request for the container image from a client device;
- segment the container image into the at least two data chunks;
- determine a reference count for a data chunk among the at least two data chunks by accessing the data table, the reference count indicating how many times the data chunk is present in a plurality of container images;
- determine that the reference count for the data chunk is below a threshold value;
- and
- in response to determining that the reference count for the data chunk is below the threshold value, prevent the client device from being queried about the data chunk prior to transmitting the data chunk to the client device.
Dependencies are inferred from the claim text.