The invention provides a distributed
system load balancing test method and device based on load difference degree guidance. The method comprises the steps that multi-dimensional input is converted into a one-dimensional initial input operation sequence; wherein the multi-dimensional input comprises one or a combination of more of a working load, a load configuration and a node fault; generating an initial
test case according to the initial input operation sequence, and mutating the selected initial
test case to obtain a new
test case; wherein the initial test case is stored in a seed
pool; controlling the distributed
system to operate the new test case, and calculating the load difference degree of each pair of nodes in the distributed
system according to the load data of the nodes in the distributed system during operation; and determining a target test case according to the load difference degree, and storing the target test case in a seed
pool to guide next fuzzy test iteration. According to the method, three-dimensional input of user requests,
system configuration changes, system fault conditions and the like which influence a load balancing mechanism is modeled into a standard one-dimensional input sequence, so that subsequent fuzzy testing is facilitated, and the testing efficiency is improved; meanwhile, the load difference degree between the distributed nodes is used as guide feedback to optimize the input space, high-quality test cases can be continuously generated, load imbalance between the nodes in the distributed system is revealed to the maximum extent, developers can be helped to more effectively recognize and solve potential performance bottlenecks, and the
test efficiency is improved. The test coverage rate is improved, and the overall stability and response speed of the system are also improved.