US 11,656,902 B2
Distributed container image construction scheduling system and method
Dengyin Zhang, Jiangsu (CN); Junjiang Li, Jiangsu (CN); Zijie Liu, Jiangsu (CN); Lin Zhu, Jiangsu (CN); Yi Cheng, Jiangsu (CN); Yingying Zhou, Jiangsu (CN); and Zhaoxi Shi, Jiangsu (CN)
Appl. No. 17/597,890
Filed by NANJING UNIVERSITY OF POSTS AND TELECOMMUNICATIONS, Jiangsu (CN)
PCT Filed Jan. 6, 2021, PCT No. PCT/CN2021/070429
§ 371(c)(1), (2) Date Jan. 28, 2022,
PCT Pub. No. WO2021/143590, PCT Pub. Date Jul. 22, 2021.
Claims priority of application No. 202010034706.5 (CN), filed on Jan. 14, 2020.
Prior Publication US 2022/0171652 A1, Jun. 2, 2022
Int. Cl. G06F 9/48 (2006.01)
CPC G06F 9/4843 (2013.01) 11 Claims
OG exemplary drawing
 
1. A distributed container image construction scheduling system, comprising a management node and at least two or more construction nodes, the management node comprises a console and a scheduler, and each of the at least two or more construction nodes includes an image constructor, the system performs the steps of:
initializing the management node and the at least two or more construction nodes; wherein upon initializing, the management node manages generation and scheduling of a task for constructing a container image in a distributed manner;
wherein the console is to obtain a task parameter required by a user, create a task, transmit the task to the scheduler, and feed an image construction status back to the user, and
wherein the scheduler is to receive the task transmitted from the console, generate a task message, transmit the task message to a corresponding one of the at least two or more construction nodes for running, and wait to receive a task execution result from the corresponding construction node;
the corresponding construction node is to perform the task issued by the management node, and an image constructor of the corresponding construction node is to receive the task message transmitted from the scheduler, execute the task, and return the task execution result to the scheduler;
wherein the initializing of the management node and the at least two or more construction nodes further comprising:
setting the scheduler on the management node to a web server in a block listening status and the image constructor on the at least two or more construction nodes to a Google Remote Procedure Call (gRPC)server in a block listening status;
creating, by the console, the task for constructing the container image, and performing, by the scheduler, a check and generating the task message;
determining which construction nodes from the at least two or more construction nodes to which the task message can be sent;
determining an optimal working node from the determined construction nodes;
sending, by the scheduler, the task message to the optimal working node and generating a task object;
performing, by the optimal working node, the task and sending feedback on the image construction status to the management node;
informing, by the management node, to the user of the feedback on the image construction status; and
entering an initialization status of the management node and the at least two or more construction nodes again.