Patent ID: 11861341
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 0:
1. A node selection method, comprising:
receiving a request message to request to provide an installation package of a product required by a user, wherein the request message includes product information that uniquely identifies the product required by the user;
searching, in a node state table for a target node based on the product information, wherein the node state table comprises at least one correspondence, each correspondence representing a relationship between one node and one piece of product information, and a state of each node in the node state table is idle; and
sending the request message to the target node, so that the target node builds a corresponding product installation package for the product required by the user;
wherein before the receiving the request message, the method further comprises:
receiving a configuration parameter entered by the user, wherein the configuration parameter is used to configure at least one build environment required when the user expects to build the product,
generating at least one piece of build environment code based on the configuration parameter, and running each piece of the build environment code to obtain an image file corresponding to the piece of build environment code,
generating at least one node based on the image file, wherein each node serves a build environment corresponding to one image file, and generating a unique product name and a unique version number in the build environment,
establishing the at least one correspondence based on each node, and the unique product name and the unique version number generated by the each node in the build environment, and
generating the node state table based on the at least one correspondence and the state of each node.