SHOW GLOBAL VARIABLES LIKE 'max_connections';
SHOW GLOBAL STATUS LIKE 'Threads_connected';
SHOW GLOBAL STATUS LIKE 'Threads_running';
SHOW GLOBAL STATUS LIKE 'Max_used_connections';
SHOW GLOBAL STATUS LIKE 'Connection_errors_max_connections';
max_connections is the limit, Threads_connected is the current number of open connections, and Max_used_connections is the maximum concurrent count since startup. Account for restarts and statistics resets.
Review current connections, active queries, application instance counts, and pool limits together. Estimate the total connection budget during scaling as instance count × pool size per instance, leaving headroom for administration and batch work.
Before simply increasing the limit, check connection leaks, slow queries, transaction scope, idle timeouts, and memory.