Skip to content
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

Open
ludwig-gramberg opened this issue Nov 23, 2014 · 6 comments
Open

feature request (database and table sizes) #70

ludwig-gramberg opened this issue Nov 23, 2014 · 6 comments

Comments

@ludwig-gramberg
Copy link

just like in that other plugin :-)

@meersjo
Copy link

meersjo commented Nov 24, 2014

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

@quazardous
Copy link

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

@meersjo
Copy link

meersjo commented Jul 5, 2016

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

@meersjo
Copy link

meersjo commented Jul 5, 2016

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.

@quazardous
Copy link

thx !

@meersjo
Copy link

meersjo commented Jul 5, 2016

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants