Hello, I am running zabbix v2.0.12 in an environment with around 900 hosts, 33K items.
Here are the sizes of the largest tables in the DB;
+-----------------------+------------+
| Tables | Size in MB |
+-----------------------+------------+
| history_uint | 103806.27 |
| history | 24841.17 |
| trends | 7309.44 |
| history_text | 6047.63 |
| trends_uint | 5430.64 |
| history_str | 2426.39 |
This is all stored on a single mysql innodb file, which is now 160GB and growing about 2GB a week. Housekeeper is enabled but is not able to keep it appears.
I first looked at purging any records from these tables older than 1 month, but the tables are so large and unweildy that the server struggles to run any queries on them.
I'm willing to sacrifice all our historical data to stop the tables growing any larger, so is it safe to just go ahead and truncate the history_uint and history tables? Will this cause any consistency issues, or any other potential problems going forward after clearing these tables?
Thanks!
Here are the sizes of the largest tables in the DB;
+-----------------------+------------+
| Tables | Size in MB |
+-----------------------+------------+
| history_uint | 103806.27 |
| history | 24841.17 |
| trends | 7309.44 |
| history_text | 6047.63 |
| trends_uint | 5430.64 |
| history_str | 2426.39 |
This is all stored on a single mysql innodb file, which is now 160GB and growing about 2GB a week. Housekeeper is enabled but is not able to keep it appears.
I first looked at purging any records from these tables older than 1 month, but the tables are so large and unweildy that the server struggles to run any queries on them.
I'm willing to sacrifice all our historical data to stop the tables growing any larger, so is it safe to just go ahead and truncate the history_uint and history tables? Will this cause any consistency issues, or any other potential problems going forward after clearing these tables?
Thanks!
- Yep was actually looking at this, Its definitely in the pipeline to clean up this zabbix environment to something more stable (Inherited a mess, trying to fix it...), but atm Im first looking to just reduce the size of the current DB to prevent the innodb file from growing anymore (as it cannot be shrunk).
Comment