MySQL/MariaDB
Easy to implement, high impact:
1. Replace MySQL with MariaDB
2. Set correct MySQL configuration
[mysqld]
# InnoDB
innodb_buffer_pool_size = 5600M # This should be around 70% of your total RAM
innodb_log_file_size = 1400M # Around 15-25% of buffer-pool-size
innodb_file_per_table = 1 # Don't fragment tables across files
innodb_flush_log_at_trx_commit = 2 # Increases tracking write speed
max_connections = 100
max_allowed_packet = 16M
# Disable bin log - more efficient, but less robust:
# this drastically reduces storage size and improves performance
# but you lose the replication and restore capabilities
skip-log-bin 3. Delete unnecessary data more often
A useful tool: MySQLTuner-perl
Last updated