(window.webpackJsonp=window.webpackJsonp||[]).push([[338],{2763:function(t,e,a){t.exports=a.p+"assets/img/4aa6ddde8cf703e844148eff5f248960.4aa6ddde.png"},2764:function(t,e,a){t.exports=a.p+"assets/img/89551b8cbc23c95412b4426a9f9d0fa3.89551b8c.png"},2765:function(t,e,a){t.exports=a.p+"assets/img/eb95d88740e36d734e1c98af10a16f30.eb95d887.png"},2766:function(t,e,a){t.exports=a.p+"assets/img/7ce301f3d1264d088d13dc630233c7e1.7ce301f3.png"},2767:function(t,e,a){t.exports=a.p+"assets/img/b69e80552a1a30e9fdf07a8db8748f80.b69e8055.png"},8127:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"iotcenter组网"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#iotcenter组网"}},[t._v("#")]),t._v(" IoTCenter组网")]),t._v(" "),e("p",[t._v("介绍IoTCenter热备组网的相关内容")]),t._v(" "),e("p",[t._v("在本热备组网方案中，主、备IoTCenter服务器共用同一个数据库实例。")]),t._v(" "),e("h2",{attrs:{id:"应用组网"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#应用组网"}},[t._v("#")]),t._v(" 应用组网")]),t._v(" "),e("details",{staticClass:"custom-block details",attrs:{open:""}},[e("summary",[t._v("概念图")]),t._v(" "),e("p",[t._v("IoTCenter热备组网-共用数据库实例")]),t._v(" "),e("p",[e("img",{attrs:{src:a(2763),alt:""}})])]),t._v(" "),e("h3",{attrs:{id:"组网说明"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#组网说明"}},[t._v("#")]),t._v(" 组网说明")]),t._v(" "),e("details",{staticClass:"custom-block details",attrs:{open:""}},[e("ol",[e("li",[e("p",[t._v("Web代理可使用ELB，也可以使用Nginx。")])]),t._v(" "),e("li",[e("p",[t._v("MySQL数据库建议优选华为RDS主备实例数据库。")])]),t._v(" "),e("li",[e("p",[t._v("对于设备接入，在IoTCenter网关配置为热备的情况下，如果设备采用主动上报数据的方式接入IoTCenter的话，需要设备支持同时向主用和备用IoTCenter推送数据。否则，当IoTCenter主备切换时，将会出现一个服务器接收不到设备数据的情况。")]),t._v(" "),e("p",[t._v("一种解决方案是：为IoTCenter热备服务器的南向配置一个浮动IP地址，此时，设备只需向该浮动IP地址推送数据即可。组网示例如下图：")]),t._v(" "),e("p",[e("img",{attrs:{src:a(2764),alt:""}})])])])]),t._v(" "),e("h2",{attrs:{id:"iotcenter热备-双浮动ip方案"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#iotcenter热备-双浮动ip方案"}},[t._v("#")]),t._v(" IoTCenter热备+双浮动IP方案")]),t._v(" "),e("p",[t._v("浮动IP组网注意事项：")]),t._v(" "),e("ol",[e("li",[e("p",[t._v("配置浮动IP的优先级，使得IoTCenter主服务器优先获得浮动IP地址（见附2）。")])]),t._v(" "),e("li",[e("p",[t._v("必须配置IoTCenter的后台监控服务（见附5）。")])])]),t._v(" "),e("h3",{attrs:{id:"组网建议"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#组网建议"}},[t._v("#")]),t._v(" 组网建议")]),t._v(" "),e("p",[t._v("主备服务器之间的心跳应选择内网走线，确保链路稳定。")]),t._v(" "),e("h3",{attrs:{id:"端口开放需求"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#端口开放需求"}},[t._v("#")]),t._v(" 端口开放需求")]),t._v(" "),e("div",{staticClass:"rebeizuwang"},[e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[e("strong",[t._v("设备")])]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[e("strong",[t._v("需开放的端口")])])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("web跳转服务器")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("44380")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("IoTCenter主服务器")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("44380：Web服务器"),e("br"),t._v(" 8016：主备通信")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("IoTCenter备服务器")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("44380：Web服务器"),e("br"),t._v(" 8015：主备通信")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("数据库")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("3306")])])])])]),t._v(" "),e("h3",{attrs:{id:"服务器配置"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#服务器配置"}},[t._v("#")]),t._v(" 服务器配置")]),t._v(" "),e("h3",{attrs:{id:"web跳转服务器的配置"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#web跳转服务器的配置"}},[t._v("#")]),t._v(" Web跳转服务器的配置")]),t._v(" "),e("p",[t._v("请参考"),e("RouterLink",{attrs:{to:"/6.0.1/9产品应用组网/9.6附录/"}},[t._v("附录")]),t._v("中的附件4进行配置。")],1),t._v(" "),e("h3",{attrs:{id:"iotcenter主备服务器的license申请"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#iotcenter主备服务器的license申请"}},[t._v("#")]),t._v(" IoTCenter主备服务器的license申请")]),t._v(" "),e("p",[t._v("由于IoTCenter主备服务器需要访问同一个数据库，因此，在申请license时，要求IoTCenter主、备服务器license文件中的密钥必须一致！否则热备组网中的一台IoTCenter主机将无法解密数据库中加密的数据。")]),t._v(" "),e("p",[t._v("在申请License时，需要将IoTCenter主、备服务器的注册码一起申请license，并注明两台服务器要组热备。")]),t._v(" "),e("h3",{attrs:{id:"iotcenter主用服务器的配置"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#iotcenter主用服务器的配置"}},[t._v("#")]),t._v(" IoTCenter主用服务器的配置")]),t._v(" "),e("p",[t._v("配置IoTCenter为主、备工作模式")]),t._v(" "),e("details",{staticClass:"custom-block details",attrs:{open:""}},[e("p",[t._v("在IoTCenter的数据库GWExProc表中，配置主备插件：GWBackUpCore.STD.dll")]),t._v(" "),e("p",[e("img",{attrs:{src:a(2765),alt:""}})]),t._v(" "),e("p",[t._v("参数含义：")]),t._v(" "),e("p",[t._v("Proc_parm："),e("strong",[t._v("备机IP")]),t._v(": "),e("strong",[t._v("备机端口")]),t._v("/"),e("strong",[t._v("主机端口号")]),t._v("/"),e("strong",[t._v("MS")]),t._v("/"),e("strong",[t._v("主机IP")])]),t._v(" "),e("p",[t._v("本例中的配置：192.168.0.203是备机的IP，8015是备机的通讯端口，8016是主机的发送端口，192.168.0.134是主机的IP。")]),t._v(" "),e("p",[t._v("IoTCenter服务器上的设备按正常方式配置。")])]),t._v(" "),e("h3",{attrs:{id:"iotcenter备用服务器的配置"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#iotcenter备用服务器的配置"}},[t._v("#")]),t._v(" IoTCenter备用服务器的配置")]),t._v(" "),e("p",[t._v("由于备用服务器和主用服务器共用1个数据库，备用服务器不需要额外配置。")]),t._v(" "),e("p",[t._v("配置完后服务器的效果")]),t._v(" "),e("details",{staticClass:"custom-block details",attrs:{open:""}},[e("p",[t._v("主用服务器效果的示例如下：")]),t._v(" "),e("p",[t._v("主用服务器管理所有设备，设备状态显示为绿色，有数值。")]),t._v(" "),e("p",[e("img",{attrs:{src:a(2766),alt:""}})]),t._v(" "),e("p",[t._v("备服务器效果的示例如下：备服务器不和设备通信，设备状态显示为橙色，无数值。")]),t._v(" "),e("p",[e("img",{attrs:{src:a(2767),alt:""}})])])])}),[],!1,null,null,null);e.default=r.exports}}]);