当前位置:网站首页>Thanos compact component test summary (processing historical data)
Thanos compact component test summary (processing historical data)
2022-04-23 07:04:00 【A sunny afternoon】
Reference documents
Official documents :Thanos - Highly available Prometheus setup with long term storage capabilities
Translation and notes :https://zhangrongjie.blog.csdn.net/article/details/120976651
Summary of component functions
compactor Components only interact with object storage , It is the only component that has the permission to delete the stored data of the object . There are two main functions : Compress block( Will be multiple block Merge into one )、 Downsampling ( Can be disabled ,5m/1h Sampled data ). Data retention time can be set , Raw data 、5m/1h The retention time of downsampled data can be set separately .
The test method
Copy some historical data , Use compact Handle ( Disable downsampling )
Compact Set the parameters as follows :
--downsampling.disable \
--delete-delay=0 \
--wait \
--wait-interval=5m \
--retention.resolution-raw=180d \
Test one
Copy 2020-10-20 To 2020-10-30 common 36.55GB data 、596 individual block(2h), To deal with .
compact First, each 4 individual 2h Of block Merge into one 8h Of block, And mark the processed block For delete status . After the processing is completed, each 5 individual 8h Of block Merge into one 40h Of block......
The processing time is too long , Failed to wait until the end of data processing . By kill fall compact Process time ,bucket The size has been changed from 36.55GB Add to about 70GB. The processing process is shown in figure. :
In the figure 1、2、3、4 Express 4 individual block flow ( from 4 individual Prometheus Uploaded data ).
Test 1 Summary
Compaction The procedure increases the size of the storage , If, as described in the document , The maximum compression level is 2 Zhou's flower , be compaction The process will make bucket Triple the size . And the data deletion operation is in compaction And downsampling before .
Compact Will download all pending block To local , Upload after processing block. Therefore, the local disk should have at least 2 times 2 Available space for weekly data volume .
Test two
Copy 2020-09-21 To 2020-09-23 common 1.73GB data 、20 individual block(2h), To deal with .
Compact After completing the merger block After operation ( Because of the small amount of data , Only merged into 8h The level is terminated ), The expired historical data has been deleted correctly . Process diagram :
Test II summary
Compact Data retention is available .
版权声明
本文为[A sunny afternoon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230600558812.html
边栏推荐
- Introduction to common APIs for EBFP programming
- 【MySQL基础篇】数据导出导入权限与local_infile参数
- 关于Postgres主从复制延迟监控的错误告警问题
- tc ebpf 实践
- MySQL 【读写锁+表锁+行锁+MVCC】
- openvswitch 编译安装
- AttributeError: ‘dict‘ object has no attribute ‘iteritems‘
- Openvswitch compilation and installation
- 【不积跬步无以至千里】Oracle应用导数Ora-01455报错处理
- Unix期末考试总结--针对直系
猜你喜欢
随机推荐
Analysis of Rdam principle
bcc安装和基本工具使用说明
Alertmanager重复/缺失告警现象探究及两个关键参数group_wait和group_interval的释义
Kubernetes CoreDNS常见问题资料参考
【MySQL基础篇】数据导出导入权限与local_infile参数
[no steps in a small step to a thousand miles] Oracle Application derivative ora-01455 error reporting processing
try catch 不能捕获异步错误
[fish in the net] ansible awx calls playbook to transfer parameters
SQL学习|集合运算
基于ECS搭建云上博客(体验有礼)
Redis 详解(基础+数据类型+事务+持久化+发布订阅+主从复制+哨兵+缓存穿透、击穿、雪崩)
Build a cloud blog based on ECS (send blessings on the cloud Xiaobao code and draw iphone13 for free)
异常记录-22
Prometheus监控influxdb的方法及指标释义
MySQL索引【数据结构+索引创建原则】
Introduction to common APIs for EBFP programming
【Lombok快速入门】
Prometheus Cortex多租户读写的实现
ebfp编程常用API介绍
Will restarting the Oracle listener break the existing connection