Skip to content

Commit

Permalink
Merge pull request #120 from FederatedAI/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dylan-fan authored Sep 22, 2021
2 parents 18eed57 + 3e4ad4e commit 21de6ae
Show file tree
Hide file tree
Showing 36 changed files with 835 additions and 11,211 deletions.
20 changes: 10 additions & 10 deletions document/docs/example/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
```yml
xxxxxxxxxx
server.port=8059
zk.url=172.168.0.1:2181,172.168.0.2:2181,172.168.0.3:2181
zk.url=192.168.0.1:2181,192.168.0.2:2181,192.168.0.3:2181
proxy.grpc.intra.port=8879
proxy.grpc.inter.port=9370
```
Expand All @@ -21,7 +21,7 @@ xxxxxxxxxx
"default": {
"default": [
{
"ip": "172.134.0.1",
"ip": "192.134.0.1",
"port": 9370
}
]
Expand All @@ -37,14 +37,14 @@ xxxxxxxxxx
```yml
xxxxxxxxxx
port=8000
model.transfer.url=http://172.168.0.2:9380/v1/model/transfer //FATE flow地址
zk.url=172.168.0.1:2181,172.168.0.2:2181,172.168.0.3:2181
model.transfer.url=http://192.168.0.2:9380/v1/model/transfer //FATE flow地址
zk.url=192.168.0.1:2181,192.168.0.2:2181,192.168.0.3:2181
```
• guest 的 serving-admin配置
```yml
xxxxxxxxxx
server.port=8350
zk.url=172.168.0.1:2181,172.168.0.2:2181,172.168.0.2:2181
zk.url=192.168.0.1:2181,192.168.0.2:2181,192.168.0.2:2181
admin.username=admin
admin.password=admin

Expand All @@ -55,7 +55,7 @@ admin.password=admin
```yml
xxxxxxxxxx
server.port=8059
zk.url=172.134.0.1:2181,172.134.0.2:2181,172.134.0.3:2181
zk.url=192.134.0.1:2181,192.134.0.2:2181,192.134.0.3:2181
proxy.grpc.intra.port=8879
proxy.grpc.inter.port=9370
```
Expand All @@ -66,7 +66,7 @@ xxxxxxxxxx
"route_table": {
"default": {
"default": [{
"ip": "172.134.0.2",
"ip": "192.134.0.2",
"port": 8000
}]
}
Expand All @@ -82,8 +82,8 @@ xxxxxxxxxx
```yml
xxxxxxxxxx
port=8000
model.transfer.url=http://172.134.0.1:9380/v1/model/transfer
zk.url=172.134.0.1:2181,172.134.0.2:2181,172.134.0.3:2181
model.transfer.url=http://192.134.0.1:9380/v1/model/transfer
zk.url=192.134.0.1:2181,192.134.0.2:2181,192.134.0.3:2181
feature.single.adaptor=com.webank.ai.fate.serving.adaptor.dataaccess.MockAdapter
feature.batch.adaptor=com.webank.ai.fate.serving.adaptor.dataaccess.MockBatchAdapter
```
Expand All @@ -92,7 +92,7 @@ feature.batch.adaptor=com.webank.ai.fate.serving.adaptor.dataaccess.MockBatchAda
```yml
xxxxxxxxxx
server.port=8350
zk.url=172.134.0.1:2181,172.134.0.2:2181,172.134.0.3:2181
zk.url=192.134.0.1:2181,192.134.0.2:2181,192.134.0.3:2181
admin.username=admin
admin.password=admin

Expand Down
Binary file modified document/docs/img/Deploy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified document/docs/img/admin-model.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-batchInference.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-clear.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-connect.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-exit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-flow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-health.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-help.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-inference.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-jvm.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-showconfig.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-showmodel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/client-zk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed document/docs/img/client_connect.jpg
Binary file not shown.
Binary file removed document/docs/img/client_showconfig.jpg
Binary file not shown.
Binary file removed document/docs/img/client_showmodel.jpg
Binary file not shown.
Binary file modified document/docs/img/gen-route.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified document/docs/img/health-check.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified document/docs/img/inference-single-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified document/docs/img/model_sync.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added document/docs/img/service.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified document/docs/img/weight.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
203 changes: 203 additions & 0 deletions document/docs/inference/errorCode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@

错误码目前为4位,码的最高位:1代表guest ,2代表host
>表格中只列出了低三位错误码
#### serving-proxy
<table>
<tr>
<td>错误码低三位</td>
<td>描述</td>
</tr>
<tr>
<td>0</td>
<td>成功</td>
</tr>
<tr>
<td>600</td>
<td>参数解析错误</td>
</tr>
<tr>
<td>602</td>
<td>Adaptor 特征错误</td>
</tr>
<tr>
<td>604</td>
<td>模型不存在</td>
</tr>
<tr>
<td>605</td>
<td>网络错误</td>
</tr>
<tr>
<td>606</td>
<td>路由错误</td>
</tr>
<tr>
<td>607</td>
<td>加载模型失败</td>
</tr>
<tr>
<td>608</td>
<td>合并预测结果失败</td>
</tr>
<tr>
<td>609</td>
<td>绑定模型失败</td>
</tr>
<tr>
<td>610</td>
<td>系统错误</td>
</tr>
<tr>
<td>611</td>
<td>服务已关闭</td>
</tr>
<tr>
<td>613</td>
<td>特征不存在</td>
</tr>
<tr>
<td>616</td>
<td>Adaptor 返回失败</td>
</tr>
<tr>
<td>620</td>
<td>请求参数错误</td>
</tr>
<tr>
<td>621</td>
<td>鉴权失败</td>
</tr>
<tr>
<td>622</td>
<td>未找到服务</td>
</tr>
<tr>
<td>623</td>
<td>模型初始化失败</td>
</tr>
<tr>
<td>624</td>
<td>请求负载错误</td>
</tr>
<tr>
<td>625</td>
<td>不支持的指令</td>
</tr>
<tr>
<td>626</td>
<td>取消注册错误</td>
</tr>
<tr>
<td>627</td>
<td>无效的口令</td>
</tr>
<tr>
<td>628</td>
<td>serving-proxy路由错误</td>
</tr>
<tr>
<td>629</td>
<td>serving-proxy鉴权失败</td>
</tr>
</table>


#### serving-server
<table>
<tr>
<td>错误码低三位</td>
<td>描述</td>
</tr>
<tr>
<td>0</td>
<td>成功</td>
</tr>
<tr>
<td>100</td>
<td>参数解析错误</td>
</tr>
<tr>
<td>102</td>
<td>Adaptor 特征错误</td>
</tr>
<tr>
<td>104</td>
<td>模型不存在</td>
</tr>
<tr>
<td>105</td>
<td>网络错误</td>
</tr>
<tr>
<td>106</td>
<td>路由错误</td>
</tr>
<tr>
<td>107</td>
<td>加载模型失败</td>
</tr>
<tr>
<td>108</td>
<td>合并预测结果失败</td>
</tr>
<tr>
<td>109</td>
<td>绑定模型失败</td>
</tr>
<tr>
<td>110</td>
<td>系统错误</td>
</tr>
<tr>
<td>111</td>
<td>服务已关闭</td>
</tr>
<tr>
<td>113</td>
<td>特征不存在</td>
</tr>
<tr>
<td>116</td>
<td>Adaptor 返回失败</td>
</tr>
<tr>
<td>120</td>
<td>请求参数错误</td>
</tr>
<tr>
<td>121</td>
<td>鉴权失败</td>
</tr>
<tr>
<td>122</td>
<td>未找到服务</td>
</tr>
<tr>
<td>123</td>
<td>模型初始化失败</td>
</tr>
<tr>
<td>124</td>
<td>请求负载错误</td>
</tr>
<tr>
<td>125</td>
<td>不支持的指令</td>
</tr>
<tr>
<td>126</td>
<td>取消注册错误</td>
</tr>
<tr>
<td>127</td>
<td>无效的口令</td>
</tr>
<tr>
<td>128</td>
<td>serving-proxy路由错误</td>
</tr>
<tr>
<td>129</td>
<td>serving-proxy鉴权失败</td>
</tr>
</table>
Loading

0 comments on commit 21de6ae

Please sign in to comment.