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

secretflow-serving部署时出现的empty host问题 #115

Open
ych4530 opened this issue Sep 19, 2024 · 1 comment
Open

secretflow-serving部署时出现的empty host问题 #115

ych4530 opened this issue Sep 19, 2024 · 1 comment

Comments

@ych4530
Copy link

ych4530 commented Sep 19, 2024

我根据https://www.secretflow.org.cn/zh-CN/docs/serving/0.5.0b0/topics/deployment/deployment进行部署serving,使用文档中提供的示例文件,仅由一台机器进行配置。
下面是serving.config文件,与示例相比修改了sourceSha256:
{
"id": "test_service_id",
"serverConf": {
"featureMapping": {
"v24": "x24",
"v22": "x22",
"v21": "x21",
"v25": "x25",
"v23": "x23"
},
"metricsExposerPort": 10306,
"brpcBuiltinServicePort": 10307
},
"modelConf": {
"modelId": "glm-test",
"basePath": "./data",
"sourcePath": "/root/sf_serving/data/glm-test.tar.gz",
"sourceSha256": "c6308af488bcd6c54a48a145af17aa209dec463b5cb44d83c6b58195818c10a0",
"sourceType": "ST_FILE"
},
"clusterConf": {
"selfId": "alice",
"parties": [
{
"id": "alice",
"address": "0.0.0.0:9010"
},
{
"id": "bob",
"address": "0.0.0.0:9011"
}
],
"channel_desc": {
"protocol": "baidu_std"
}
},
"featureSourceConf": {
"mockOpts": {}
}
}

下面是docker-compose.yaml文件:
version: "3.8"
services:
serving:
cap_add:
- NET_ADMIN
command:
- /root/sf_serving/secretflow_serving
- --serving_config_file=/root/sf_serving/conf/serving.config
- --logging_config_file=/root/sf_serving/conf/logging.config
- --trace_config_file=/root/sf_serving/conf/trace.config
restart: always
image: secretflow/serving-anolis8:latest
ports:
- "9012:9010"
volumes:
- ./serving.config:/root/sf_serving/conf/serving.config
- ./logging.config:/root/sf_serving/conf/logging.config
- ./trace.config:/root/sf_serving/conf/trace.config
- /home/zju/serving/glm-test.tar.gz:/root/sf_serving/data/glm-test.tar.gz

其余两个文件与示例相同,但是启动之后发现serving_serving_1容器一直在重启,检查之后发现是empty host(主机名为空?)
屏幕截图 2024-09-19 202400
这是什么问题呢?请教前辈

@BrainWH
Copy link

BrainWH commented Sep 20, 2024

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