Quote:
Originally Posted by mike_bike_kite
Seeing as no-one has responded yet I thought I'd ask:- Are you running the queries on a single server or a farm of database servers where read queries get farmed out to multiple servers?
- Are you using solid state disks?
- What type of hardware do you run this on at the moment?
- What is your application? 10k queries per second is a lot so perhaps the application can be redesigned.
|
The queries are on a single DB on the same server as the web server. We are not using solid state disks, our set up right now is 4x6core cpu+32 gigs of ram+4x15k rpm drives in raid 10.
On the bright side we think we fixed the errors after a bit more tweaking. The issue, however, was NOT related to mysql, and was a misconfigured setting in our web server/php which were causing these issues by limiting the number of php instances that could be run, increasing this to approximately what max_connections were seemed to stop the error. We also set mysql.connect_timeout = -1 in php.ini which (I think) helped before we adjusted the web server configuration.
Unfortunately, we didn't gain as much speed as we hoped by fixing these errors so now we are looking at more optimizations we can do. Our app is a game with 1000s of simultaneous users. We've spent a lot of time reducing queries and making the queries as efficient as possible but as traffic increases we are looking for more optimizations we can do.