16

Zabbix DB历史表由Innodb转换成Tokudb引擎总结-朴实的追梦者

 3 years ago
source link: https://blog.51cto.com/sfzhang88/2515254
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
线上Zabbix监控服务器DB采用的是MySQL一主一从。监控历史数据公司要求保留2年,历史数据相关的表做了表分区,过期数据自动删除。随着线上Zabbix监控设备数的不断增加,服务器磁盘空间增长的很厉害,3.7T的磁盘空间目前已经用了3.3T。尝试用pt-online工具压缩数据表,由于历史数据没有主键不能压缩。最后考虑把Zabbix历史相关的数据表由Innodb引擎转换成TokuDB引擎从而来减

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK