Shrink MariaDB ibdata1
Description
Environment
relates to
Activity
Davide D'AltoJanuary 12, 2016 at 11:37 AM
> But you still need to connect to the SQL console to run such commands, so you're implying that should be a manual intervention or a follow-up automation patch?
Yes, but I would like to see the problem happen again before adding it.
Also the future version of MariaD has an option to do it automatically

Sanne GrinoveroJanuary 12, 2016 at 11:29 AM
But you still need to connect to the SQL console to run such commands, so you're implying that should be a manual intervention or a follow-up automation patch?
I think my order or preference would be:
Avoid the growth at all
Periodically kill a slave and rebuild it from scratch (Might be useful for many other reasons)
This fix
Davide D'AltoJanuary 12, 2016 at 11:21 AM
You can configure the DB so that it uses multiple files instead of one big ibdata1 file. This allows to run a command to optimize the space when/if it become too big.

Sanne GrinoveroJanuary 12, 2016 at 11:05 AM
I would apply these changes and see if it grows again in the future
which changes? I don't understand what you are proposing to do.
Davide D'AltoJanuary 12, 2016 at 10:30 AM
I thought it was the fact the we continuosly add and delete tables on it for testing.
I would apply these changes and see if it grows again in the future
Details
Assignee
UnassignedUnassignedReporter
Davide D'AltoDavide D'AltoParticipants
Davide D'Alto
Sanne GrinoveroComponents
Priority
Major
Details
Details
Assignee
Reporter
Participants

This file grows and does not reduce the size when deleting the table.
The problem is explained here:
http://dba.stackexchange.com/questions/8982/what-is-the-best-way-to-reduce-the-size-of-ibdata-in-mysql
https://blog.mariadb.org/defragmenting-unused-space-on-innodb-tablespace/