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

基于中心化部署两个engine之间是否需要网络互通? #438

Closed
llsydn opened this issue Jan 14, 2025 · 7 comments
Closed

基于中心化部署两个engine之间是否需要网络互通? #438

llsydn opened this issue Jan 14, 2025 · 7 comments

Comments

@llsydn
Copy link

llsydn commented Jan 14, 2025

Issue Type

Feature

Have you searched for existing issues?

Yes

Link to Relevant Documentation

No response

Question Details

基于中心化部署,SCDBServer 和 各节点的 SCQLEngines 网络是可以互通,这个没有问题。
但是各节点SCQLEngines 之间也需要网络互通嘛?

目前一般情况下,SCDBServer 和 各节点的 SCQLEngines 网络是可以互通; 但各节点SCQLEngines 之间网络不一定能互通
@llsydn
Copy link
Author

llsydn commented Jan 14, 2025

1736821212973

@Chrisdehe
Copy link
Member

@llsydn scql engine间是需要网络互通的
Scdb只做调度,不参与mpc计算;engine之间需要建立连接执行mpc计算。

@llsydn
Copy link
Author

llsydn commented Jan 16, 2025

@llsydn scql engine间是需要网络互通的 Scdb只做调度,不参与mpc计算;engine之间需要建立连接执行mpc计算。

这里有个问题,如果在正式环境下面,两个engine之间网络是不通的情况下,那我这里可以修改users表的eng_endpoints的值,先将请求发送的scdb,再由scdb进行调度,代理请求,再发送到对应的engine嘛?

@jingshi-ant
Copy link
Collaborator

理论上通过第三方服务去路由网络应该是可行的,从engine的角度看,它们之间只需要可以互相通信的url即可。

@llsydn
Copy link
Author

llsydn commented Jan 16, 2025

理论上通过第三方服务去路由网络应该是可行的,从engine的角度看,它们之间只需要可以互相通信的url即可。

但两个engine之间的通信,默认不是通过grpc的嘛?这个可以改成http嘛?

@Chrisdehe
Copy link
Member

可以,参考#361

@llsydn
Copy link
Author

llsydn commented Jan 16, 2025

可以,参考#361

嗯嗯,可以,加了下面配置,好像正常

配置engine之间使用http协议
--peer_engine_protocol=http:proto
--peer_engine_connection_type=pooled

@llsydn llsydn closed this as completed Jan 17, 2025
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

3 participants