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

Add MariaDB server config for optimizatons #1497

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

swalkinshaw
Copy link
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