-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request (database and table sizes) #70
Comments
While certainly possible it's important to realise that this can be a reasonably heavy check if you use information_schema, especially for InnoDB tables. It'd be lots lighter to do from the filesystem; but again, InnoDB gets in the way if you don't use file-per-table, which is off by default. Those two make it, in my opion, not something that should be enabled by default on all servers. There is no denying that there is a usecase for such a plugin, however - which is why I threw one together myself (in bash). You can grab it at https://ssl.tuxera.be/filestore/eequeequaivo if you want it; but be warned that it's quick and dirty, and I offer no warranties whatsoever :-) Also, that link is valid until Dec 1. Get it while it's hot :-p |
argh I missed the link ;p the check could be done once a day and file-cached ? mysqltuner gives fragmentation stats too (space loss), could be usefull |
I'll make you a new link for the bash one in a moment. However, in my own fork of this repo is also a SchemaSize.pm module. That does depend on a number of modifications I made in the main module, too, and it relies on a dirty hack to dodge the InnoDB speed issue. YMMV. I really should bother doing a pull request for those changes, but I'm not convinced they're quite clean enough to get accepted :-p |
The new link for the bash dbsize plugin is https://ssl.tuxera.be/filestore/xaeziengiequ - valid until july 12th near noon GMT. Remember that this does NOT have the speed hack, so will take longer as your tables get bigger. |
thx ! |
@kjellm - would you mind having a look at the modifications I did to the main file and the contrib/Schemasize.pm to see wether you'd like them in a pull request? Mostly concerns commit 7faa2db I think. The hack in SchemaSize.pm impacts automatic statistics gathering on InnoDB tables, so it's quite possible that it wrongly remains off if the process were to exit prematurely (connection killed by admin, for instance). |
just like in that other plugin :-)
The text was updated successfully, but these errors were encountered: