Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose max_allowed_packet to env vars. #1349

Merged
merged 7 commits into from Nov 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/using_lagoon/docker_images/mariadb.md
Expand Up @@ -30,11 +30,12 @@ Environment variables defined in MariaDB base image
| `MARIADB_ROOT_PASSWORD` | Lag00n | MariaDB root user's password |
| `MARIADB_CHARSET` | utf8mb4 | Set the server charset |
| `MARIADB_COLLATION` | utf8mb4_bin | Set server collation |
| `MARIADB_MAX_ALLOWED_PACKET` | 64M | Set the max_allowed_packet size |
| `MARIADB_INNODB_BUFFER_POOL_SIZE` | 256M | Set the MariaDB InnoDB Buffer Pool Size |
| `MARIADB_INNODB_BUFFER_POOL_INSTANCES` | 1 | Number of InnoDB Buffer Pool instances |
| `MARIADB_INNODB_LOG_FILE_SIZE` | 64M | Size of InnoDB log file |
| `MARIADB_LOG_SLOW` | empty | Variable to control the save of slow queries |
| `MARIADB_LOG_QUERIES` | empty | Variable to control the save of ALL queries |
| `BACKUPS_DIR` | /var/lib/mysql/backup | Default path for databases' backups |

If `LAGOON_ENVIRONMENT_TYPE` variable is set to `production`, performances are set accordly by using `MARIADB_INNODB_BUFFER_POOL_SIZE=1024` and `MARIADB_INNODB_LOG_FILE_SIZE=256`.
If `LAGOON_ENVIRONMENT_TYPE` variable is set to `production`, performances are set accordly by using `MARIADB_INNODB_BUFFER_POOL_SIZE=1024` and `MARIADB_INNODB_LOG_FILE_SIZE=256`.
2 changes: 1 addition & 1 deletion images/mariadb/my.cnf
Expand Up @@ -21,7 +21,7 @@ innodb_log_buffer_size = 32M
innodb_log_file_size = ${MARIADB_INNODB_LOG_FILE_SIZE:-64M}
join_buffer_size = 2M
key_buffer_size = 16M
max_allowed_packet = 64M
max_allowed_packet = ${MARIADB_MAX_ALLOWED_PACKET:-64M}
max_binlog_size = 100M
max_connections = 400
max_heap_table_size = 512M
Expand Down