So we discovered that we missed a very important update note back in 2.2 where the housekeeper was turned off until you turned it back on in the new options. That should have been in flashing red at the top of the notes...
As a result, our database is massive.
history_uint is 57gb with around 750 million rows
history is 11gb with around 150 million rows
The housekeeper based on the log didn't do the job expected and clean out the last 2 years worth of junk, it only clipped a few entries:
housekeeper [deleted 1150831 hist/trends, 216409 items, 1844 events, 222650 sessions, 0 alarms, 24 audit items in 1261.742354 sec, idle 1 hour(s)]
Now, at the same time I was going in and turning back the history and trend on several template items that were just out of reason. The result above looks more like what I'd expect from those changes assuming the housekeeper was working before this. However, all indication in the documentation is that if all the enabled boxed in the housekeeper UI are unchecked, there is no housekeeping. So then why do the real world results seem to disagree? But then why are there hundreds of millions of rows still in the database?
Something seems very wrong with all of this and I can't make sense of it. We need to sort out what's going wrong and get this database size under control. Any ideas?
As a result, our database is massive.
history_uint is 57gb with around 750 million rows
history is 11gb with around 150 million rows
The housekeeper based on the log didn't do the job expected and clean out the last 2 years worth of junk, it only clipped a few entries:
housekeeper [deleted 1150831 hist/trends, 216409 items, 1844 events, 222650 sessions, 0 alarms, 24 audit items in 1261.742354 sec, idle 1 hour(s)]
Now, at the same time I was going in and turning back the history and trend on several template items that were just out of reason. The result above looks more like what I'd expect from those changes assuming the housekeeper was working before this. However, all indication in the documentation is that if all the enabled boxed in the housekeeper UI are unchecked, there is no housekeeping. So then why do the real world results seem to disagree? But then why are there hundreds of millions of rows still in the database?
Something seems very wrong with all of this and I can't make sense of it. We need to sort out what's going wrong and get this database size under control. Any ideas?

Comment