Anubhav · @anubhav
9 followers · 320 posts · Server hachyderm.io


...
No any (easy?) way with to dump databases with all tables with "InnoDB" engine in a single transaction. Not using locks, with "--no-locks"[0] option would result in inconsistent dumps.

As the database is already ongoing, seems that would have to forgo backups via "mariabackup" on the primary database sever.

0: Mariabackup Options, mariadb.com/kb/en/mariabackup-
2/2

#mariadb #backup #mariabackup #replication

Last updated 2 years ago

Anubhav · @anubhav
9 followers · 319 posts · Server hachyderm.io

backup:
During backing up of databases daily, via "" and/or "" (need to see what recording the process overs ~10 days brought), INSERT queries are delayed due to table locks. That causes a swell in number of open connections, from ~5 to ~70.

One way to avoid locks with "mysqldump", is to divide backing up in 2 main steps:
- when all the tables have engine, dump that database via "--single-transaction" option;
- rest with normal table locks.
1/2 ...

#mariadb #mysqldump #mariabackup #innodb

Last updated 2 years ago