Disclosed are a method for setting a file access path for a distributed file system based on a Torus network and an apparatus therefor. A method of setting a file access path according to an embodiment of the present invention includes the steps of obtaining layout information on a file to be accessed by a client; Searching for a target data server among a plurality of data servers based on layout information, and determining a file access pattern based on a file access location and size; And considering the file access pattern and the bandwidth utilization rate of the network address located on the shortest path for accessing the target data server, setting one of the shortest path and the secondary path one hop more than the shortest path as an access path. Include.
展开▼