Scenario Description:
The main node is located in Beijing, while the rendering nodes are distributed in Beijing, Guangzhou, and Inner Mongolia.
Overview of Network Structures:
Beijing Network Structure: The main node and rendering nodes are in the same LAN, with a router external IP.
Guangzhou Network Structure: Each rendering node has an external IP.
Inner Mongolia Network Structure: The rendering nodes are in the same LAN, with a router external IP.
Beijing Main Node LarkXR Deployment Configuration Requirements:
Follow the Cluster Intranet (Windows) Deployment Guide or Cluster Intranet (Linux Docker) Deployment Guide to deploy the main node program package.
Configure using the proxy mode: Refer to Cluster External Network (Windows) Using Proxy Mode or Cluster External Network (Linux Docker) Using Proxy Mode, and follow step one for settings.
When using local storage applications (system defaults to local storage), the edge nodes need to pull data from the main node, so an externally accessible data pull application interface address needs to be configured. In the
application.properties
file in the deployment directory, configurepxy.end-point={{http://external-address:8181}}
as shown in the image below:
Beijing Main Node Network Port Configuration Requirements: Port mapping needs to be done on the router.
Type | Port Number | Purpose | Modification Method |
---|---|---|---|
TCP | 8181 | Frontend page nginx forwarding and backend interface | [Modify port 8181]( https://www.pingxingyun.com/question/detail?topicId=10078&categoryId=2 Please refer to) |
TCP | 8182 | Backend page nginx forwarding | [Modify port 8182]( https://www.pingxingyun.com/question/detail?topicId=10114&categoryId=2 Please refer to) |
Beijing Rendering Node LarkXR Deployment Configuration Requirements:
Refer to the Cluster Intranet (Windows) Deployment Guide or Cluster Intranet (Linux Docker) Deployment Guide to deploy the rendering node program package.
Double-click to open
LarkXRLauncher.exe
, click on "Configure Rendering Node":Set the "Management Server Address" to the intranet address.
Set the "Local IP" to the intranet IP.
Set the "Preferred Public IP" to the external IP (e.g., 112.6.266.11). Example image below:
- When there is a mismatch in the mapping of audio and video ports, it is necessary to modify the audio and video ports. Please refer to the modification method.
Beijing Rendering Node Network Port Configuration Requirements: Port mapping needs to be done on the router.
Node | Type | Port Number | Purpose |
---|---|---|---|
RenderNode 1 | UDP | 10011-10020 | * * Required * *, audio and video port, where one port represents one concurrent port |
RenderNode 2 | UDP | 10021-10040 | * * Required * *, audio and video port, where one port represents one concurrent port |
Rendering node 3 | UDP | 10041-10060 | * * must * *, audio and video port, one port represents one concurrent |
Guangzhou Rendering Node Deployment Configuration Requirements:
Set the "Management Server Address" to the external network address.
Set the "Local IP" to the external IP.
Set the "Preferred Public IP" to the external IP (e.g., 122.6.266.1). Example image below:
Guangzhou Rendering Node Network Port Configuration Requirements: Each node needs to have port forwarding set up.
Type | Port Number | Purpose | Replacement |
---|---|---|---|
TCP | 10002 | * * Required * *, Websocket communication port | Modify 10002 port |
UDP | 10011-10040 | * * Required * *, audio and video port, where one port represents one concurrency | Modify audio and video port |
Inner Mongolia Rendering Node Configuration Requirements:
Set the "Management Server Address" to the external network address.
Set the "Local IP" to the intranet IP.
Set the "Public IP" to the external IP.
Set the "Preferred Public IP" to the external IP (e.g., 147.6.266.2). Example image below:
Change the original port 10002 of the rendering node to 10009 to ensure that each rendering node has a unique port number.
When setting up external mapping, ensure that the internal and external ports are consistent. For example: Node 1 external port 10009, internal port 10009; Node 2 external port 10008, internal port 10008. Example image below:
If there is a mismatch in the mapping of audio and video ports, modify the audio and video ports. For detailed modification methods, please refer to this link.
After completing the port modifications, follow these steps:
- Restart the rendering node service.
Inner Mongolia Rendering Node Network Port Configuration Requirements: Port mapping needs to be done on the router.
节点 | Type | 端口号 | 用途 | 更改 |
---|---|---|---|---|
渲染节点1 | TCP | 10009 | 必须, Websocket通信端口 | 修改Websocket通信端口 |
渲染节点1 | UDP | 10011-10020 | 必须,音视频端口,一个端口表示一个并发 | 修改音视频端口 |
渲染节点2 | TCP | 10008 | 必须, Websocket通信端口 | 修改Websocket通信端口 |
渲染节点2 | UDP | 10021-10040 | 必须,音视频端口,一个端口表示一个并发 | 修改音视频端口 |