The ibdata1 file only grows and never shrinks so I'd recommend
setting/adding "innodb_file_per_table" in /etc/my.cnf. You'll need to
go through the steps to purge it first, google is your friend, first
but you'll now longer have the ever growing idbata1 file. You probably
have a bunch of old mysql-bin.0* replication logs that can be nuked as
well.
I'll be happy once the dashboard support PostgreSQL
--
Later,
Darin
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
The ibdata1 file only grows and never shrinks so I'd recommend
setting/adding "innodb_file_per_table" in /etc/my.cnf. You'll need to
go through the steps to purge it first, google is your friend, first
but you'll now longer have the ever growing idbata1 file.
--
Later,
Darin
2. Are there some database cleanup scripts which I have managed to overlook that need to be run?
That growth rate seems ... excessive. Ultimately, the size of the
stored data is pretty directly related to the size of your YAML
reports; can you capture one of those and see how big it is on disk?
Daniel
--
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons
Op maandag 9 januari 2012 19:40:00 UTC+1 schreef Jo het volgende:2. Are there some database cleanup scripts which I have managed to overlook that need to be run?have you tried this?Cleaning old reports http://docs.puppetlabs.com/dashboard/manual/1.2/maintaining.htmlperhaps also give the 'optimize the database' as try.
Is there any reasonable estimate for what amount of space you expect onesystem to use? I realize this likely varies with the report size, but therate of growth seems high enough that I'm surprised it wasn't mentioned inthe installation docs. I mean, it's grown half a gigabyte in the last 6hours. With that kind of growth rate, you'd expect a warning to provideenough space for it and how to estimate your needs.
That growth rate seems ... excessive. Ultimately, the size of the
stored data is pretty directly related to the size of your YAML
reports; can you capture one of those and see how big it is on disk?
innodb_file_per_table should imho be set for every mysql server in
existence for many reasons, but it will only work if you have innodb
tables and not MyISAM (duh to me, not so duh to others maybe ;)).
Don't go and delete binlogs at random if you love your data and want
to be able to do proper backups. If you see too many binlogs, just set
expire-logs-days to something sane (read: larger then the time between
your backups). If you really want to get rid of some binlogs, purge
them usign mysql, don't just delete the files:
http://dev.mysql.com/doc/refman/5.0/en/purge-binary-logs.html
Just saying: mysql is not as bad as people make it seem :)
Walter
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
--
Walter Heck
--
follow @walterheck on twitter to see what I'm up to!
--
Check out my new startup: Server Monitoring as a Service @ http://tribily.com
Follow @tribily on Twitter and/or 'Like' our Facebook page at
http://www.facebook.com/tribily
Besides all the answers already provided by others, there might be also another reason for the fast growing database. This is the table ‘resource_statuses’ inside dashboard’s database which is not purged by the rake script (at least not in Puppet 2.6.6 and 2.6.12). Patching the rake script will dramatically reduce the overall database size. I’ve provided more details here: http://berndadamowicz.wordpress.com/2011/12/07/keeping-puppet-dashboards-database-small/
Bernd
--
Sadly, it is true that there is no optimization that is performed on
the data store in the database.
> Coming up with a few hundred gigabytes of file storage is one
> thing. Trying to make mysql perform well with 100Gb database is an entirely
> different matter.
Yes. It sounds like the current storage of reports isn't going to
work well for you, at least if you want to retain history. This is
absolutely unfortunate, and is one of the serious shortfalls we are
aware of around the Dashboard and StoreConfigs databases. We are
working on improving these, but there isn't anything presently public
available.
Yes. It sounds like the current storage of reports isn't going to
work well for you, at least if you want to retain history. This is
absolutely unfortunate, and is one of the serious shortfalls we are
aware of around the Dashboard and StoreConfigs databases. We are
working on improving these, but there isn't anything presently public
available.
Yeah, you can ditch the files on disk in favour of the database with
no real loss of anything.
--
Daniel Pittman