Networking architecture of large -scale electromechanical equipment in coal mine based on Redis
-
摘要: 针对基于FTP的煤矿大型机电设备联网架构存在数据交换协议复杂、数据库读写压力大、服务器磁盘易损坏、网络阻塞后易引起读取文本文件失败等问题,根据煤矿大型机电设备数据特征,提出了一种基于Redis的煤矿大型机电设备联网架构。将采集的煤矿大型机电设备数据以Redis发布/订阅模式从Redis客户端传输到Redis服务端,减少了数据流转环节,提高了数据传输效率;Redis服务端将接收到的数据推送给数据解析程序,由数据解析程序完成数据逆向解析,并将解析的实时数据缓存到Redis内存数据库中,提高了实时数据访问速度,减轻了关系数据库读写压力;利用数据传输中断缓存机制,实现数据中断续传,避免了数据丢失;利用Redis集群功能实现Redis服务端和数据解析程序分布式部署,提高了数据解析效率。实际应用结果表明,该架构具有实时数据延时低、实时数据查询速度快等特点,能够满足煤矿上级监管部门对煤矿大型机电设备在线、快速、有效管控的需求。Abstract: Networking architecture of large -scale electromechanical equipment in coal mine based on FTP has problems such as complex data exchange protocol, high pressure of database reading and writing, easy damage of server disk and failure of reading text file after network blocking. According to data characteristics of large -scale electromechanical equipment in coal mine, a networking architecture of large -scale electromechanical equipment in coal mine based on Redis was proposed. The collected data of large -scale electromechanical equipment in coal mine is transmitted from Redis client to Redis server in Redis publish/subscribe mode, which reduces data flow link and improves efficiency of data transmission. The Redis server pushes the received data to data parsing program, which completes data reverse parsing, and the parsed real -time data is cached into Redis memory database, so as to improve real -time data access speed and reduce reading and writing pressure of relational database. Data transmission interrupt caching mechanism is used to realize data continuous transmission after interruption and avoid data loss. Distributed deployment of the Redis server and data parsing program is realized by using Redis cluster function, which improves efficiency of data parsing. The practical application results show that the proposed architecture has characteristics of low real -time data delay and fast real -time data query speed, which can meet needs of superior supervision department of coal mine for online, rapid and effective control of large -scale electromechanical equipment in coal mine.
点击查看大图
计量
- 文章访问数: 107
- HTML全文浏览量: 15
- PDF下载量: 9
- 被引次数: 0