Has anyone tried table partitioning on Zabbix 2.2? If so, could you write me a quick rundown on how to do it?
I done a more-or-less clean install (export then delete all hosts, clear history trends acknowledges, dump drop then recreate database, re-add hosts) when 2.2.2 RPMs came out, and this is the size of my database since:
I can't really cut back on the amount of data I'm fetching. Housekeeping is simply impossible. I want to do daily partitioning on the history* tables and monthly on trends* tables.
I can make a script myself, no problem (and share it with whoever wants it). I'm more worried about all the foreign keys.
I done a more-or-less clean install (export then delete all hosts, clear history trends acknowledges, dump drop then recreate database, re-add hosts) when 2.2.2 RPMs came out, and this is the size of my database since:
Code:
#$ sudo find /var/lib/mysql/zabbix/ -type f -size +100M -exec ls -lh {} \; | awk '{print $5"\t"$9}'
660M /var/lib/mysql/zabbix/history_text.ibd
27G /var/lib/mysql/zabbix/history_uint.ibd
1,1G /var/lib/mysql/zabbix/history.ibd
912M /var/lib/mysql/zabbix/history_str.ibd
904M /var/lib/mysql/zabbix/trends_uint.ibd
I can make a script myself, no problem (and share it with whoever wants it). I'm more worried about all the foreign keys.
Comment