当前位置:网站首页>Netdata data data persistence configuration
Netdata data data persistence configuration
2022-06-29 13:14:00 【gsls200808】
By default ,netdata The storage time of historical data is short , Only circular storage 2 To 3 Days of historical data , So we need to change it netdata Configure to store data for longer periods of time .
Default netdata.conf The configuration file has no data , need curl wget Command to import templates
curl -o /etc/netdata/netdata.conf http://localhost:19999/netdata.conf
Modify the following
Earlier versions were in global In the label
vi /etc/netdata/netdata.conf
Edit the configuration file as follows
Legacy configuration global label
[global]
memory mode = dbengine
page cache size = 32
dbengine disk space = 3200
The new version is configured in db In the label
[db]
memory mode = dbengine
page cache size = 32
dbengine disk space =3200
This configuration configures 32M cache ,3.2G disk space , Can support Per second 2000 Data points ,30 God .
memory mode The default configuration is 32M cache ,256M disk space , The required disk space can be calculated according to the actual storage
dbengine The storage path of is
/var/cache/netdata/dbengine
View the database size
cd /var/cache/netdata/
du -sh dbenginemomory mode Meaning of options
1.dbengine,( Default ) The data is in the database file . The default configuration 32M cache ,256M disk space
2.ram, Data is in memory . The data will never be saved on the hard disk . This mode uses mmap() And support KSM.
3.save, netdata Run time memory , Drop disk and read disk during restart . It also uses mmap() And support KSM.
4.map, The data is in a memory mapped file . This will keep writing to your disk . This mode uses mmap() But does not support KSM.
5.none, No database ( Collected metrics can only be streamed to another Netdata).
6.alloc, Follow ram The pattern is the same, but it uses calloc() And does not support KSM. This mode can be removed from none Other modes of mode fallback .
边栏推荐
- GEE——美国LANDFIRE火灾数据集
- C # implements definition, insertion and construction of binary sort tree
- Matlab to find the limit
- 倍福控制第三方伺服走CSV模式--以汇川伺服为例
- Qt的信号与槽
- 【云驻共创】工业智慧“大脑”,老厂焕新的加速秘籍
- 从Mpx资源构建优化看splitChunks代码分割
- 面试突击61:说一下MySQL事务隔离级别?
- CVPR 2022 | unknown target detection module study: learning unknown targets in video
- C#实现顺序表定义、插入、删除、查找操作
猜你喜欢

C # clue binary tree through middle order traversal

CVPR2022 | 重新审视池化:你的感受野不是最理想的

CVPR2022 | 弱监督多标签分类中的损失问题

Yolo series combs (IX) first taste of newly baked yolov6

ArcGIS中对面状河流进行等距分段【渐变赋色、污染物扩散】

Recommended model recurrence (I): familiar with torch rechub framework and use

RT thread memory management

从零搭建Pytorch模型教程(四)编写训练过程--参数解析

QT signal and slot
![[intelligent QBD risk assessment tool] Shanghai daoning brings you leanqbd introduction, trial and tutorial](/img/00/9a6d17844b88f6921ad488f4975684.png)
[intelligent QBD risk assessment tool] Shanghai daoning brings you leanqbd introduction, trial and tutorial
随机推荐
C#通過中序遍曆對二叉樹進行線索化
async原理实现
NvtBack
RT thread memory management
ZALSM_EXCEL_TO_INTERNAL_TABLE 导入数据大问题解决
netdata邮件告警配置
qt 自定义控件 :取值范围
MATLAB求极限
YOLO系列梳理(九)初尝新鲜出炉的YOLOv6
SCHIEDERWERK電源維修SMPS12/50 PFC3800解析
Deep understanding of volatile keyword
C#实现二叉树的层次遍历
QT signal and slot
C # implements the operations of sequence table definition, insertion, deletion and search
Recurrence of recommended models (IV): multi task models esmm and MMOE
C#实现堆栈结构的定义、入栈、出栈
B+树|MYSQL索引使用原则
Cvpr2022 | knowledge distillation through target aware transformer
mybaits入门(含实例教程和源码)
QQ group was stolen, a large-scale social death scene caught off guard