The invention relates to a master selection method based on multiple computing devices, which comprises the following steps: S1, when a server is powered on, acquiring topological structure information {G1, G2,... GN} of the computing devices, if G1, G2,... GN are sequentially connected to form a linear topological structure, executing the step S2, generating a request data packet Ri by each Gi, the Ri comprising id of the Gi, and sequentially transmitting the Ri to G1 from Gi-1 along a first direction of the linear topological structure by the Gi, the Gi sequentially transmits the Ri to the GN from the Gi + 1 along the second direction of the linear topological structure; after the Gj receives the Ri, a reply data packet Qij is generated, the Qij comprises the id of the Gj and a target parameter of the Gj, and the Gj transmits the Qij to the Gi along a linear structure; and S3, obtaining the number Mi1 of the Qij received by the Ri sent along the first direction of the linear topological structure and the number Mi2 of the Qij received by the Ri sent along the second direction of the linear topological structure, and if Mi1 = Mi2, or Mi1 + 1 = Mi2, determining the Gi as master. According to the invention, the information interaction efficiency among a plurality of computing devices is improved.