I have developed a php game that is obviously depending on mysql queries. Im running it on a monster server: Intel Xeon 7550 with 32GB RAM (Redhat x86_64 ES 5.0) with cPanel installed. I released the game on Facebook and only 250 users could use it before the CPU went mental.
I had "top" on and monitored the CPU usage. MySQL was at one point using up to 1600%! All other stuff was around 3%. Obviously I need to adjust the settings for mysql in order to release this on a bigger scale.
Apologies if this question is vague. My knowledge with adjusting mysql server settings is very limited. What settings do I need to adjust? And what should I set them to? I am guessing that memory is one of them? I am predicting a user base of 10,000 sessions running simultaneously. With my current settings, I can only have 250. Any guidance from experienced server admins would be very appreciated.