A resource scheduling method comprising: sending (201; 501; 601), by a first cluster instance of a distributed file system cluster, to a second cluster instance of said distributed file system cluster a resource borrowing request in response to determining that available resources owned by the first cluster instance is less than a threshold; receiving (202; 502; 603) borrowable resources information returned by the second cluster instance, the borrowable resources information representing borrowable data server resources in the second cluster instance, wherein the borrowable data server resources comprise storage capacity resources; acquiring (203; 503; 604), by the first cluster instance, the borrowable data server resources for data processing; and characterized in that the resource borrowing request comprises a service priority corresponding to the first cluster instance and expected resources information; the service priority is used to enable the second cluster instance to determine, according to the service priority, whether to respond to the resource borrowing request of the first cluster instance when a resource borrowing request sent by another cluster instance is simultaneously received by the second cluster instance, wherein the second cluster instance determines to respond to the resource borrowing request with the highest service priority according to the service priority carried in each resource borrowing request; and the expected resources information is used to enable the second cluster instance to determine the borrowable resources information conforming to the expected resources information. sending (201; 501; 601), by a first cluster instance of a distributed file system cluster, to a second cluster instance of said distributed file system cluster a resource borrowing request in response to determining that available resources owned by the first cluster instance is less than a threshold; receiving (202; 502; 603) borrowable resources information returned by the second cluster instance, the borrowable resources information representing borrowable data server resources in the second cluster instance, wherein the borrowable data server resources comprise storage capacity resources; acquiring (203; 503; 604), by the first cluster instance, the borrowable data server resources for data processing; and characterized in that the resource borrowing request comprises a service priority corresponding to the first cluster instance and expected resources information; the service priority is used to enable the second cluster instance to determine, according to the service priority, whether to respond to the resource borrowing request of the first cluster instance when a resource borrowing request sent by another cluster instance is simultaneously received by the second cluster instance, wherein the second cluster instance determines to respond to the resource borrowing request with the highest service priority according to the service priority carried in each resource borrowing request; and the expected resources information is used to enable the second cluster instance to determine the borrowable resources information conforming to the expected resources information. <EOS>