Up to now we had only performed one backup of Piwik's database (mysql on bohrium) before the recent upgrade to 2.17.1.
It would be great to apply sane and good standards to the Piwik's puppet configuration to:
- periodically backup the database and store it somewhere outside bohrium
- leave puppet to enforce a basic mysql set up with root user and piwik user retrieved from the private puppet repo.
Current status:
- There is no LVM configured on bohrium, so lvm snapshot are not available.
- Bohrium is a Ganeti VM with a root partition of ~100GB, and /var/lib/mysql now is ~66GB.
- Piwik is almost entirely write oriented, for every POST sent to bohrium there is a correspondent SQL INSERT/UPDATE. There is a constant I/O wait and some tweaks like innodb_flush_log_at_trx_commit=2 and innodb_buffer_pool_size=2048GB have been applied as attempt to improve its performances.
- Piwik currently uses Debian Jessie's mysql-server, it might be good to think about mariadb?
(Added DBA to keep them in the loop and ask for suggestions in case they have time. If not, feel free to remove the tag).