栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

RRD数据库简介

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

RRD数据库简介

RRD 简介

RRDtool refers to Round Robin Database tool .
Round robin is a technique that works with a fixed amount of data , and a pointer to the current element.
Think of a circle with some dots plotted on the edge. These dots are the places where data can be stored.
Draw an arrow from the center of the circle to one of the dots; this is the pointer.
When the current data is read or written, the pointer moves to the next element.
As we are on a circle there is neither a beginning nor an end , you can go on and on and on.
After a while, all the available places will be used and the process automatically reuses old locations .
This way, the dataset will not grow in size and therefore requires no maintenance.
RRDtool works with Round Robin Databases (RRDs). It stores and retrieves data from them.

以上摘自 RRDTool 官网 的表述。

RRD 数据库是一个环形的数据库,你可以把它想象成表,中心处有一个指针,随着时间的变化,指针也在变,当指针指到 12 点处,也就是这个记录要被擦除覆盖的时候,所以它是大小固定的。

时序数据库

在运维领域里,需要不断的对服务器、交换机等支持性设备的性能和运行进行监控,这类监控的数据的特点就是 跟着时间走 —— 它们的指标只会随着时间的变化而变化,不会涉及回头修改。这就区别于常见的数据库,会不断的修改历史数据,对数据进行 U(pdate) 操作。

所以就应运而生了一系列数据库,名曰“时序数据库”。常见的时序数据库有:influxdb、opentsdb、rrd 等。

安装RRD
  1. 下载源码文件,解压缩(官网地址:可自行选择版本 https://oss.oetiker.ch/rrdtool/pub/)
wget https://oss.oetiker.ch/rrdtool/pub/rrdtool-1.7.2.tar.gz
tar xavf rrdtool-1.7.2.tar.gz  
  1. 编译安装
sudo apt-get install libxml2-dev libglib2.0-dev libpng-dev cmake libgtk2.0-dev  pkg-config libxml2-dev

./configure --prefix=/usr/local
make 
make install 
  1. 或使用apt安装
    apt-get install rrdtool
使用RRD
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/388796.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号