Hi,
We've been running Zabbix (7.0.4) for some months now, and are currently monitoring about 1900 hosts which are a mix of Linux, Windows, Network devices and Selenium Synthetics.
We are getting quite concerned about the database growth (Postgres), the DB size (on disk) keeps increasing and nothing we do seems to be able to shrink it, or get the growth rate to decrease.
So far, we have:
Despite this, our database keeps growing by about 10GB /24h (on disk) and shows no sign of ever decreasing in size.
What would be the recommended steps for getting the growth rate under control?
We've been running Zabbix (7.0.4) for some months now, and are currently monitoring about 1900 hosts which are a mix of Linux, Windows, Network devices and Selenium Synthetics.
We are getting quite concerned about the database growth (Postgres), the DB size (on disk) keeps increasing and nothing we do seems to be able to shrink it, or get the growth rate to decrease.
So far, we have:
- Ensured Housekeeping is running hourly, deleting items and finishing without any errors. Log extract below:
3251787:20250212:043020.670 housekeeper [deleted 5624020 hist/trends, 0 items/triggers, 29488 events, 55 problems, 0 sessions, 0 alarms, 33478 audit, 0 autoreg_host, 0 records in 1077.108064 sec, idle for 1 hour(s)]
3251787:20250212:053020.746 executing housekeeper
3251787:20250212:061305.413 housekeeper [deleted 5650476 hist/trends, 0 items/triggers, 30349 events, 28 problems, 0 sessions, 0 alarms, 23080 audit, 0 autoreg_host, 0 records in 2564.663256 sec, idle for 1 hour(s)]
3251787:20250212:071305.513 executing housekeeper
3251787:20250212:073119.127 housekeeper [deleted 7507300 hist/trends, 0 items/triggers, 20242 events, 35 problems, 1 sessions, 0 alarms, 56760 audit, 0 autoreg_host, 0 records in 1093.610179 sec, idle for 1 hour(s)]
3251787:20250212:083119.228 executing housekeeper
3251787:20250212:084822.594 housekeeper [deleted 5720678 hist/trends, 356 items/triggers, 31167 events, 21 problems, 0 sessions, 0 alarms, 13307 audit, 0 autoreg_host, 0 records in 1023.361913 sec, idle for 1 hour(s)] - Run Manual Housekeeping, with similar results.
- Gradually increased the MaxHousekeeperDelete value to a higher value (right now it is at 300000), in hope that it would delete more data
- Set the Housekeeping periods and overrides as below.
- Set the Audit log data storage period to 15d
- Confirmed that the Housekeeping Overrides are actually propagated to the host items.
Despite this, our database keeps growing by about 10GB /24h (on disk) and shows no sign of ever decreasing in size.
What would be the recommended steps for getting the growth rate under control?
Comment