Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用docker安装fate后,如何部署后端flow呢,哪里有具体的参考文档呢 #5730

Open
Net-defense opened this issue Oct 26, 2024 · 9 comments

Comments

@Net-defense
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@Net-defense Net-defense changed the title 使用docker安装fate 使用docker安装fate后,如何部署后端flow呢,哪里有具体的参考文档呢 Oct 26, 2024
@Net-defense
Copy link
Author

fate是在docker上装的(其他的方法试过了,都行不通),后端flow的文档显示是拿pypl装的,是不是说明前端board在docker上控制,而flow在pypl装的fate_env中控制的呢?

@Net-defense
Copy link
Author

请教个问题 使用docker部署fate,跟着官网的步骤部署,可以访问到前端端board,但是后端flow不知怎么处理,官网文档是用pypl装的,两个都下载好了,不知道怎么进行交互?flow的接口也不知道怎么测试?那postman可以测试后端flow接口嘛?

@yx0090sh
Copy link

用的是docker-compose 部署的么,或者用的是standalone_fate_docker_image_{version}?
docker-compose 部署文档参考 https://github.com/FederatedAI/KubeFATE/blob/dev-2.2.0/docker-deploy/README_zh.md
standalone_fate_docker_image_{version} 参考 https://github.com/FederatedAI/FATE/blob/master/deploy/standalone-deploy/README.zh.md

另外使用部署包进行部署的,都是完整的服务,有board,就会有flow的

@Net-defense
Copy link
Author

用的是docker-compose 部署的么,或者用的是standalone_fate_docker_image_{version}? docker-compose 部署文档参考 https://github.com/FederatedAI/KubeFATE/blob/dev-2.2.0/docker-deploy/README_zh.md standalone_fate_docker_image_{version} 参考 https://github.com/FederatedAI/FATE/blob/master/deploy/standalone-deploy/README.zh.md

另外使用部署包进行部署的,都是完整的服务,有board,就会有flow的

docker-compose 部署了一个,测试样例可以过,浏览器也能访问前端board,但是后端flow用postman怎么测试(9380端口 怎么拼接URL)都是404
docker装了一个standalone_fate_docker_image_2.2.0,在拉取公共镜像时出现超时或无此镜像等问题,通过镜像包安装后,跟着文档后可以跑通测试项,浏览器也能访问前端board,但是后端flow无法进行测试,使用postman对9380端口进行测试显示 无法发送请求,9360和9370端口也试过了,都无法发送请求
总之,后端flow的问题依然没有解决

@yx0090sh
Copy link

yx0090sh commented Nov 1, 2024

能跑通测试项,flow的部署就没有问题, 你需要flow具体做些什么内容呢

@Net-defense
Copy link
Author

能跑通测试项,flow的部署就没有问题, 你需要flow具体做些什么内容呢
利用flow上传自己的数据,然后训练,返回训练好的数据并下载

@yx0090sh
Copy link

yx0090sh commented Nov 1, 2024

https://github.com/FederatedAI/FATE/blob/master/doc/2.0/fate/quick_start.md
参考3,4,5 上传数据,训练,预测

@Net-defense
Copy link
Author

https://github.com/FederatedAI/FATE/blob/master/doc/2.0/fate/quick_start.md 参考3,4,5 上传数据,训练,预测

如果我想用flow做后端,配合我自己写的前端,来实现上传数据,训练,预测。我的后端该怎么处理呢?可以使用postman来测试后端接口吗?我试过了各种版本和安装方法都没有测通flow的接口

@yx0090sh
Copy link

yx0090sh commented Nov 4, 2024

以2.2.0为例
上传数据接口: 192.168.0.2:/component/upload
训练接口: 192.168.0.2:/submit
详情看 https://github.com/FederatedAI/FATE-Flow/tree/main/python/fate_flow/apps/client
flow流程需要用的接口大都在这

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants