A
data management method and apparatus for a distributed storage
system, and a device and a medium, which relate to the technical field of computers. The method is applied to a task tracking management module in a distributed storage
system, which comprises a cascaded switch, a plurality of leaf switches, a plurality of clients, a plurality of servers, a
metadata server and the task tracking management module, wherein all the leaf switches are connected to the cascaded switch, each leaf switch is connected to the plurality of clients and the plurality of servers, the
metadata server is connected to one of the leaf switches, and the task tracking management module is connected to one of the leaf switches. The method comprises: upon receiving a target task, determining a target
server where data corresponding to the target task is located (S101); and determining candidate clients which are connected to the same leaf switch as the target server, and selecting, from among the candidate clients, a target
client for executing the target task, so as to use the target
client to execute the target task (S102). Therefore, the performance of a blocking network is improved.