Hi folks,
From what I gather the housekeeper process doesn't appear to be cleaning old history.
For example let's take a look at an item with itemid 100000000019023
mysql> select itemid,type,delay,history,trends from items where itemid = 100000000019023\G
*************************** 1. row ***************************
itemid: 100000000019023
type: 0
delay: 30
history: 7
trends: 365
So if I understand correctly we should have at most data for seven days collected twice a minute, which is 7*24*60*2 = 20160
But we have a lot more than that:
mysql> select count(*) from history_uint where itemid = 100000000019023\G
*************************** 1. row ***************************
count(*): 165281
Comparing the value of clock with the system time:
> date +%s
1190645639
mysql> select * from history_uint where itemid = 100000000019023 order by clock limit 1\G
*************************** 1. row ***************************
itemid: 100000000019023
clock: 1185032586
value: 35143680
Which turns out to be 64 days
(1190645639-1185032586)/(60*60*24)
64
Server log shows that the housekeeper did run
grep -i house zabbix_server.log
20320:20070924:094722 server #57 started [Housekeeper]
20320:20070924:094722 Executing housekeeper
20320:20070924:104845 Executing housekeeper
Am I missing something?
- Charith
From what I gather the housekeeper process doesn't appear to be cleaning old history.
For example let's take a look at an item with itemid 100000000019023
mysql> select itemid,type,delay,history,trends from items where itemid = 100000000019023\G
*************************** 1. row ***************************
itemid: 100000000019023
type: 0
delay: 30
history: 7
trends: 365
So if I understand correctly we should have at most data for seven days collected twice a minute, which is 7*24*60*2 = 20160
But we have a lot more than that:
mysql> select count(*) from history_uint where itemid = 100000000019023\G
*************************** 1. row ***************************
count(*): 165281
Comparing the value of clock with the system time:
> date +%s
1190645639
mysql> select * from history_uint where itemid = 100000000019023 order by clock limit 1\G
*************************** 1. row ***************************
itemid: 100000000019023
clock: 1185032586
value: 35143680
Which turns out to be 64 days
(1190645639-1185032586)/(60*60*24)
64
Server log shows that the housekeeper did run
grep -i house zabbix_server.log
20320:20070924:094722 server #57 started [Housekeeper]
20320:20070924:094722 Executing housekeeper
20320:20070924:104845 Executing housekeeper
Am I missing something?
- Charith
Comment