|
|
@@ -317,15 +317,32 @@ rpc.mode = async
|
|
|
## NOTE: RPC batch won't work when rpc.mode = sync
|
|
|
rpc.async_batch_size = 256
|
|
|
|
|
|
+## RPC port discovery
|
|
|
+##
|
|
|
+## The strategy for discovering the RPC listening port of other nodes.
|
|
|
+##
|
|
|
+## Value: Enum
|
|
|
+## - manual: discover ports by `tcp_server_port` and `tcp_client_port`.
|
|
|
+## - stateless: discover ports in a stateless manner.
|
|
|
+## If node name is `emqx<N>@127.0.0.1`, where the `<N>` is an integer,
|
|
|
+## then the listening port will be `5370 + <N>`
|
|
|
+##
|
|
|
+## Defaults to `stateless`.
|
|
|
+rpc.port_discovery = stateless
|
|
|
+
|
|
|
## TCP server port for RPC.
|
|
|
##
|
|
|
+## Only takes effect when `rpc.port_discovery` = `manual`.
|
|
|
+##
|
|
|
## Value: Port [1024-65535]
|
|
|
-rpc.tcp_server_port = 5369
|
|
|
+#rpc.tcp_server_port = 5369
|
|
|
|
|
|
## TCP port for outgoing RPC connections.
|
|
|
##
|
|
|
+## Only takes effect when `rpc.port_discovery` = `manual`.
|
|
|
+##
|
|
|
## Value: Port [1024-65535]
|
|
|
-rpc.tcp_client_port = 5369
|
|
|
+#rpc.tcp_client_port = 5369
|
|
|
|
|
|
## Number of outgoing RPC connections.
|
|
|
##
|