Skip to content

Commit 0078e24

Browse files
Merge pull request #128 from FederatedAI/develop
Develop
2 parents 393e558 + ae5ddd4 commit 0078e24

File tree

25 files changed

+80
-83
lines changed

25 files changed

+80
-83
lines changed

RELEASE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Release 2.1.1
2+
## Major Features and Improvements
3+
* Fix the bug that the serving-server service fails to start when zookeeper is not used as the service registration and coordination center.
4+
15
# Release 2.1.0
26
## Major Features and Improvements
37
* Support multi-host algorithm model online prediction,currently, the supported multi-host algorithms include HeteroLR and HeteroSecureBoost.

document/docs/config/proxy.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -125,45 +125,43 @@
125125
```yaml
126126
{
127127
"route_table": {
128-
"default": {
128+
"default": { // 使用此处的default配置就能向对方发送请求,能满足大部分需求。
129129
"default": [
130-
// 此处用于配置serving-proxy默认对外转发地址,
131-
// 切记不能配置成serving-proxy自己的ip端口,会形成回环
132-
{
133-
"ip": "127.0.0.1",
134-
"port": 9999
130+
{ // 此处用于配置serving-proxy默认对外转发地址, 切记不能配置成serving-proxy自己的ip端口,会形成回环
131+
"ip": "192.168.1.1",
132+
"port": 8869
135133
}
136134
]
137135
},
138-
// 向对方发送请求使用上面的default配置就能满足大部分需求。
139-
// 以下是路由中己方部分说明:
136+
137+
// 以下是路由中己方部分的配置说明:
138+
(提示:如果使用zk的话,己方的配置其实是可以省略的,因为路由信息在服务启动的时候全注册到zk了,系统会在zk上拿到想要的信息;
139+
如果部署时候选择的是无zk方案,那么下面的配置不能缺少)
140140

141141
//己方的serving-proxy 在收到grpc unaryCall接口的请求后,会根据请求中的目的partyId尝试匹配。
142-
比如请求中目的partId为10000,则会在路由表中查找是否存在10000的配置
143-
//此处的10000表示目的partId 为10000时的路由,匹配到10000之后,再根据请求中的角色信息role。
144-
比如请求中role 为serving则会继续匹配下面是否有serving的配置
142+
比如请求中目的partId为10000,则会在路由表中查找是否存在10000的配置
143+
//此处的10000表示目的partId 为10000时的路由,匹配到10000之后再根据请求中的角色信息role,
144+
比如请求role为serving,则会继续往下面匹配serving的配置
145145
"10000": {
146-
// 在未找到对应role的路由地址时,会使用default的配置
147-
"default": [
146+
"default": [ //可以给出一个默认值, 在未找到对应role的路由地址时,会使用default的配置
148147
{
149148
"ip": "127.0.0.1",
150-
"port": 8889
149+
"port": 8879
151150
}
152151
],
153152
"serving": [
154-
// 当已经匹配到role为serving,则代表请求为发给serving-server的请求,这时检查是否启用了ZK为注册中心,
155-
如果已启用ZK则优先从ZK中获取目标地址,未找到时使用以下地址
153+
// 当匹配到role为serving,则代表请求为发给serving-server的请求,这时检查是否启用了ZK为注册中心,
154+
如果启用ZK则优先从ZK中获取目标地址,未找到时使用以下地址
156155

157-
{ // 此处配置己端对应serving服务地址列表,ip和port对应serving-server所启动的grpc服务地址
156+
{ // 此处配置己端对应serving服务地址列表,ip和port对应serving-server所启动的grpc服务地址
158157
"ip": "127.0.0.1",
159-
"port": 8080
158+
"port": 8000
160159
}
161160
]
162161
}
163162
},
164-
// 此处配置当前路由表规则开启/关闭
165163
"permission": {
166-
"default_allow": true
164+
"default_allow": true // 此处配置当前路由表规则开启/关闭
167165
}
168166
}
169167
```
@@ -181,9 +179,8 @@
181179
},
182180
......
183181
},
184-
// 此处配置当前路由表规则开启/关闭
185182
"permission": {
186-
"default_allow": true
183+
"default_allow": true // 此处配置当前路由表规则开启/关闭
187184
}
188185
}
189186

