|
On 25 Apr 2013, at 16:41, Alex McCombie <info@adventureskies.com> =wrote:On Apr 25, 2013, at 11:20 AM, Paul Willis <paul.willis@me.com> =wrote:1) MySQL would dump the expired query cache for a query =that got a lot of requests (as it should the data had been updated and =the cache was old) but it took too long to process and a queue of the =same big query quickly built up from which it could not recover, just as =you describe.Interesting, =but how did you resolve this if it was indeed causing a =slowdown?We changed the way =the site worked for the panel that called that query, it was a while ago =now so my mind is a bit hazy but it was something like a 'most viewed =articles' panel. Instead of being 'live' we made it cache for a day or =similar.Another option which might =help (which we did) is to split the MySQL off onto it's own =serverPaulAlso =interesting, but if the problem was squarely on MYSQL, then I'm not sure =how having it separated would help all that much. Maybe free up a few =CPU ticks from apache.The =web server was tweaked to be better for apache, serving lots of small =files and the db server configured to be better for MySQL, more RAM =etc.The move to OSX was as much =about getting me into something I had more experience with admittedly as =anything else.We found that =with old versions of Apple Server (don't know what it's like in later =versions) we ended up having to learn terminal stuff to bypass the =limitations of the GUI tools. Once we got the hang of it and became =terminal geeks we found we actually preferred it that way. All the stuff =we learned in OS X terminal transferred over to Ubuntu =nicely.I am intrigued though that =you were having similar issues.What was =your ultimate resolution? Did you find a bad query? Was it the cache =dump primarily? Or an overtaxed server?Chasing this thing has =been like chasing shadows. You think you got it and then 3 hrs later its =back.It wasn't one solution it =was an ongoing combination of things. We changed the way queries worked, =we eliminated slow queries by rewriting them properly, we took the load =off the server by splitting it.I do feel for =you though. We had the same thing, thinking you had nailed the issue but =then it suddenly reappearing a few days later. As you =eliminate one issue the next one rears it's head and all the time the =goalposts are moving as traffic increases and new features are added to =the =site.Paul
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...