Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Created October 3, 2022 17:44
Show Gist options
  • Save mattantonelli/3300486bf7976131863ea60c2d78d102 to your computer and use it in GitHub Desktop.
Save mattantonelli/3300486bf7976131863ea60c2d78d102 to your computer and use it in GitHub Desktop.
MariaDB performance tuning
[mysqld]
innodb_buffer_pool_size=1G # Default: 128M. Ideally, this is 80% of the available RAM
max_connections=301 # Default: 151. Increase for more concurrent connections if you have the resources.
query_cache_size=64M # Default: 0
# Check configuration of custom variables above
show variables like 'innodb_buffer%';
show variables like '%connections%';
show variables like '%query_cache%';
# Display query cache utilization
show status like 'Qcache%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment