This document provides tuning recommendations for various MySQL configuration variables. It recommends:
- Tuning variables one at a time and being aware of interdependencies
- Setting innodb_buffer_pool_size to 2x RAM for write-intensive workloads
- Setting max_connections to over 1000 is not recommended and to use a thread pool instead
- Avoid using innodb_file_per_table for workloads with over 10k tables
- Setting innodb_flush_log_at_trx_commit to 1 for safety and 2 for replication.