Skip to content

Add MariaDB server config for optimizatons - #1497

Merged
swalkinshaw merged 1 commit into
masterfrom
add-maria-db-config
Jul 26, 2023
Merged

Add MariaDB server config for optimizatons#1497
swalkinshaw merged 1 commit into
masterfrom
add-maria-db-config

Conversation

@swalkinshaw

Copy link
Copy Markdown
Member

Opening a new PR so I can more easily more this. Co-authored by @paulbrzeski

Original PR description from #1443:

Sharing a couple of changes we've made to our Trellis so we can fine tune MariaDB settings for high traffic websites.

Changes include,

  • MariaDB/innodb optimisation
  • Small improvements to make things more semantic
  • Various configs to support above

This PR only provides the defaults, you can override these settings like any other using your group_vars configs.

Example settings from our production servers below,

MariaDB for a server with 4GB of RAM and sharing environment with PHP and Nginx
New variables to add to group_vars/%ENV%/mariadb.yml,

mariadb_set_innodb_buffer_pool_size: true
mariadb_innodb_buffer_pool_size: 512M
mariadb_set_innodb_log_file_size: true
mariadb_innodb_log_file_size: 128M

More info - https://mariadb.com/kb/en/innodb-system-variables/#innodb_buffer_pool_size

(previously #1430)

Co-authored-by: Paul Brzeski <paulbrzeski@users.noreply.github.com>
@swalkinshaw
swalkinshaw merged commit e0cdc3d into master Jul 26, 2023
@swalkinshaw
swalkinshaw deleted the add-maria-db-config branch July 26, 2023 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant