I'm running a high-traffic Laravel application on an Ubuntu server with whm with the following specs:
Server Specs: 32 GB RAM, 8 CPU cores, 160 GB disk
Web Server: Apache with various MPM modules mod-mpm-event
I’ve set up my MySQL configuration as follows and would appreciate suggestions for optimizing for performance and stability under load:
disable-log-bin=1default-authentication-plugin=mysql_native_passwordperformance-schema=0innodb_buffer_pool_size=26Gmax_allowed_packet=512Mopen_files_limit=60000innodb_file_per_table=1mysqlx=0sql_mode=""slow_query_log=1slow_query_log_file=/var/lib/mysql/slow-query.loglong_query_time=2max_heap_table_size=313Minnodb_log_file_size=3Gjoin_buffer_size=4Mtmp_table_size=313Minnodb_buffer_pool_instances=8max_connections=500max_connect_errors=500read_buffer_size=2Mread_rnd_buffer_size=4Msort_buffer_size=4MI've already adjusted innodb_buffer_pool_size and other parameters based on my RAM, but I’m not sure if these are the best settings given my setup. Are there specific tweaks I should consider for optimal query performance and to prevent timeouts?