diff --git a/doc/design/file_manager/README.md b/doc/design/file_manager/README.md index 2fe8fc28187986d724cddff52d81846eb8acffb6..2bb0af98ae2a0fea27ade5cbeb8d9dd32eac4857 100644 --- a/doc/design/file_manager/README.md +++ b/doc/design/file_manager/README.md @@ -1,6 +1,7 @@ # FileManager设计文档 ## 目标 在本文档中,我们设计说明了名为FileManager系统,方便让用户上传自己的训练数据以进行分布式训练 + 主要功能包括: - 提供常用的命令行管理命令管理文件和目录 @@ -41,13 +42,16 @@ RESTful API - `POST /api/v1/files`: Create files or directories. - `DELETE /api/v1/files`: Delete files or directories. +- /api/v1/file/chunks + - `GET /api/v1/storage/file/chunks`: Get chunks's attributes in a file. + - /api/v1/storage/files - `GET /api/v1/storage/files`: Download files or directories to local. - `POST /api/v1/storage/files`: Upload files or directories to server. - /api/v1/storage/file/chunks - - `GET /api/v1/storage/file/chunks`: Get chunks's attributes in a file. - - `POST /api/v1/storage/file/chunks`: Upload chunks to a file. + - `GET /api/v1/storage/file/chunks`: Upload chunks data. + - `POST /api/v1/storage/file/chunks`: Download chunks data. ``` ## 文件传输优化 diff --git a/doc/design/file_manager/pfs/pfsclient.md b/doc/design/file_manager/pfs/pfsclient.md index 307d6b448f0d834cead9d9b4319db94d29db8f5a..eb119689bf5bd0bb184696016bb181da0f5f87f7 100644 --- a/doc/design/file_manager/pfs/pfsclient.md +++ b/doc/design/file_manager/pfs/pfsclient.md @@ -31,7 +31,7 @@ When using a command, we need to specify path arguments. There are two path argu A `pfspath` begin with `/pfs`, eg: `/pfs/$DATACENTER/home/$USER/folder`. -[Here](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/cluster_train/data_dispatch.md#上传训练文件) is how to config DataCenter +[Here](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/cluster_train/data_dispatch.md#上传训练文件) is how to config datacenters. ## order of Path Arguments Commonly, if there are two path arguments, the first is the source, and the second is the destination.