# 分布式系统 ## 1. 分布式系统安装 全新的安装包支持分布安装,能够方便的将主车节点、传感器仿真节点部署在不同的系统上来进行联合仿真。 ### 1.1 **Master 端配置** Master 端安装参考 [ 产品安装手册](https://nrwsxho0n9.feishu.cn/wiki/PDBaw5BcqiHuTyk8358cjFjJnUh?fromScene=spaceOverview#part-WvNkdvxtworQtsx2xTZc5FTsnGc)。 1. 安装好 Master 端后,点击右上角的 **设置** 按钮,打开**全局设置**。 ![](images/15_Distributed_System/image1.png) 2. 在 **Agent 列表** 中点击 **添加 Agent** 的按钮,即可添加一个 Agent,列表上的 Agent uuid 可用于安装 Agent 端的授权码(如 10001)。 ```{admonition} 注意 :class: tip 相关界面介绍可参考[ 分布式系统说明](https://nrwsxho0n9.feishu.cn/wiki/R8nwwsOseikmYVkiglRcJAsMn2f?from=from_copylink) ``` ![](images/15_Distributed_System/image2.png) ![](images/15_Distributed_System/image3.png) ![](images/15_Distributed_System/image4.png) 3. 打开 **SimOneLauncher** 系统托盘 ,将默认的 Web 地址(127.0.0.1)更改为 SimOne **全局设置 系统设置**中的 **IP 地址 **完成后再启动,否则会发生软件无法连接成功的情况影响后续操作。 ![](images/15_Distributed_System/image5.png) ![](images/15_Distributed_System/image6.png) ### 1.2 **Agent 端安装** 1. 将安装包拷贝至 Agent 端的文件夹下,并点击安装包进行安装,选择 **分布式-Agent** 安装方式。 ![](images/15_Distributed_System/image7.png) 2. 在安装过程中输入 **Agent ID**、**Web IP**,勾选安装协议和输入安装路径进行安装,即可绑定 Master。 ```{admonition} 注意 :class: tip **Agent ID** 为 Master Agent 列表中的 **ID 号**。 **Web IP 为 **Master Agent** 的 IP 地址。** ``` ```{admonition} 注意 :class: tip 如果在此处暂时无法确认 **Agent ID** 和 **Web IP**,可在安装完成后打开 **Agent 托盘进行填写更新**。 ``` ![](images/15_Distributed_System/image8.png) 3. 安装后即可检测并自启动连接至 Master 端。 ![](images/15_Distributed_System/image9.png) ![](images/15_Distributed_System/image10.png) 4. 打开 **SimOneLauncher** 系统托盘,可以在此看到之前安装时填写的 **AgentID** 和 **Web** **地址**。 ```{admonition} 注意 :class: tip SimOneLauncher 系统托盘功能支持对分布仿真节点进行管理以及监控。界面介绍可参考[ 分布式系统说明](https://nrwsxho0n9.feishu.cn/wiki/R8nwwsOseikmYVkiglRcJAsMn2f?fromScene=spaceOverview#share-QcandtP01oJfSwxBYPgctLdMnoG) ``` ```{admonition} 注意 :class: tip 如果安装时暂未绑定 Master 端,也可以在此修改 **AgentID** 和 **Web** **地址**,并对 Master 和 Agent 端的托盘点击 **停止** 和 **启动** **来更新绑定状态**。 ``` 5. **更改** 默认的服务器地址为 **自己的服务器地址。** ```{admonition} 注意 :class: tip 安装完成后需要**绑定自己的服务器地址**才能正常使用软件。 ``` 6. 点击 **停止** 和 **启动** **,**实现重启 SimOne 即可正常使用**。** ![](images/15_Distributed_System/image11.png) 7. 可以通过 Master 端的**全局设置** > **Agent 列表** 查看 Agent 绑定状态。如果 **Agent** **图标由灰变绿**则绑定成功。 ![](images/15_Distributed_System/image12.png) ### 1.3 相关问题 如进行以上操作仍未绑定成功,可能的原因之一是安装 Agent 的设备之前装过 Master,同时卸载时为清除数据导致数据残留。需要修改 Agent 的设备中 *C:/Users/Public* 里的 *SimOneOS.conf *里的 10000 改为之前生成的 **AgentID**(如 10001)**。** ![](images/15_Distributed_System/image13.png) ## 2. 分布式系统卸载 参考 [ 产品安装手册](https://nrwsxho0n9.feishu.cn/wiki/PDBaw5BcqiHuTyk8358cjFjJnUh?fromScene=spaceOverview#part-SnYGdDT15ockm6xVTwtc2JB0n5e)即可。