From 3ad5d42dd8959659e206ffee02c50dee73d76c05 Mon Sep 17 00:00:00 2001 From: Riadh Habbachi Date: Thu, 21 Jan 2021 19:13:00 +0100 Subject: [PATCH] feat: add db service optimizations --- assets/docker/docker-compose.common.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/assets/docker/docker-compose.common.yml b/assets/docker/docker-compose.common.yml index 526f774f..070f0d1a 100755 --- a/assets/docker/docker-compose.common.yml +++ b/assets/docker/docker-compose.common.yml @@ -34,6 +34,19 @@ services: # MYSQL Credentials in mysql.env env_file: - "${DKTL_DIRECTORY}/assets/docker/mysql.env" + environment: + # https://github.com/wodby/mariadb#optimizer-search-depth + MYSQL_OPTIMIZER_SEARCH_DEPTH: 8 + # https://wodby.com/docs/stacks/mariadb/#calculating-the-optimal-size-of-innodb_buffer_pool_size + MYSQL_INNODB_BUFFER_POOL_SIZE: 568M + # Multi-byte UTF-8 support + # https://www.drupal.org/node/2754539 + MYSQL_INNODB_FILE_FORMAT: barracuda + MYSQL_INNODB_LARGE_PREFIX: 1 + # Needed for long Drush commands like harvest. + MYSQL_WAIT_TIMEOUT: 28800 + # Needed for huge harvest reports write operations. + MYSQL_MAX_ALLOWED_PACKET: 1024M volumes: # MySQL configuration overrides - "${DKTL_DIRECTORY}/assets/docker/etc/mysql/my.cnf:/etc/mysql/conf.d/z_my.cnf"