Commit 4a24da0b authored by Vincent Pelletier's avatar Vincent Pelletier

stack.erp5: Speed up mysqldump restoration.

Disable more mariadb options during backup restoration:
- relax durability
- disable binlogs
- disable slow log
Bits of this commit were already accidentally (but harmlessly) pushed as
part of
  commit 5bde847f
  Author: Vincent Pelletier <vincent@nexedi.com>
  Date:   Tue Feb 21 16:02:21 2017 +0900

    stack.erp5: Avoid duplicating mariadb service paths.
parent 8d28b7e0
......@@ -15,7 +15,7 @@
# not need these here).
[mariadb-resiliency-after-import-script]
filename = instance-mariadb-resiliency-after-import-script.sh.in
md5sum = 394109d9373f4375d5e1599d5d1500ac
md5sum = bec57f6fcbcad64e734e0ebdac6a1618
[template-mariadb]
filename = instance-mariadb.cfg.in
......
......@@ -46,7 +46,7 @@ fi
echo "Starting mariadb..."
# XXX hardcoded
"$server_executable" --innodb-flush-method=nosync --skip-innodb-doublewrite &
"$server_executable" --innodb-flush-method=nosync --skip-innodb-doublewrite --innodb-flush-log-at-trx-commit=0 --sync-frm=0 --slow-query-log=0 --skip-log-bin &
mysqld_pid=$!
trap "kill $mysqld_pid" EXIT TERM INT
sleep 30
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment