Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
feat: add db service optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
rhabbachi committed Jan 21, 2021
1 parent 6df56f5 commit 30d335d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions assets/docker/docker-compose.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 30d335d

Please sign in to comment.