The invention provides a method for realizing high availability of Internet of Things middleware, which comprises the following steps: 1) setting up a master middleware system and a standby middleware system with the same implementation mode; 2) the standby middleware system periodically detects the configuration information of the master middleware system, and if it changes, synchronizes to the standby middleware system; 3) the standby middleware system; The running state of the main middleware system is periodically checked by the middleware system, and the main middleware system is replaced by the main middleware system when the abnormality occurs; 4) The main middleware system is resumed after the recovery of the running state of the main middleware system is detected. The method of the invention has the following advantages: the concept of the main middleware system and the standby middleware system is introduced, the realization of the main middleware system and the standby middleware system are completely consistent, and the realization mode of the main and the standby functions is closely combined with the business process of the middleware system, and the configuration is more flexible. A variety of high availability solutions can be implemented according to actual needs.
【技术实现步骤摘要】
一种物联网中间件高可用性的实现方法及系统
本专利技术属于物联网中间件高可用性技术,更具体的说,是一种用来实现在物联网中间件系统异常工作的情况下,保证系统快速恢复、减少数据丢失的方法。
技术介绍
随着物联网的高速发展,物联网的各项技术逐渐进入到人们生活中的各个领域,进而对物联网数据采集系统的高可用性需求也日趋强烈。物联网中间件系统的出现,在一定程度上屏蔽了底层设备的操作细节,并实现了数据的高效采集与共享。但是,随着物联网采集设备铺设的规模越来越大,中间件系统的压力也越来越大,一旦系统出现异常而停止工作,数据的可靠性与时效性均难以得到有效保障。因此,对于物联网中间件系统的设计而言,高可用性的设计是十分必要的。众所周知,在一般的网络通信中,网络连接的建立通常由客户端发起,服务端负责监听相应的端口,响应连接请求。因此,在采集设备作为客户端和服务端的两种情况下,高可用性的设计是不同的。当采集设备作为客户端时,主动将数据发往中间件服务器,可采用反向代理的方式实现中间件系统的高可用性;但在采集设备作为服务端的情况下,就不能够通过同样的方式来实现了。在使用路面读写设备采集汽车电子标签数据的典型应用场景中,读写设备通常作为网络通信的服务端来使用,因为除了读写设备上报的数据流之外,中间件系统还需要下发控制流数据到读写设备。本专利技术将针对这一应用场景,解决中间件系统的高可用性问题。
技术实现思路
有鉴于此,本专利技术旨在提出一种物联网中间件高可用性的实现方法及系统,以实现在物联网中间件系统异常工作的情况下,保证系统快速恢复、减少数据丢失。为达到上述目的,本专利技术的技术方案是这样 ...
【技术保护点】
1.一种物联网中间件高可用性的实现方法,其特征在于包括如下步骤:1)设置相同实现方式的主用中间件系统与备用中间件系统;2)通过备用中间件系统定期检测主用中间件系统进行数据采集的配置信息是否发生变化,若发生变化,则获取主用中间件系统的最新的配置信息,并同步到备用中间件系统;3)通过备用中间件系统定期检测主用中间件系统的数据采集运行状态,当检测到出现异常后,备用中间件系统接替主用中间件系统的工作;同时,继续定期检测主用中间件系统的数据采集运行状态;4)当检测到主用中间件系统的运行状态恢复后,主用中间件系统恢复工作,备用中间件系统返回执行步骤2。
【技术特征摘要】
1.一种物联网中间件高可用性的实现方法,其特征在于包括如下步骤:1)设置相同实现方式的主用中间件系统与备用中间件系统;2)通过备用中间件系统定期检测主用中间件系统进行数据采集的配置信息是否发生变化,若发生变化,则获取主用中间件系统的最新的配置信息,并同步到备用中间件系统;3)通过备用中间件系统定期检测主用中间件系统的数据采集运行状态,当检测到出现异常后,备用中间件系统接替主用中间件系统的工作;同时,继续定期检测主用中间件系统的数据采集运行状态;4)当检测到主用中间件系统的运行状态恢复后,主用中间件系统恢复工作,备用中间件系统返回执行步骤2。2.一种物联网中间件高可用性的实现系统,其特征在于:包括相同实现方式的主用中间件系统与备用中间件系统,所述主用中间件系统与备用中间件系统均包括:数据处理装置,包括用于管理物联网设备...
【专利技术属性】
技术研发人员:祁田宇,张恺,
申请(专利权)人:天津中兴智联科技有限公司,
类型:发明
国别省市:天津,12
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。