Ensuring $mysqli->close() is at the end of every script helps, and logging slow SQLs and zapping those will help too (we run custom PHP, not just Wordpress, hence we look at these a lot)
i wonder, @Adam , what the protocol is when we scale up the server capacity itself (more RAM and more CPU)
For example, we are going from an medium class EC2 instance to xlarge, and maybe even 2xlarge as we are moving more websites into our system, and we ran into the MySQL max connections error as well as the PHP max request worker exhaustions.
Are we to double the defaults when we double the server capacity? Based on my understanding of estimating the MBs used per PHP/Apache process, then extrapolating that based on about 75% of RAM (leave 25% for OS/foundations), I should be able to do this, right?