This application discloses a file uploading method, which is applied to the file receiving node of the distributed storage system to obtain the file to be uploaded; in the distributed storage system, the node with high performance score is selected as the uploading node; and the file to be uploaded is transferred to the uploading node so that the uploading node can transfer the file to the target storage node. The application also discloses a file uploading system, device and computer readable storage medium. After the file receiving node acquires the file to be uploaded, it directly selects the node with high performance score as the uploading node in the distributed storage system, and transfers the file to be uploaded to the uploading node. Compared with the existing technology, it is not necessary to transfer the file to the preset server, that is, to upload the file to be uploaded. There is no need to transfer files to be uploaded with the help of servers, so there is no need to store files to temporary cache, which saves the time for additional caching of files to be uploaded and improves the transmission rate.
【技术实现步骤摘要】
一种文件上传方法、系统、装置及计算机可读存储介质
本申请涉及分布式存储
,更具体地说,涉及一种文件上传方法、系统、装置及计算机可读存储介质。
技术介绍
在分布式存储中,当分布式存储系统接收上传文件时,现有的一种方法是:分布式存储系统的文件接收节点接收待上传文件,将待上传文件传输至预先设置的服务器中,服务器将待上传文件存储至临时缓存,并发送存储任务至存储节点,以使存储节点从临时缓存中获取数据并存储。然而,现有的一种文件上传方法中,待上传数据需先存储至临时缓存中,使得整体的文件上传速度较慢。综上所述,如何提高分布式存储系统中文件上传速度是目前本领域技术人员亟待解决的问题。
技术实现思路
本申请的目的是提供一种文件上传方法,其能在一定程度上解决如何提高分布式存储系统中文件上传速度的技术问题。本申请还提供了一种文件上传系统、装置及计算机可读存储介质。为了实现上述目的,本申请提供一种文件上传方法,应用于分布式存储系统的文件接收节点中,包括:获取待上传文件;在所述分布式存储系统中,选取性能评分高的存储节点作为上传节点;传输所述待上传文件至所述上传节点,以使所述上传节点传输所 ...
【技术保护点】
1.一种文件上传方法,其特征在于,应用于分布式存储系统的文件接收节点中,包括:获取待上传文件;在所述分布式存储系统中,选取性能评分高的节点作为上传节点;传输所述待上传文件至所述上传节点,以使所述上传节点传输所述待上传文件至目标存储节点。
【技术特征摘要】
1.一种文件上传方法,其特征在于,应用于分布式存储系统的文件接收节点中,包括:获取待上传文件;在所述分布式存储系统中,选取性能评分高的节点作为上传节点;传输所述待上传文件至所述上传节点,以使所述上传节点传输所述待上传文件至目标存储节点。2.根据权利要求1所述的方法,其特征在于,所述在所述分布式存储系统中,选取性能评分高的节点作为上传节点,包括:在所述分布式存储系统中,选取性能评分高的存储节点作为所述上传节点。3.根据权利要求2所述的方法,其特征在于,所述在所述分布式存储系统中,选取性能评分高的存储节点作为上传节点,包括:在所述分布式存储系统中,选取网络性能评分高的存储节点作为所述上传节点,其中,所述网络性能评分与所述网络性能正相关。4.根据权利要求2所述的方法,其特征在于,所述在所述分布式存储系统中,选取性能评分高的存储节点作为上传节点,包括:在所述分布式存储系统中,选取空间容量评分高的存储节点作为所述上传节点,其中,所述空间容量评分与所述空间容量的大小正相关。5.根据权利要求2所述的方法,其特征在于,所述在所述分布式存储系统中,选取性能评分高的存储节点作为上传节点,包括:在所述分布式存储系统中,选取数据传输评分高的存储节点作为所述上传节点,其中,所述数据传输评分与所述数据传输的速率正相关。6.根据权利要求2所述的方法,其特征在于,所述在所述分布式存储系统中,选取性能评分高的存储节点作为上传节点,包括:在所述分布式存储系统中,选取第一预设数量的性能评分高的存储节点作为所述上传节点。7.根据权利要求1至6任一项所述的方法,其特征在于...
【专利技术属性】
技术研发人员:潘琳,
申请(专利权)人:深圳市网心科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。