Abstract:Swarm is a management tool for cluster Docker image and containers, and it may get a number of identical weights nodes in the calculation of weights. The existing Swarm scheduling strategy is just a random allocation of these nodes. Because the resources load of the same weight nodes are different, this will cause the load imbalance of the nodes. To solve this problem, this study proposes a dynamic scheduling algorithm to optimize the Swarm scheduling strategy. Through the experiment, it is proved that the dynamic scheduling algorithm can make the node load more balanced in the cluster, and improve the overall resource utilization of the cluster.