p2paddon
What Is P2P Image Distribution?
When Docker is used to run containers, the host usually downloads images from the Registry service (such as Docker Hub). When a large number of hosts need to download images from the Registry to run containerized applications (for example, when a new version is released), the Registry service becomes the bottleneck of image distribution. It takes a long time to transmit images to all hosts, extending the application release period.
To address this bottleneck, some users download images for each node to obtain images in batches and start applications at the preset time. This method alleviates the problem to a certain extent, but it does not solve the bottleneck of Registry distribution.
To resolve this bottleneck, the SWR service provides a plug-in using the P2P protocol to accelerate image distribution. The plug-in allows shared images between nodes in a cluster to form a distributed P2P download network, thus improving network throughput.
The Docker will restart during add-on installation. Exercise caution when using this add-on.
Notes and Constraints
This add-on can be installed only in CCE clusters and Kunpeng clusters of v1.9 to v1.13.
Recommendation
The add-on is recommended when the number of nodes in a cluster exceeds 50.
Installing the Add-on
- Log in to the CCE console and access the cluster details page. Choose Add-ons in the navigation pane, locate p2paddon on the right, and click Install.
- Click Install.
Last Article: tf-operator
Next Article: rc-recycler
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.