Skip to content

Commit

Permalink
[alibaba#170] An nacos2.0 port exposure image should be added. (aliba…
Browse files Browse the repository at this point in the history
  • Loading branch information
realJackSun authored Mar 30, 2021
1 parent 174c7cf commit 1312acf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/en-us/2.0.0-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Compared with 1.X, Nacos2.0 adds gRPC communication mode, so there are 2 ports n
|9848|1000|The client gRPC requests the server port, which is used by the client to initiate a connection and request to the server|
|9849|1001|Server-side gRPC requests server-side port, used for synchronization between services, etc.|

![nacos2_port_exposure.png](/img/nacos2_port_exposure.png)

The client has the same offset logic. The users configures the main port (default 8848) as in the use of 1.X, and calculates the corresponding gRPC port (default 9848) through the same offset.

Therefore, if there is a port forwarding or firewall between the client and the server, the port forwarding configuration and firewall configuration need to be adjusted accordingly.
Expand Down
2 changes: 2 additions & 0 deletions docs/zh-cn/2.0.0-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Nacos2.0版本相比1.X新增了gRPC的通信方式,因此需要增加2个端
|9848|1000|客户端gRPC请求服务端端口,用于客户端向服务端发起连接和请求|
|9849|1001|服务端gRPC请求服务端端口,用于服务间同步等|

![nacos2_port_exposure.png](/img/nacos2_port_exposure.png)

客户端拥有相同的计算逻辑,用户如同1.X的使用方式,配置主端口(默认8848),通过相同的偏移量,计算对应gRPC端口(默认9848)。

因此如果客户端和服务端之前存在端口转发,或防火墙时,需要对端口转发配置和防火墙配置做相应的调整。
Expand Down
Binary file added img/nacos2_port_exposure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1312acf

Please sign in to comment.