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

Add db service optimizations #284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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