Hey, I'm in an environment where I have a dedicated server to run apache/php and then I have another server (not on a private network but within the same data center) that is used for ONLY mysql database serving.
Of course, requests goto the apache then the php queries the other computer for database info an so forth.
My site runs pretty fast but there is something odd about it. Like, you'll request a page, there will be a pause for a few moments and then a sudden burst and the entire page will load... it can be when the site is under high traffic or virtually no traffic... its always there.
I'm assuming that this is caused by the overhead needed to connect to a remote computer to access the database. I have tried using mysql_pconnect but it doesn't help noticably.
Is there something else i could do or I'm not doing? I own both the servers so I have root access to everything, nothing is shared. Anyone know how to get rid of this "lag" ?
- Drew