document/docs/config/security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ proxy.grpc.inter.client.privateKey.file=/data/projects/fate-serving/serving-prox
5858
"port": 9999,
5959
"useSSL": true # 配置对外节点时,需要将useSSL配置成true,client端请求时将携带证书
6060
"negotiationType": "TLS",
61-
"certChainFile": "/data/projects/fate-serving/serving-proxy/conf/ssl/server.crt ",
62-
"privateKeyFile": "/data/projects/fate-serving/serving-proxy/conf/ssl/server.pem",
61+
"certChainFile": "/data/projects/fate-serving/serving-proxy/conf/ssl/client.crt ",
62+
"privateKeyFile": "/data/projects/fate-serving/serving-proxy/conf/ssl/client.pem",
6363
"caFile": "/data/projects/fate-serving/serving-proxy/conf/ssl/ca.crt"
6464
}
6565
]

document/docs/config/server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@
149149
</tr>
150150
<tr>
151151
<td>proxy</td>
152-
<td>离线路由proxy地址,建议通过zookeeper来获取地址,不建议直接配置</td>
153-
<td>127.0.0.1:8000</td>
152+
<td>proxy服务的地址,建议通过启用zookeeper自动获取地址,当不启用zk时需要直接在此处配置</td>
153+
<td>127.0.0.1:8879</td>
154154
</tr>
155155
<tr>
156156
<td>zk.url</td>

document/docs/quickstart/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ $ mvn clean package
1515
随后拷贝,比如 serving-server/target/fate-serving-server-{version}-release.zip 到想要部署的路径下,并解压。(version为当前版本号)
1616

1717
用户也可选择下载已编译好的版本,链接如下:
18-
[fate-serving-server-2.1.0-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-server-2.1.0-release.zip)
19-
[fate-serving-proxy-2.1.0-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-proxy-2.1.0-release.zip)
20-
[fate-serving-admin-2.1.0-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-admin-2.1.0-release.zip)
18+
[fate-serving-server-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-server-2.1.1-release.zip)
19+
[fate-serving-proxy-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-proxy-2.1.1-release.zip)
20+
[fate-serving-admin-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-admin-2.1.1-release.zip)
2121

2222

2323
### zookeeper部署

document/docs/release/change_log.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
## FATE-SERVING 2.1 新增特性
1+
## FATE-SERVING 2.1.1
2+
```text
3+
1.修复不使用zookeeper作为服务注册和协调中心的情况下,serving-server服务启动失败的BUG。
4+
```
5+
6+
## FATE-SERVING 2.1.0 新增特性
27
```text
38
1.支持多host算法模型在线预测,目前支持的多host算法有:纵向LR、纵向SBT。
49
2.支持在admin页面以pipeline方式展示模型信息。
@@ -11,7 +16,7 @@
1116
9.新增一个通用的httpAdaptor用于host获取特征。
1217
```
1318

14-
## FATE-SERVING 2.0 新增特性
19+
## FATE-SERVING 2.0.0 新增特性
1520

1621
```text
1722
1.单笔预测,2.0.*版本guest方与host方将并行计算,从而降低了耗时。

document/docs/service/client.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FATE-Serving提供了fate-serving-client工具
22
### 下载对应版本的fate-serving-client
3-
>linux版本:[fate-serving-client-2.1.0-linux.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.0-linux.tar.gz )
4-
>mac版本:[fate-serving-client-2.1.0-darwin.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.0-darwin.tar.gz)
3+
>linux版本:[fate-serving-client-2.1.1-linux.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.1-linux.tar.gz )
4+
>mac版本:[fate-serving-client-2.1.1-darwin.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.1-darwin.tar.gz)
55
6-
需要先确认下载解压出来的文件有没有可执行权限,没有权限就执行 `chmod +777 fate-serving-client-2.1.0-linux`授权。
6+
需要先确认下载解压出来的文件有没有可执行权限,没有权限就执行 `chmod +777 fate-serving-client-2.1.1-linux`授权。
77

88
### 启动client
9-
在终端中使用`./fate-serving-client`启动client
9+
在终端中使用`./fate-serving-client-2.1.1-linux`启动client
1010
![connect](../img/client-connect.jpg)
1111

1212
### 提供了以下几种指令

fate-serving-admin-ui/package.json

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FATE-Serving",
3-
"version": "2.0.0",
3+
"version": "2.1.1",
44
"private": true,
55
"author": "FATE Serving",
66
"scripts": {

fate-serving-admin-ui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>fate-serving</artifactId>
2323
<groupId>com.webank.ai.fate</groupId>
24-
<version>2.1.0</version>
24+
<version>${fate.version}</version>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>
2727

fate-serving-admin/bin/service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ basepath=$(cd `dirname $0`;pwd)
2424
configpath=$(cd $basepath/conf;pwd)
2525
module=serving-admin
2626
main_class=com.webank.ai.fate.serving.admin.Bootstrap
27-
module_version=2.1.0
27+
module_version=2.1.1
2828

2929
case "$1" in
3030
start)

0 commit comments

Comments
 (0)