当前位置:网站首页>Time-series database selection and implementation practice for Xingsheng optimal monitoring scenarios
Time-series database selection and implementation practice for Xingsheng optimal monitoring scenarios
2022-08-05 17:37:00 【Tao si TDengine data】

In order to ensure the efficiency and stability of Internet services,We need to monitor all the company's node servers(包括云服务器)、交换机及路由器.We need to judge whether the device is working through the data generated in real time、Check whether the communication is delayed、观测 SNMP OID Is the flow normal?,This ensures that operation and maintenance and network personnel find and fix problems in a timely manner.

This type of data is very typical time series data,How to handle it efficiently?There are several very popular time series databases on the market now(Time Series Database)产品.How should we evaluate and choose the technology platform that suits our business scenario??
For this business scenario,We have investigated the following products:Elasticsearch、InfluxDB 和 TDengine.具体对比如下.
Elasticsearch
优点:可以分布式部署,Barrier-free insertion,Supports arbitrary field types,查询速度快. 缺点:It is only suitable for logging and the amount of concurrent data is not large,There is a performance problem in the time series data writing of a large number of devices.
InfluxDB
优点:支持无模式(Schemaless 写入),限制较少. 缺点:When faced with large batches of data being inserted or read at the same time,Memory is easily full,导致死机.Especially the polling mechanism,When checking for expired data,内存占用特别大.此外,在读取数据时,read the list,可读性差,解析比较麻烦.
TDengine
优点:columnar storage and“一个设备一张表”The model fits our business scenario very well.此外,Also compatible with our previous use InfluxDB accustomed to insertion,代码可读性强,Support of a strong binding parameters.When performing queries on massive data,响应速度比 InfluxDB 更快. 缺点:Schemeless The support is still being improved.
Next, we continue to compare InfluxDB 和 TDengine.InfluxDB Insufficient performance of a single node,Cluster closed source and performance unknown.反观 TDengine,Its cluster functionality is open source,And retains some of the core functions of the enterprise version.This allows us to directly very understanding TDengine 的优劣.从这方面考虑,我们选择了 TDengine.而且在实际使用中,我们又发现了 TDengine 的一大优势,其“一个设备一张表”The model fits well our actual scene.
在引入 TDengine 之后,我们的系统架构如下图所示.

在该架构下,The front-end formulates the rules and issues(例如:流量阈值,Delay threshold),Backend to see if you need to store rules,or check if the rules have changed,Then send the rules to ETCD to do timed task scheduling.We have three program tasks in total,通过 ETCD 管理,Timing, and all kinds of communications equipment,Capture the data you need according to different rules:
SNMP 引擎通过 OID Monitor various indicators of network equipment TCPing The engine is used to monitor the server TCP 端口状态 ICMP The engine focuses on the time it takes to receive or return data




在使用过程中,The relatively more time-consuming is probably the exploration of modeless insertion..
最后,TDengine The support team is quite responsible,Actively cooperate,Let's get started quickly with this lightweight and easy-to-use、High-performance time series database.At present, we only have access to some servers and equipment,In the future, we plan to connect all the servers of the company nationwide.,Will also recommend more departments of the company to use.一切顺利的话,We will also consider including warehouse delivery robots,More application scenarios such as logistics line equipment.


本文分享自微信公众号 - TDengine(taosdata_news).
如有侵权,请联系 support[email protected] 删除.
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享.
边栏推荐
猜你喜欢

【无标题】

Trying to be a better test/dev programmer, "I" broke myself...

【2012】【论文笔记】超材料的二维等价物——GSTC

软件测试岗位未来趋势怎么样?

Cow attracts the sword refers to the offer of binary search

After using Stream for many years, does collect still have these "saucy operations"?

生成扩散模型漫谈:DDIM = 高观点DDPM

【OAuth2】十三、OAuth2AuthorizationServerConfigurer的过滤器

Shell自动化编程初识

AIRIOT答疑第7期|如何快速提升物联网项目交付速度?
随机推荐
Detailed explanation of SSL (1): What is the significance of the small green lock in the URL bar?
SELECT
AI target segmentation capability for fast video cutout without green screen
什么是常见缺陷枚举 (CWE)
Fragment 这么多 API 被废弃
观测云入驻青云云市场,提升云上系统统一可观测能力
详解 SSL(一):网址栏的小绿锁有什么意义?
【 背包九讲——完全背包问题】
电脑重装系统后如何给系统磁盘扩容空间
【知识科普】激光雷达(LiDAR)点云数据知多少?
8.lnmp架构
【2012】【论文笔记】超材料的二维等价物——GSTC
开学季邀新,赢腾讯内推实习机会
阿里百万级Redis小册震撼开源,打开源码新世界
你也搞Web3 先回答以下13问再找我谈Web3
PG 的 statistics 与 extended statistics
What is the future trend of software testing jobs?
Cow attracts the sword refers to the offer of binary search
【OAuth2】十四、OAuth2授权端点配置类OAuth2AuthorizationEndpointConfigurer和OAuth2AuthorizationEndpointFilter
WPF+SkiaSharp怎么实现自绘投篮小游戏